TAGGED: 3d-modelling, design-modeler, mechanical, workbench
-
-
February 12, 2024 at 9:27 amJan StüberSubscriber
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
-
February 12, 2024 at 10:43 amErik KostsonAnsys 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
Â
Â
-
- The topic ‘Dimension dependend on position in pattern’ is closed to new replies.
- Error when opening saved Workbench project
- At least one body has been found to have only 1 element in at least 2 directions
- Script Error Code:800a000d
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
- Image to file in Mechanical is bugged and does not show text
-
1882
-
802
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.