Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA - read sub-component iProperties in Assembly

1 REPLY 1
SOLVED
Reply
Message 1 of 2
FerrariF
371 Views, 1 Reply

VBA - read sub-component iProperties in Assembly

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

1 REPLY 1
Message 2 of 2
JBerns
in reply to: FerrariF

@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 Inventor 2022
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report