Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Try to pick a beam from a linked Revit model.
I have try this:
Reference refe = uidoc.Selection.PickObject(ObjectType.LinkedElement,"Pick a Object"); this part works
but:
Element e =doc.GetElement(refe.ElementId); element name is the link model not the beam I picked
Element e =doc.GetElement(refe.LinkedElementId); error: Object reference not set to and instance of an object.
also try a solution from Joe Ye:
http://adndevblog.typepad.com/aec/2014/02/how-to-get-the-picked-element-in-the-linked-model.html
still no luck
I tab to select the linked element and use IDs of Selection but no Id return. is it possible to get the element parameters from a link? any suggestions? Thanks
Solved! Go to Solution.