Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

selection filter

1 REPLY 1
SOLVED
Reply
Message 1 of 2
john4TMYX
194 Views, 1 Reply

selection filter

john4TMYX
Enthusiast
Enthusiast

Hi guys,

 

I use the following way to add the selection filter:

 

selectInput->addSelectionFilter(SelectionCommandInput::Faces);
selectInput->addSelectionFilter(SelectionCommandInput::MeshBodies);
selectInput->setSelectionLimits(1, 0);

 

Is it the right way?

 

But my codes always crashes when adding "MeshBodies".

 

Regards

John

 

 

 

0 Likes

selection filter

Hi guys,

 

I use the following way to add the selection filter:

 

selectInput->addSelectionFilter(SelectionCommandInput::Faces);
selectInput->addSelectionFilter(SelectionCommandInput::MeshBodies);
selectInput->setSelectionLimits(1, 0);

 

Is it the right way?

 

But my codes always crashes when adding "MeshBodies".

 

Regards

John

 

 

 

1 REPLY 1
Message 2 of 2
john4TMYX
in reply to: john4TMYX

john4TMYX
Enthusiast
Enthusiast
Accepted solution

selectInput->addSelectionFilter("Faces");
selectInput->addSelectionFilter("MeshBodies");

is the right way

1 Like

selectInput->addSelectionFilter("Faces");
selectInput->addSelectionFilter("MeshBodies");

is the right way

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

Post to forums  

Autodesk Design & Make Report