Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineStyles are not copied when elements referencing them are copied between iModels #7644

Open
ColinKerr opened this issue Feb 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working geometry

Comments

@ColinKerr
Copy link
Member

This issue was raised via discussion question: #7642

From that discussion @bbastings says:

I see that DgnImportContext currently has the code to try to copy the line style information over commented out?

DgnStyleId DgnImportContext::_RemapLineStyleId(DgnStyleId sourceId)
{
if (!IsBetweenDbs())
return sourceId;

DgnStyleId dest = FindLineStyleId(sourceId);
if (dest.IsValid())
return dest;
#if defined(NEEDSWORK_LINESTYLES) // importers are not tested so don't risk passing along bad data.
dest = LineStyleElement::ImportLineStyle(sourceId, *this);
AddLineStyleId(sourceId, dest);
#endif

return dest;
}

@ColinKerr ColinKerr added bug Something isn't working geometry labels Feb 3, 2025
@DanRod1999 DanRod1999 self-assigned this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working geometry
Projects
None yet
Development

No branches or pull requests

2 participants