VBA - read sub-component iProperties in Assembly

VBA - read sub-component iProperties in Assembly

FerrariF
Explorer Explorer
460 Views
1 Reply
Message 1 of 2

VBA - read sub-component iProperties in Assembly

FerrariF
Explorer
Explorer

Good morning to all

 

I have a problem with inventor VBA.

I'm writing a macro working on an assembly.

Right-clicking on each subcomponent in the assembli, it is possible to check iProperties=>Project=>Part Number. Reading through iProperties, the value is correct and readable.

How, in a VBA macro, is it possible to read the same value for each subcomponent and put it in a "string" variable?

Thanks to anyone that could help

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

JBerns
Advisor
Advisor
Accepted solution

@FerrariF,

 

Check out the sample code posted by Brian Ekins (@BrianEkins) on the site, Mod the Machines:

https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html

 

I hope this is helpful.

 

 

Regards,

Jerry 

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional