Best Of
-
Re: How to list all UnderDefined objects in the Model Tree?
Building on Landon's post: Using Mechanical scripting, how do I search for objects in the tree? — Community Forum, the appended script searches the Model Tree for objects in "UnderDefined" …2 -
Using Mechanical scripting, how do I search for objects in the tree?
For example, how would I get a pressure load named MyPressure or all Named Selections scoped to nodes?1 -
Re: Using Mechanical scripting, how do I search for objects in the tree?
Here are two useful methods for searching for objects in the Mechanical tree: ExtAPI.DataModel.GetObjectsByType() ExtAPI.DataModel.GetObjectsByName() Let's take a look at their usage in the context o…1 -
Re: [ANSYS Meshing] how to activate curvature for a "sizing" in a script?
Yes, it is time for an update ;)1 -
Re: Workbench Mechanical Update from CAD, UG can't close automatic
Solve it. I update the ANSYS Workbench version then it is OK1 -
Re: How to change the body color
Many thanks @"Akane Ito"1 -
Re: How to change the body color
Convert RGB as follows. Colors are displayed in RGB on the color palette, but they are actually represented in BGR, so caution is required. https://developer.ansys.com/docs/mechanical-scripting-inter…1 -
Re: How to speed up command snippet creation and create a progress bar ?
@Jean You can use this to delete multiple objects with one line. It is more efficient then the individual Object.Delete() methods. You can loop through objects and instead of deleting them, simply ad…1 -
Re: How can I use the mechanical script to locate these six locations and delete them?
Adding to Rajesh's answer, you can get the object type by selecting a branch in the tree and running: Tree.FirstActiveObject.GetType()1 -
Re: PyWorkbench - PyMechanical - WebApp, workflow example required.?
Hi @"Landon Mitchell Kanner" Thank you.... Hello @"vikas.namd" Thank you for your suggestion. I will implement from here1