Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
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: 

explode clash group

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Ning_Zhou
974 Views, 4 Replies

explode clash group

is it available in Navisworks 2015 or 2016 API?

4 REPLIES 4
Message 2 of 5
xiaodong_liang
in reply to: Ning_Zhou

Hi,

When you get one ClashResult and find it is a grouo you can iterate each item of this group and remove it by the method
TestsMove(GroupItem, //the source group
Int32, //index that one specific item in the old group
GroupItem, //the target group
Int32) //index that one specific item in the source group

the root folder of the ClashTest is also a group.

you can refer to SDK sample:
\api\NET\examples\PlugIns\ClashDetective\

in line 111 of AddGroup.cs, there is a demo.
Message 3 of 5
Ning_Zhou
in reply to: xiaodong_liang

thanks xiaodong.

works great except one minor issue, how to get rid of "dead body" of empty group, i mean group w/o any member inside that group, it will still displayed in clash detective result window even though it's not counted as clash at all.
Message 4 of 5
xiaodong_liang
in reply to: Ning_Zhou

Hi,

I have not chance to give a test, but I believe it could work to call
DocumentClashTests.TestsRemove, where the group item is the root, the saveditem is the specific folder you want to delete.
Message 5 of 5
Ning_Zhou
in reply to: xiaodong_liang

works great, thanks.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report