Select rectangle

Select rectangle

Anonymous
Not applicable
551 Views
3 Replies
Message 1 of 4

Select rectangle

Anonymous
Not applicable

Hi,

 

I use the code below to let the use select a part:

ComponentOccurrence thepartsel = (ComponentOccurrence) _inventApp.CommandManager.Pick(SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, "Select part");

 

But it only can be used to select 1 element. What I am searching for is a method to do a window selection or multiple pick.

 

Something like _inventApp.CommandManager.PickRectangle() 🙂

 

Can this be done and if so, how ?

0 Likes
552 Views
3 Replies
Replies (3)
Message 2 of 4

VdVeek
Advocate
Advocate
Remy, In the Inventor API Help there is an example of a Window Selection example. You can find it under Sample Programs -> User Interaction -> User Interface. Rob.
Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
0 Likes
Message 3 of 4

Anonymous
Not applicable
Okay, but this example works in a part drawing. I want to selcet sketches (sketch lines) in an inventor drawing with a window select. I can't find the equivalent of "kPartEdgeCircularFilter" for sketchlines ..
0 Likes
Message 4 of 4

VdVeek
Advocate
Advocate
Remy, the possible options for the selectionfilter can be found under SelectionFilterEnum Enumerator in the Api help section. When you want to select sketch items you need to search for the kSketch*** options in the Enum list. Or did you searched here already? Rob.
Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
0 Likes