icon

Allplan Fórum

[Otázka] Gravity Center

Tagy:
  • Allplan
  • 2025
  • Visual
  • Scripting
  • Bug
  • Issue
  • Code
  • 3dmodel

Hello there,

I've made a visual script to try and get the gravity center but get error every time (cf pictures) and i don't know what to do to resolve the issue. If you have any idea i take it !

Thanks for answering

Přílohy (3)

Type: image/png
Staženo 18
Size: 66,33 KiB
Type: image/png
Staženo 17
Size: 64,27 KiB
Type: image/png
Staženo 12
Size: 57,86 KiB

The CalcMass-Node and also the underlaying function accepts only 3D-Solids, like Polyhedron3D, BRep3D and others shown in the message. You have obviously select a 2D-Line!
If you want the Centerpoint of the line, please use other Node to get it!