Deselect by angle
Hello all,
please any one can help deselect the nodes or elements by feature angle through scripts.
Answers
-
A screenshot to better understand your question?
0 -
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.
0 -
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.
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
0 -
Altair Forum User said:
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
0 -
Hi Tinh,
Please can you help me how to debug the script using hypermath interface with hypermesh in debugging mode
0 -
Hello tinh,
Can you help me how to ignore the errors by using catch
0 -
Altair Forum User said:
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
0