How to extract name of the input file *.IGS to name the associated component

User: "ve3D"
Altair Community Member
Updated by ve3D

Hi,

I’am trying to extract name of the input file for exmple 'NIV7_M0300.igs' to name the associated component by 'NIV7_M0300' :

 

*geomimport 'iges_altair' 'D:/PROJET/IGSforHPM/NIV7_M0300.igs' 'CleanupTol=-0.01' 'DoNotMergeEdges=off' 'ImportBlanked=off' 'ScaleFactor=1.0'

 

The problem is that when I import a file .igs in hypermesh, it will generate an arbitrary name of the component 'lvl53'. So I can not get the name  'lvl53' generated by hypermesh to change it to NIV7_M0300:

 

{Renamed Components from 'lvl53' to 'NIV7_D0300'}

*setvalue comps id=3 name=NIV7_D0300

 

Could anyone help me please?

 

Thanks for your helps

 

Best regards

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    try using hm_latestentityid comps to retrieve new created coms id and rename it

    User: "ve3D"
    Altair Community Member
    OP
    Updated by ve3D

    Hi Tinh,

    Thank you very much for your fast response.

    I'm a beginner in HyperMesh. If I understand, the code is:

    *setvalue comps id=hm_latestentityid  name=NIV7_D0300

     

    Best regards

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi Tinh,

    Thank you very much for your fast response.

    I'm a beginner in HyperMesh. If I understand, the code is:

    *setvalue comps id=[hm_latestentityid comps] name=NIV7_D0300

     

    Best regards

     

    User: "ve3D"
    Altair Community Member
    OP
    Updated by ve3D

    Hi Tinh,

    Thanks very much for your helps.

    It works perfectly

    Best regards