We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Dimension dependend on position in pattern Reply To: Dimension dependend on position in pattern

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

 

Â