Navisworks API

Active Member
Posts: 9
Registered: ‎01-13-2011
Message 1 of 3 (150 Views)

Search Item > Icon = "Composite Object"

150 Views, 2 Replies
06-14-2012 04:23 AM

I'm trying to write a plugin that exports all elements RevitIDs along with their timeline data.


In order for it to work (on doors, windows etc.) I have to eliminate all Revit Types.


The only property I could have found for this is the Icon


Item > Icon = "Composite Object" vs. Collection and Geometry.

Is there any other more practical way for that?


Second is no matter how much I've examined sample codes and tried to write a search for this I couln't figured it out.


Please help me write a search condition for Item > Icon = "Composite Object"


Thanks in advance..

Active Member
Posts: 9
Registered: ‎01-13-2011
Message 2 of 3 (149 Views)

Re: Search Item > Icon = "Composite Object"

06-14-2012 04:29 AM in reply to: m.p.diker

From navisworks creating a search for it works fine. When I export the search out as xml

"Composite Object" data type shows as NAME. And I couldn't find a way to mimic this search in the Api..

ADN Support Specialist
Posts: 1,233
Registered: ‎06-12-2011
Message 3 of 3 (125 Views)

Re: Search Item > Icon = "Composite Object"

08-03-2012 03:23 AM in reply to: m.p.diker



If I understand correctly, you want to create a search with the condition if the item is composite object? You could use Search + LINQ to do so. e.g.


   // assume you have define a search

    IEnumerable<ModelItem> finalItems = 

        search.FindAll(activeDocument,false).Where(x=> x.IsComposite);


Hope this helps.

Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community