TAGGED: 3d-modelling, design-modeler, mechanical, workbench
- 
		
			
- 
February 12, 2024 at 9:27 am
Jan Stüber
SubscriberHi 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 am
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
Â
Â
 
 - 
 
- The topic ‘Dimension dependend on position in pattern’ is closed to new replies.
 
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
 - Convergence error in modal analysis
 - APDL, memory, solid
 - Meaning of the error
 - How to model a bimodular material in Mechanical
 - Simulate a fan on the end of shaft
 - Nonlinear load cases combinations
 - Real Life Example of a non-symmetric eigenvalue problem
 - How can the results of Pressures and Motions for all elements be obtained?
 - Contact stiffness too big
 
- 
                        
                        4167
 - 
                        
                        1487
 - 
                        
                        1363
 - 
                        
                        1194
 - 
                        
                        1021
 
© 2025 Copyright ANSYS, Inc. All rights reserved.