VBA event on part selection change?

VBA event on part selection change?

Anonymous
Not applicable
395 Views
1 Reply
Message 1 of 2

VBA event on part selection change?

Anonymous
Not applicable

I'm trying to write a Macro that would manipulate a part the user selects.

Envisioned work flow within an assembly:

 

1) Start the macro.

2) A form opens with a blank list (non-modal) form.

3) User can click on parts in either the main window or model tree?

4) On-click parts are added to the list on the form?

5) Some action is performed to the parts in the list.

 

Is this doable? Any examples around?

 

Boris.

0 Likes
396 Views
1 Reply
Reply (1)
Message 2 of 2

bradeneuropeArthur
Mentor
Mentor

yes that is possible.

hint:

ThisApplication.CommandManager.pick

listview.items.add(from the commandmanager)

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes