Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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

ErKo
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

 

 

[bingo_chatbox]