InteractionEvents PartPriority, select part in drawing view

InteractionEvents PartPriority, select part in drawing view

CadUser46
Collaborator Collaborator
429 Views
3 Replies
Message 1 of 4

InteractionEvents PartPriority, select part in drawing view

CadUser46
Collaborator
Collaborator

What selection filter enum do i need to allow selecting a part from an assembly drawing view?

Equivalent to the user selecting Part Priority then clicking on a part in a drawing view.

 

If no selection filter then how do i accomplish this?


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes
Accepted solutions (1)
430 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor
Accepted solution

Hi @CadUser46.  A user actually already created a code for that specific task a while back here in the forums, then went on to created a blog post about it because it was pretty popular.  Here is a link to the blog post outside the forums.  I hope this is what you were looking for.  It is very similar to a couple of the VBA macro samples provided by Autodesk for user interaction & selection, but converted to iLogic and slightly customized to this task.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 4

CadUser46
Collaborator
Collaborator

@WCrihfield  Yea, that's pretty much what i'm looking for.  

I can see he is selecting kDrawingCurveSegmentFilter then navigating up to the parent object.  I'll work out something akin to that in VBA.

 

Thanks


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes
Message 4 of 4

WCrihfield
Mentor
Mentor

OK.  Here are a couple of the similar VBA macro samples provided within the Online Help section, that may help you to develop your VBA macro the way you want it.  It obviously seems a lot more complicated to set everything up like that using VBA, because you have to separate out the custom Class code to its own Class type module, then put the rest of the code into a regular module.  A lot of folks miss that little detail when attempting to use these samples.

Basic Selection Using Interaction Events API Sample 

Window Selection API Sample 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes