i want to create RBE2 element by connecting corner nodes to centroid of the solid ?
please help me how to get centroid point in solid?
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!.
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