The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Hello all,
please any one can help deselect the nodes or elements by feature angle through scripts.
A screenshot to better understand your question?
Hello Nguyen-dai,
I can able to select the elements with in the some feature angle ( ex 50 degree) elements by face option. Now my question is how to deselect the elements by feature angle.
save your first set of nodes in mark 1, just an example
*createmark 1 nodes 'by collectorname' theCollectorYouWant
Now select the nodes you want to remove from set in mark 1
*createmark 2 nodes 'by cone'
CONE help: 'by cone' x y z i j k rb rt h location contained all tol Place entities on mark_id if they are inside/outside/on the boundary of the cone. x – base center x coordinate y – base center y coordinate z – base center z coordinate i – x-normal, x-coordinate of a point on the cylinder axis j – y-normal, y-coordinate of a point on the cylinder axis k – z-normal, z-coordinate of a point on the cylinder axis rb – radius at the cone base rt – radius at the cone top h – height. A negative value indicates the direction is opposite to the normal vector. location – The location of the entities to find, relative to the shape. Valid values are inside, outside, boundary and acrossboundary. contained – A flag that indicates whether the entire entity should meet the location criteria (1) or just any part of the entity (0) to be selected. all – A flag that indicates whether all entities (1) or only displayed entities (0) are considered for selection. tol – The tolerance to use. In most cases, this should be set to 0. This is currently supported for nodes, elements, connectors, components (FE and connectors only), loads, equations, loadcols, systems, systcols, vectors, vectorcols, blocks, groups, sets and contactsurfs.
CONE help:
'by cone' x y z i j k rb rt h location contained all tol
Place entities on mark_id if they are inside/outside/on the boundary of the cone.
x – base center x coordinate
y – base center y coordinate
z – base center z coordinate
i – x-normal, x-coordinate of a point on the cylinder axis
j – y-normal, y-coordinate of a point on the cylinder axis
k – z-normal, z-coordinate of a point on the cylinder axis
rb – radius at the cone base
rt – radius at the cone top
h – height. A negative value indicates the direction is opposite to the normal vector.
location – The location of the entities to find, relative to the shape. Valid values are inside, outside, boundary and acrossboundary.
contained – A flag that indicates whether the entire entity should meet the location criteria (1) or just any part of the entity (0) to be selected.
all – A flag that indicates whether all entities (1) or only displayed entities (0) are considered for selection.
tol – The tolerance to use. In most cases, this should be set to 0.
This is currently supported for nodes, elements, connectors, components (FE and connectors only), loads, equations, loadcols, systems, systcols, vectors, vectorcols, blocks, groups, sets and contactsurfs.
set cone parameters that match your angle parameters
and then, another code line:
*markdifference nodes 1 nodes 2
Now you have in mark 1 your nodes but these nodes you wanted to deselect
regards, drwill
Hello all, please any one can help deselect the nodes or elements by feature angle through scripts.
example, you already selected some nodes by
*createmark nodes 1 ... ... ...
now you want to remove some nodes by feature angle, you can do:
*createmarkpanel nodes 2 'Select nodes on faces to remove:' *appendmark nodes 2 'by face' *markdifference nodes 1 nodes 2 *clearmark nodes 2
Hi Tinh,
Please can you help me how to debug the script using hypermath interface with hypermesh in debugging mode
Hello tinh,
Can you help me how to ignore the errors by using catch
Hello tinh, Can you help me how to ignore the errors by using catch
Hello
Please refer to tcl command 'catch' for its usage
https://www.tcl.tk/man/tcl/TclCmd/contents.htm
It is better if you post your script here so we can debug it for you
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…