Select (as in Highlight) elements in linked model (Polycount)

Select (as in Highlight) elements in linked model (Polycount)

mehdi.blanchard
Enthusiast Enthusiast
434 Views
1 Reply
Message 1 of 2

Select (as in Highlight) elements in linked model (Polycount)

mehdi.blanchard
Enthusiast
Enthusiast

Using:

uiDoc.Selection.SetElementIds(ids)

does not work on Linked Elements.

 

 

This question has been already asked but unfortunately it didn't look like there was an existing API call for this. So I am posting this again to check if it is now possible in Revit 19, or to boost the existing Wish.

 

Context:
We have a macro that parses all the elements of our model (and the linked models) to check the geometry (using the OBJExporter) and display the worst offenders in terms of polygons.

 

I have added a Select button to quickly see where they are but unfortunately the selection doesn't work on linked elements.

For example the screenshot below shows that the CP_Weatherproof family accounts for 21% of all the geometry which means that the family should be reviewed asap. It also shows that less than 15 families account for 40% of all the geometry which should be optimized too.

PolycountPolycount

This is particularly useful for our AR/VR workflow as the geometry needs to be kept to a minimum

0 Likes
435 Views
1 Reply
Reply (1)
Message 2 of 2

JimJia
Alumni
Alumni

Yes, this question has been discussed in previous forum page:

https://forums.autodesk.com/t5/revit-api-forum/highlight-and-tag-linked-elements/m-p/5294217#M7339

 

I also checked the status of REVIT-90539 mentioned in forum above, there is no update except for lasted messages from my colleague Jeremy, I also added your request to REVIT-90539.

 

 


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes