Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Doing a "Or" Search with the API

1 REPLY 1
Reply
Message 1 of 2
Anonymous
426 Views, 1 Reply

Doing a "Or" Search with the API

Hi, I'm trying to do a "OR" search using the API, but could not find how to do it.

 

I'm creating a Search, 2 SearchConditions and tried to to use the Search Add and the AddGroup with a SearchConditionCollection, but both worked as an "AND" search.

 

I already read the API Documentation and all Classes related but could not find a OR flag.

 

I did it using LINQ, but instead of 1 minute my process took 20 minuts (Where(x =>                   (x.DisplayName == m_value || x.DisplayName == m_value2)));) so is a no go.

 

Glad for any help.

1 REPLY 1
Message 2 of 2
xiaodong_liang
in reply to: Anonymous

Hi,

 

Have you noticed another thread?

http://forums.autodesk.com/t5/Autodesk-Navisworks-API/Search-with-quot-OR-quot/td-p/3235364

 

Regards,

Xiaodong Liang

Developer Technical Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report