Announcements

Community notifications may experience intermittent interruptions between 10–12 November during scheduled maintenance. We appreciate your patience.

Selecting hole border ring

Selecting hole border ring

eliot543
Contributor Contributor
1,276 Views
3 Replies
Message 1 of 4

Selecting hole border ring

eliot543
Contributor
Contributor

I'm trying to use AppendSelectCommand_HoleBorderRing in mmapi. It requires hole id and mode for selection, I'm not exactly sure what it does and how to use it, I imagine it selects faces as in attachment, where you click at border of a hole. Appreciate the help.

0 Likes
Accepted solutions (1)
1,277 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

Yep, that's what it does.

 

If there's only one open boundary the boundary's nHoleID is zero. Not sure about the nMode. 0 and 1 work - while 1 is faster.

 

cmd2 = mmapi.StoredCommands()
cmd2.AppendBeginToolCommand("select")
cmd2.AppendSelectCommand_HoleBorderRing( 0, 1 )
remote.runCommand(cmd2)

 

Message 3 of 4

eliot543
Contributor
Contributor

Thanks a lot, I didint realise i need to start select command and was stuck on this for a bit. I checked the files and found that nMode is described: 

SELECTION COMMANDS
* Note: some selection commands take a mode argument which defines whether to replace/append/remove from the current selection
* The modes are 0=Replace 1=Append 2=Remove

0 Likes
Message 4 of 4

Anonymous
Not applicable

Thanks for the feedback about the nMode options. Didn't find this until now... Still something to learn...

0 Likes