How to extract region properties of sketch entities

How to extract region properties of sketch entities

Anonymous
Not applicable
735 Views
1 Reply
Message 1 of 2

How to extract region properties of sketch entities

Anonymous
Not applicable

Hi,

 

I need to use the region properties API call to find the area moment of inertia for specific, closed sketch entities. The example here

 

http://forums.autodesk.com/t5/inventor-customization/how-to-second-moment-area-iproperties/td-p/3367...

 

will allow you to get the whole sketch region properties. You can even visualize the individual loops with the code from this blog:

http://adndevblog.typepad.com/manufacturing/2015/01/get-outer-profile-loop-in-sketch.html

 

I can't seem to get the properties of the individual loops. The region properties structure always returns  the properties for the whole sketch. Is there something special I need to do to get the sub-sketch region properties?

 

Thanks,

Chris

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

ekinsb
Alumni
Alumni
Accepted solution

The ability to calculate area properties is only supported on the Profile object.  However, you shoud be able to create a profile object that defines the area you want properties for.  I suggest looking at the Sketch topic in the API help.  In the table of contents it's found in:

 

Inventor API User's Manual

   Part and Assembly Modeling

      Working with Sketches

 

The portion that discusses profiles is near the end.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog