- 
		
			- 
October 31, 2024 at 9:39 amjoe.lindley SubscriberI'm looking to create a script to add end releases to a line body model I have imported with many verticies. The default end release is acceptable as a start point, and I will manually select those that need releases changed at a later point. I would like to have the end releases applied across the board automatically rather than add them manually later. 
 I have started by creating a named selection for the vertices:
 with Transaction(True):
 # Create an empty named selection for vertices
 named_selection_vertex = model.AddNamedSelection()
 named_selection_vertex.Name = "Vertices"
 with Transaction(True):
 # Create an empty named selection for vertices
 named_selection_edge = model.AddNamedSelection()
 named_selection_edge.Name = "Edges"
 And follow that up with trying to gather the verticies and edges into their named selections.
 And this is where I stumble as I'm not sure how to call up the vertexes or edges. For bodies etc. i have used datamodelobjectcategory , but they do not exist there. Can i use IGeoVertex in some way?
 Thanks for your help,
 Joe
- 
October 31, 2024 at 9:45 amErKo Ansys EmployeeHi See here how to obtain geometry: 
 https://discuss.ansys.com/discussion/1857/how-to-get-geometry-data-from-mechanical-model-via-scriptAny questions post in that forum as it is dedicated for that (scripting). All the best Erik 
- 
October 31, 2024 at 9:49 amjoe.lindley Subscriberthats fantastic thank you - sorry for the mis located post! 
- 
October 31, 2024 at 10:05 amErKo Ansys Employeehappy to help. anything post there and I will help on the other side. Erik 
 
- 
- The topic ‘Scripting Help – Vertices and End Releases’ 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
- Real Life Example of a non-symmetric eigenvalue problem
- Nonlinear load cases combinations
- How can the results of Pressures and Motions for all elements be obtained?
- Contact stiffness too big
- 
                        
                        4167
- 
                        
                        1487
- 
                        
                        1363
- 
                        
                        1189
- 
                        
                        1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
 You are navigating away from the AIS Discovery experience
You are navigating away from the AIS Discovery experience 
               
          