🎉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

Non Zero Length CBUSH elements selection based on their CIDs

User: "sanket_patil"
Altair Community Member
Updated by sanket_patil

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

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "JulienCOMAS"
    Altair Employee
    Updated by JulienCOMAS

    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
    User: "sanket_patil"
    Altair Community Member
    OP
    Updated by sanket_patil

    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