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