Help with VBA Code and Extracting Properties

Help with VBA Code and Extracting Properties

Anonymous
Not applicable
433 Views
1 Reply
Message 1 of 2

Help with VBA Code and Extracting Properties

Anonymous
Not applicable

Hi,

 

I am working on writing code in the VBA Editor, and I am trying to access the properties from a Cross Section Analysis, and show them in a message box. I began by writing some code, and I got the "value" for the kCrossSectionAnalysis. What I want is the area, Ix, and Iy properties (on the right-hand side) of the results from the Cross Section Analysis. How would I access the actual numbers and specific properties from that Cross Section Analysis? I have posted some pictures below showing what I mean.

 

Thanks.

 

VBA code.PNGAPI Help (2).PNGCrossSectionAnalysis.PNGVBA message box.PNG

 

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

frederik_vollbrecht
Advocate
Advocate

Hello,

 

I guess you are new to iLogic /coding.

 

What you are doing in your MsgBox is just show the ID-Value of the function itself. You can think of it as a Nickname.

 

What you want to do is get the value of a object. Have a look at this thread:
https://forums.autodesk.com/t5/inventor-customization/cross-section-analysis-and-vba-editor-object-b...

 


Was the solution helpful? Please mark as accepted or kudo

0 Likes