-
-
October 31, 2024 at 9:39 amjoe.lindleySubscriber
I'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 amErik KostsonAnsys Employee
Hi
Â
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.lindleySubscriber
thats fantastic thank you - sorry for the mis located post!Â
-
October 31, 2024 at 10:05 amErik KostsonAnsys Employee
happy 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.
- Problem with access to session files
- Ayuda con Error: “Unable to access the source: EngineeringData”
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- Geometric stiffness matrix for solid elements
- How to apply Compression-only Support?
- How to select the interface delamination surface of a laminate?
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- SMART crack under fatigue conditions, different crack sizes can’t growth
-
1236
-
543
-
523
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.