General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Dimension dependend on position in pattern

    • Jan Stüber
      Subscriber

      Hi Guys,

      for a better understanding of my problem a short example: I want to place  50 square beams in a linear pattern. The first beam has dimensions of 50 mm x 50 mm. For each beam following, the dimensions are reduced by 1mm, so beam two has dimensions of 49x49, beam 3 48x48, beam 4 47x47 and so on.

      I could generate one sketch for each beam, but is there a less exhausting way? Or do I need to duplicate the first sketch, and then change only the dimensions needed? For now iam working in DesignModeler

      Best regards

      Jan

    • Erik Kostson
      Ansys Employee

       

       

      Hi

      You need one section for each beam – it is possible to automate the section creation and section assignment (to line body) via mechanical scripting.

      It needs a script InternalObject which is not great - still see below on how to create a rectangular/square cross section inside Mech. using Scripting:

      –

      model = ExtAPI.DataModel.Project.Model

      crosssection_group=model.InternalObject.AddCrossSectionGroup()

      cross_sec=ExtAPI.DataModel.GetObjectsByType(DataModelObjectCategory.CrossSections)[0].AddRectangularCrossSection()

      –

      You can take the above and add  square sections and assign them as needed.

       

      All the best

      Erik

       

       

Viewing 1 reply thread
  • The topic ‘Dimension dependend on position in pattern’ is closed to new replies.