Cancel
Showing results for
Did you mean:

# Centroid in solid

Solution Partner Pioneer

hi,

i want to create RBE2 element by connecting corner nodes to centroid of the solid ?

regards,

shreeharsha

2 REPLIES

# Re: CG point in solid

Solution Partner Phenom

Dear shreeharsha,

It's very easy: use command TOOLS > MASS PROPERTIES > SOLID PROPERTIES. Select the solid (please note, the solid should be a GENUINE 3-D SOLID, not simply surfaces!!) and answer YES to the question "Create Node at Total Center of Gravity?". This is your node, simply create a POINT in this node using command GEOMETRY > POINT > METHOD = ON NODE and you are done!.

Best regards,
Blas.

Blas Molero Hidalgo, Ingeniero Industrial, Director
IBERISA • 48004 BILBAO (SPAIN)
WEB: http://www.iberisa.com
Blog Femap-NX Nastran: http://iberisa.wordpress.com/

# Re: Centroid in solid

Siemens Legend

Here is an API to create a point at the CG of any solid or solids selected.

The HTML Clipboard

```Sub Main
Dim App As femap.model
Set App = feFemap()

Dim solSet As femap.Set
Set solSet = App.feSet

Dim sol As femap.Solid
Set sol = App.feSolid

Dim pt As femap.Point
Set pt = App.fePoint

Dim slID As Long
Dim ar As Double
Dim vol As Double
Dim cg As Variant
Dim inert As Variant

solSet.Select(FT_SOLID, True, "Select Solid(s)")

While solSet.Next
slID  = solSet.CurrentID
sol.Get(slID)
sol.MassProp(ar, vol, cg, inert)

pt.x = cg(0)
pt.y = cg(1)
pt.z = cg(2)
pt.Put(pt.NextEmptyID)

Wend

End Sub```