🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Selection of rigids from displayed only with Scripts

User: "Thirukumaran"
Altair Community Member
Updated by Thirukumaran

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.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Michael Herve"
    Altair Employee
    Accepted Answer
    Updated by Michael Herve

    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