Selection of rigids from displayed only with Scripts
Hello,
I wrote a script to find the Washer elements adjacent to the rbe2. I have isolated the component by material id. But, I am facing an issue to select the rbe2 elements from displayed only. Kindly provide any clarification in the following script.
## Selection of displayed rbe2
*createmark elements 1 "by config" 55
*createmark elements 2 "by displayed"
*markintersection elements 1 elements 2
set attach_elems [hm_getmark elems 1]
Thanks in advance.
Best Answer
-
Thirukumaran Subbian said:
Hello @Michael Hervé
I have tried using the "displayed" option too. It still giving out no result as per my concern.
Could you provide any alternative solution to this issue as well please?
Thanks.
Hello again @Thirukumaran Subbian ,
I read again your initial message, and yo want the elements attached to your rigid.
So the code below only contains displayed rigid elements:
*createmark elements 1 "by config" 55
*createmark elements 2 "by displayed"
*markintersection elements 1 elements 2
If yo want to get connected elements, then you can use
*appendmark elems 1 "by adjacent"
Does that help?
Best Regards,
Michael
1
Answers
-
hello @Thirukumaran Subbian ,
can you please the syntax below at line 2:
*createmark elements 2 "displayed"
Regards,
Michael
2 -
Hello @Michael Hervé
I have tried using the "displayed" option too. It still giving out no result as per my concern.
Could you provide any alternative solution to this issue as well please?
Thanks.
0 -
Thirukumaran Subbian said:
Hello @Michael Hervé
I have tried using the "displayed" option too. It still giving out no result as per my concern.
Could you provide any alternative solution to this issue as well please?
Thanks.
I can't imagine why Michael's suggestion didn't work but you could try:
hm_createmark elements 2 "advanced" "displayed"
https://help.altair.com/hwdesktop/hwd/topics/reference/hm/hm_createmark.htm
The help for *createmark also states that Michael had the proper syntax:
https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_createmark.htm
1 -
Thirukumaran Subbian said:
Hello @Michael Hervé
I have tried using the "displayed" option too. It still giving out no result as per my concern.
Could you provide any alternative solution to this issue as well please?
Thanks.
Hello again @Thirukumaran Subbian ,
I read again your initial message, and yo want the elements attached to your rigid.
So the code below only contains displayed rigid elements:
*createmark elements 1 "by config" 55
*createmark elements 2 "by displayed"
*markintersection elements 1 elements 2
If yo want to get connected elements, then you can use
*appendmark elems 1 "by adjacent"
Does that help?
Best Regards,
Michael
1 -
Michael Herve_21439 said:
Hello again @Thirukumaran Subbian ,
I read again your initial message, and yo want the elements attached to your rigid.
So the code below only contains displayed rigid elements:
*createmark elements 1 "by config" 55
*createmark elements 2 "by displayed"
*markintersection elements 1 elements 2
If yo want to get connected elements, then you can use
*appendmark elems 1 "by adjacent"
Does that help?
Best Regards,
Michael
That helps just fine! I needed that clarity which both of you provided.
Thanks @Michael Hervé and @Ben Buchanan for your inputs.
0