- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am quite new to the .NET api, so a lot of things arent clear to me and i can't find what am i doing wrong.
In short: I am traversing a 3dsolid with the BREP api, i am checking for the faces' normals and once i get to the face i am looking for, i want to "convert" it to a region. I can't seem to find a straightforward way of creating a region entity from the face's geometry.
Through a lot of reading i found out that there is quite a difference between the Geometry and DatabaseServices entities. There is not much information about creating a DBEntity from a Geometry entity.
I tried to "convert" the face's edges to DBCurves using:
Curve3d curve = edge.Curve;
Curve dbCurve = Curve.CreateFromGeCurve(curve);
The idea was to "convert" all of the face's edges to DBCurves then add all of them to a DBObjectCollection, and at the end use Region.CreateFromCurves(dbCurves). Unfortunately, this gives me a NotImplementedYet error on the CreateFromGeCurve method.
I am not sure exactly what is wrong. Either my approach is totally wrong, or my lack of knowledge of the .NET api is holding me back.
Is it possible to add DBEntities from Geometry entities, what are the best practices.. I have a lot of questions and i will be very grateful if you can guide me to some documentation and/or tutorials to read about the .NET api, because the ObjectARX documentation isn't as detailed as i would have hoped.
Thank you in advance
Solved! Go to Solution.