VBA metod "Component Offset"

VBA metod "Component Offset"

anton_voitin
Participant Participant
430 Views
8 Replies
Message 1 of 9

VBA metod "Component Offset"

anton_voitin
Participant
Participant

Hi all. I'm interested in how to get to the method of these commands in VBA. Thanks for any help

anton_voitin_0-1695582344067.png

 

0 Likes
Accepted solutions (1)
431 Views
8 Replies
Replies (8)
Message 2 of 9

bradeneuropeArthur
Mentor
Mentor
where is this original command found:
Part
Assembly

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
Message 3 of 9

anton_voitin
Participant
Participant

This is clear to me. I want to use this command in my macro. how can I apply it in VBA code? Is it possible to show an example?

0 Likes
Message 4 of 9

bradeneuropeArthur
Mentor
Mentor

Yes I know.

But I need to know where the original command is located, then I can help your further!

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
Message 5 of 9

WCrihfield
Mentor
Mentor

FYI:  I believe that is one of the selection methods.

The online help for this can be found under the "Select Command Reference" topic.

https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-3E3537A9-565E-4F2E-B69D-069EDCDF1AE1 

There is usually a selection filter type drop-down in the Quick Access toolbar with something in its list labeled "Select Component Offset...".  I'm not familiar with it either.

WCrihfield_0-1695667948008.png

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 9

anton_voitin
Participant
Participant

Yes, this is the same method. Everything I found in the selection priorities. But I don’t see anything suitable or am I missing something?

anton_voitin_0-1695669164459.png

 

0 Likes
Message 7 of 9

Frederick_Law
Mentor
Mentor
Accepted solution

It is an internal Command: AssemblyEnhSelComponentBBCmd

The Spherical Select is: AssemblyEnhSelSphereCmd

Both require user action.

Don't know if it's possible to program any input.

 

Call ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyEnhSelComponentBBCmd").Execute

 

Message 8 of 9

anton_voitin
Participant
Participant

Thank you very much. I tried searching among the commands but couldn't find it. And now you rubbed my nose in) Now I’ll try to work with this, thank you very much.

0 Likes
Message 9 of 9

Frederick_Law
Mentor
Mentor

Use EventWatcher from the SDK.

EventWatcher-02.jpg