We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General

General

What is the Workbench Scripting/ACT command to locate the centroid of entities in a Named Selection that was generated using a Worksheet?

    • FAQFAQ
      Participant

      The following ACT commands which can be used in WB Meshing to locate the centroid(s) of entities in a NS generated using worksheet. ns=ExtAPI.DataModel.Project.Model.NamedSelections.Children[0] ns.Ids ExtAPI.DataModel.GeoData.GeoEntityById() entity=ExtAPI.DataModel.GeoData.GeoEntityById(id) entity.Centroid