Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

Principal Moments of a region (or closed polyline)

$
0
0

Hi all,

 

I'm trying to calculate the principal moments (and section modulus) of a slection of closed polylines.

On this blog, I read that there are some new classes and functions in the AutoCad 2014 objectARX that can do this.

 

The one that interests me the most is 'RegionAreaProperties.PrincipalMoments Property'.

 

However with my limited programming skills, I can't get it to work in vb.net.

I thought is was just a property of a region, but something like 'myregion.RegionAreaProperties.PrincipalMoments' does not work.

With the code I already have I use a selectionfilter to select multiple closed polylines. I can convert these to regions if nescesary. But what is the next step? I can't find any samples of it. Not even in the Autodesk Developer's Guide.

 

Can anyone point me in the right direction? maybe a small example?


Viewing all articles
Browse latest Browse all 14319

Trending Articles