Announcements

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

Doing a "Or" Search with the API

Anonymous

Doing a "Or" Search with the API

Anonymous
Not applicable

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.

0 Likes
Reply
429 Views
1 Reply
Reply (1)

xiaodong_liang
Autodesk Support
Autodesk Support

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

0 Likes