Access surface color data from parasolid

Bocaj22
Bocaj22 Altair Community Member
edited November 2023 in Community Q&A

Hello,

Is it possible to access the color metadata attached to the surfaces in a parasolid (or other CAD format)? This would be useful to designate certain surfaces from our CAD platform prior to a hypermesh automation script. For example, green surfaces have a mesh size (or thickness) of 1 mm, red surfaces 1.5 mm, etc.

I have tried hm_metadata but do not see color as an option.

If not, any other ideas to label surfaces from a CAD program and recognize it in Hypermesh?

Thanks,

Jacob

Tagged:

Best Answer

  • Michael Herve_21439
    Michael Herve_21439
    Altair Employee
    edited November 2023 Answer ✓

    Hello @bocaj22 ,

     

    did you checked Color in the import pop-up when  loading a CAD:

     

    image

    If so you should be able to use this command:

    hm_metadata findbyname COLOR_RGB

    and to get the color with rgb code:

    image

     

    Does it help?

     

    Regards,

    Michael

Answers

  • Michael Herve_21439
    Michael Herve_21439
    Altair Employee
    edited November 2023 Answer ✓

    Hello @bocaj22 ,

     

    did you checked Color in the import pop-up when  loading a CAD:

     

    image

    If so you should be able to use this command:

    hm_metadata findbyname COLOR_RGB

    and to get the color with rgb code:

    image

     

    Does it help?

     

    Regards,

    Michael

  • Bocaj22
    Bocaj22 Altair Community Member
    edited November 2023

    Hello @bocaj22 ,

     

    did you checked Color in the import pop-up when  loading a CAD:

     

    image

    If so you should be able to use this command:

    hm_metadata findbyname COLOR_RGB

    and to get the color with rgb code:

    image

     

    Does it help?

     

    Regards,

    Michael

    Michael,

    I did not realize it was an option during import. That solves it, thanks!