Linked cad elements

Linked cad elements

Anonymous
Not applicable
890 Views
5 Replies
Message 1 of 6

Linked cad elements

Anonymous
Not applicable

Hi,

 

How can I loop the elements in a linked dwg in revit. There should be a way because when I select the dwg and query any element revit does tell its details. Now how do I loop all elements in the linked cad via .net code. 

 

A quick help is needed and highly appreciated.

 

Thanks & Regards

 

0 Likes
891 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

Anyone Someone out there . At least a reply stating it's possible or it's not possible.

 

 

Thanks & regards

0 Likes
Message 3 of 6

arnostlobel
Alumni
Alumni

Yes, It is possible 🙂

 

 

 

 

 

Ok, here's more about it.... 😉

 

Look for FilteredElementCollector in the Revit SDK help file. You will need to get the linked document object first (from the host document), and create an element collector with it. Using the collector then you will be able to iterate through elements in the linked file. There shuld be plenty of examples in the SDK about element iteration.

Arnošt Löbel
0 Likes
Message 4 of 6

Anonymous
Not applicable

Hi,

 

I didn't got to see any example of iterating elements of a linked cad .

 

Thanks & Regards

0 Likes
Message 5 of 6

Revitalizer
Advisor
Advisor

Dear sanjaymann,

 

as far as I can see, you cannot browse the elements of an imported or linked DWG file.

Once imported into Revit, such a DWG file appears as an ImportInstance.

Contrary to an imported/linked RVT file which appears as a RevitLinkInstance, an ImportInstance does not provide a method like "GetLinkedDocument()".

Because of this, there is no Document object to browse.

 

 

Best regards,

Revitalizer

 




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 6 of 6

stav1233
Explorer
Explorer

Hey, I was just facing the same situation ,Its been 8 years since this dissociation as ended, is it possible now?

0 Likes