After inserting an ifc, i got a box that covers the elements within, i am unable to select the individual elements as everytime i click on it it only selects the entire box, is there a way to code such that i can get the individual elements within that box.
Solved! Go to Solution.
Solved by naveen.kumar.t. Go to Solution.
Hi @klqa_test ,
try using the below code
//Get the LINKED DOCUMENT
Document linkedDoc = null;
foreach(Document d in app.Documents)
{
if(d.Title!=doc.Title && d.Title=="Your Linked Document Title")
{
linkedDoc = d;
break;
}
}
//Get the linked element id
Reference R = uidocument.Selection.PickObject(ObjectType.LinkedElement);
//Get the linked element from linked document
Element e = linkedDoc.GetElement(R.LinkedElementId);
Here are some related links
https://adndevblog.typepad.com/aec/2014/02/how-to-get-the-picked-element-in-the-linked-model.html
Can't find what you're looking for? Ask the community or share your knowledge.