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

Cannot connect IfcCurveSegment with IfcShapeRepresentation #36

Open
seb-esser opened this issue Dec 2, 2020 · 1 comment
Open

Cannot connect IfcCurveSegment with IfcShapeRepresentation #36

seb-esser opened this issue Dec 2, 2020 · 1 comment

Comments

@seb-esser
Copy link
Contributor

seb-esser commented Dec 2, 2020

I'm trying to assign an IfcCurveSegment as the representation of an IfcAligmentSegment (according to RC2)

grafik

It seems to be a problem with some IfcGeometricRepresentationContext link. Would you mind spending a look? I am working on the Nuget-Package atm.

@jmirtsch
Copy link
Collaborator

jmirtsch commented Dec 8, 2020

HI Sebastian,

I did push an update to the nuget package and opensource repository today.
I didn't add a shaperepresentation constructor that takes a single curve segment although I can for the next release.
You can use some code like this though in the meantime:

IfcGeometricRepresentationSubContext axisContext = database.Factory.SubContext(IfcGeometricRepresentationSubContext.SubContextIdentifier.Axis);

alignmentSegment.Representation = new IfcProductDefinitionShape(new IfcShapeRepresentation(axisContext, curveSegment, ShapeRepresentationType.Curve2D));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants