Hi all,
I'm trying to get the geometry of rebar couplers from a linked Revit model.
I've used the RevitLookup add-in, searched this forum and the internet but I haven't found a solution yet.
If I explore the API with RevitLookup in the model that contains the actual rebar coupler, the "Geometry (Options)" property returns a list or IEnumerable of "GeometryInstance" in the "Active view".
So far so good.
But, if I explore the API in a model that has a linked Revit model that contains this rebar coupler, I get different results. "Active view" doesn't return any list or IEnumerable.
"Active view, including non-visible objects" returns a "Line" object. And no, this Line object is not helpful.
But this is weird because the rebar coupler is visible, the "IsHidden (View)" property is also False.
All other "Model" views return also nothing or a "Line" object.
Am I missing something here?
I'm going to investigate other methods like "GetPointsForPlacement".
Maybe I can use that to create geometry from this coupler.
Thanks
After you linked the model, check the Application object list of documents:
The linked document is listed there. Snoop the linked document instead of the main project document, retrieve your linked element from it, and explore that element's geometry. It should include the GeometryInstance objects that you need.
Much success, good luck and have fun.
Hi Jeremy,
If I use "Snoop Linked Element" and then select the rebar coupler from the linked model, I get this:
Document "MOG2... Caisson E7" is the linked model...
But still, only a "Line" object as IEnumerable.
I also tried:
Hi Jeremy,
Have you had some time to look at this again, and try it yourself?
Greetings
Can't find what you're looking for? Ask the community or share your knowledge.