Message 1 of 2

Not applicable
10-01-2018
11:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to get the shape of a FamilyInstance object (for different instances).
Preferably, I would like to get the Solid object that describes it and then traverse its faces.
I'm not sure what is the easy way to do that (before looking into corner-cases).
I thought of checking its `HasModifiedGeometry()`, if it returns False, to do that:
foreach (GeometryObject geomObj in familyInstance.get_Geometry(opt)) { if (geomObj is Solid geomSolid) { // GOOD } else { // Should I do anything here? } }
And if it returns False - to do the same for the FamilySymbol (familyInstance.Symbol):
foreach (GeometryObject geomObj in familyInstance.Symbol.get_Geometry(opt)) { if (geomObj is Solid geomSolid) { // GOOD } else { // Should I do anything here? } }
But in this case, I should probably add the `familyInstance.Location`?
Is it correct?
Is it even the idea to follow with, or should I do something completely different
Solved! Go to Solution.