×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to create a construction entity (point or line) thru. centroid

How to create a construction entity (point or line) thru. centroid

How to create a construction entity (point or line) thru. centroid

(OP)
Hi,

For a closed geometries in a sketch, there is a centroid. I need to create a point or construcion line through this centroid. Is there a way to reference cordinates of the centroid via either equations or even API function?

Best regards,

Alex

RE: How to create a construction entity (point or line) thru. centroid

The following threads reference code for putting points at the center of mass of a body.  If you cannot find anything better, you might be able to create a bidirectional extrude from the sketch and use those to place your point.  This would be a sub optimal and non-parametric solution.

thread559-263826: Center of Mass Point Generation
thread559-130417: Relation to center of mass?

Eric

RE: How to create a construction entity (point or line) thru. centroid

(OP)
Hi, Eric:

Thanks for your quick reply!  It is good, but no good enough as it is not parametric.  It would be nice if we could build an equation to access cordinates of centroid (sketch) so than we use dimensions to locate point/line at the centroid.

The following command line is for a solid model:

Set Point = ModelDoc.CreatePoint2(MassProp(0), MassProp(1), MassProp(2))

Does anyone know what is the equivalent for a sketch (centroid)?

Best regards,

Alex

RE: How to create a construction entity (point or line) thru. centroid

Could you make the sketch a surface and then find the centroid of that?

--
Hardie "Crashj" Johnson
SW 2010 SP 4.0
HP Pavillion Elite HPE
W7 Pro, Nvidia Quaddro FX580

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources