Filter Problem - Can’t add two different filters

Filter Problem - Can’t add two different filters

Crstiano
Collaborator Collaborator
1,270 Views
1 Reply
Message 1 of 2

Filter Problem - Can’t add two different filters

Crstiano
Collaborator
Collaborator

Is there any way to add two types of selection together? (Ex. kWorkPointFilter,kPartVertexFilter)

 

' Call the Pick method of the clsSelect object and set the filter to pick any face.

 

Dim oObject As Object
Dim oSelect As New clsSelect
Set oObject = oSelect.Pick(kWorkPointFilter AND kPartVertexFilter)

 

Thanks in advance.

 

 

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


Cristiano Oliveira
EESignature
ConsultCAD.com

0 Likes
Accepted solutions (1)
1,271 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni
Accepted solution

You're correct that you can't use more than one filter.  However there is another filter that might do what you want. You can try kAllPointEntities.  This will get work points and vertices but will also allow selection of sketch points.

 

If you need finer control then you'll need to use the SelectionEvents capability in an InteractionEvents object.  It provides a lot more capabilities in controlling what is selected.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes