Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › Dimension dependend on position in pattern › Reply To: Dimension dependend on position in pattern
Â
Â
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
Â
Â