Non Zero Length CBUSH elements selection based on their CIDs

sanket_patil
sanket_patil Altair Community Member
edited March 2021 in Community Q&A

Hello All,

I want to select the non zero length CBUSH elements according to their CIDs, i.e. elements having local coordinate system, global coordinate system and no coordinate system. I tried with my code, but it is giving global coordinate system value (0) if the CID field is empty. Which command should i try?

image

As shown in above snap, CID field is empty. but it is giving value 0.

Please help me on this.

Regards,

Sanket

Answers

  • Julien Comas_21483
    Julien Comas_21483
    Altair Employee
    edited March 2021

    Hello,

     

    you can try to query the status of the attribute CBCID with this command :

    hm_attributestatus elem $element_id CBCID -byid
     
    if the command retruns 1, CBCID is used, if the command returns 0 then the CBCID is not defined.
     
    can you try and let me know?
     
    thanks and Regards
    Julien
  • sanket_patil
    sanket_patil Altair Community Member
    edited March 2021

    Hello,

     

    you can try to query the status of the attribute CBCID with this command :

    hm_attributestatus elem $element_id CBCID -byid
     
    if the command retruns 1, CBCID is used, if the command returns 0 then the CBCID is not defined.
     
    can you try and let me know?
     
    thanks and Regards
    Julien

    Thank you so much !

    Regards,

    Sanket