How to import CATIA Part files

GyeongJun Lee
GyeongJun Lee Altair Community Member
edited September 5 in Community Q&A

I created python script using SimLab before I use Hyperstudy.

And I played the script to check some errors, but It worked successfully.

However, whenever I use Hyperstudy, it doesen't work.

So I checked script log file, and I found that the CATIA model(.Part) didn't import.

But the model successfully imported when I played the script on SimLab.

How can I import model file on Hyperstudy? What was the problem?image

image

image

Answers

  • Aniruddha Duggani
    Aniruddha Duggani
    Altair Employee
    edited August 7

    Hi GyeongJun Lee,

     

    Can you please place all the files related to the script in a single folder and then try?
    Basically the CAD file, the script file and any other files being used in the script, please keep them in the same folder and similarly edit the relative path and then try.

     

    Please let me know if you still face the issue.

  • GyeongJun Lee
    GyeongJun Lee Altair Community Member
    edited August 7

    Hi GyeongJun Lee,

     

    Can you please place all the files related to the script in a single folder and then try?
    Basically the CAD file, the script file and any other files being used in the script, please keep them in the same folder and similarly edit the relative path and then try.

     

    Please let me know if you still face the issue.

    Hi, Aniruddha.

    Placing the script file with simlab result file isn't possible because of some reasons.

    So I separated the files

    image

  • GyeongJun Lee
    GyeongJun Lee Altair Community Member
    edited August 7

    Hi, Aniruddha.

    Placing the script file with simlab result file isn't possible because of some reasons.

    So I separated the files

    image

    I placed all the files related the script excluding hyperstudy file.

    But Importing Catia was failed

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited August 7

    Hi, Aniruddha.

    Placing the script file with simlab result file isn't possible because of some reasons.

    So I separated the files

    image

    Hello GyeongJun Lee,

    Do you have a design parameters in the CATIA model?

    I believe you are doing a DOE study with the HyperStudy. Are you going to change the CAD design parameters or SimLab parameters for DOE?

    If possible, could you please share the script and model? Will check and let you know.

    Thanks & Regards,

    Santhoshkumar

     

  • GyeongJun Lee
    GyeongJun Lee Altair Community Member
    edited August 7

    Hello GyeongJun Lee,

    Do you have a design parameters in the CATIA model?

    I believe you are doing a DOE study with the HyperStudy. Are you going to change the CAD design parameters or SimLab parameters for DOE?

    If possible, could you please share the script and model? Will check and let you know.

    Thanks & Regards,

    Santhoshkumar

     

    Hello Santhoshkumar,

    The script and the model are here.

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited August 7

    Hello Santhoshkumar,

    The script and the model are here.

    Hello GyeongJun Lee,

    Thank you for sharing the files.

    I will check and get back you.

    Thanks & Regards,

    Santhoshkumar

  • Marc_21384
    Marc_21384
    Altair Employee
    edited August 7

    Hello GyeongJun Lee,

    Thank you for sharing the files.

    I will check and get back you.

    Thanks & Regards,

    Santhoshkumar

    Hello GyeongJun Lee,

    Can you also share your .hstx file? You can create it by going to File > Export. When running in SimLab by itself you haven't had any problems?

    Kind regards,

    Marc

  • GyeongJun Lee
    GyeongJun Lee Altair Community Member
    edited August 8

    Hello GyeongJun Lee,

    Can you also share your .hstx file? You can create it by going to File > Export. When running in SimLab by itself you haven't had any problems?

    Kind regards,

    Marc

    Hello Marc,

    The script hasn't had any problems when it run in SimLab by itself.

    hstx file is here.

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited August 8

    Hello Marc,

    The script hasn't had any problems when it run in SimLab by itself.

    hstx file is here.

    Hello GyeongJun Lee,

    I can reproduce the issue which you have reported.

    While running the script through HST, the CATIA import is not working.

    Our development team is looking into this. Will get back you once they fix.

    I have noticed one more thing in the CATIA file which you have shared. The publications (groups) are not imported in SimLab. Further investigated and found that SL_PUB is not added to the created publications. After adding the SL_PUB, the publications are imported properly.

    Please find the attached SimLab help page regarding the CATIA publications for your reference.

    Please find the attached updated CATIA file.

    Thanks & Regards,

    Santhoshkumar.

  • GyeongJun Lee
    GyeongJun Lee Altair Community Member
    edited August 9

    Hello GyeongJun Lee,

    I can reproduce the issue which you have reported.

    While running the script through HST, the CATIA import is not working.

    Our development team is looking into this. Will get back you once they fix.

    I have noticed one more thing in the CATIA file which you have shared. The publications (groups) are not imported in SimLab. Further investigated and found that SL_PUB is not added to the created publications. After adding the SL_PUB, the publications are imported properly.

    Please find the attached SimLab help page regarding the CATIA publications for your reference.

    Please find the attached updated CATIA file.

    Thanks & Regards,

    Santhoshkumar.

    Hello Santhoshkumar,

    I installed the latest version, SimLab 2024 and Hyperstudy 2024, because I think they don't have this problem about CATIA import.

    But while I was running the script through HST 2024, the CATIA import wasn't working.

    I hope that your team find some reason of this problem.

    Thanks for your advise and your help.

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited August 11

    Hello Santhoshkumar,

    I installed the latest version, SimLab 2024 and Hyperstudy 2024, because I think they don't have this problem about CATIA import.

    But while I was running the script through HST 2024, the CATIA import wasn't working.

    I hope that your team find some reason of this problem.

    Thanks for your advise and your help.

    Hello GyeongJun Lee,

    Sorry for the delay in my response.

    Finally, I have identified the reason for the CATIA import failure in HyperStudy with the help of development team.

    The reason for the failure is, In the CATIA model, the following 2 parameters are with expressions. SimLab will not allow to regenerate the CATIA parameters with expression. In HyperStudy, all the Parameters are considered for the DOE run. Due to that the CATIA import failed.

    On SimLab side, the CATIA parameters with expression should not import inside SimLab. We will fix this one.

    As a workaround, kindly delete the below 2 parameters in "script_Params.xml" file. After that, run the script in HyperStudy. It will work fine.

    Please find the attached updated "script_Params.xml" file.

    Note: By changing the Parameter value for "L" & "N", the updated value will be considered in the "Wx" and "Wy" parameters.

    Please try this and let me know.

    image

    Thanks & Regards,

    Santhoshkumar

  • GyeongJun Lee
    GyeongJun Lee Altair Community Member
    edited August 11

    Hello GyeongJun Lee,

    Sorry for the delay in my response.

    Finally, I have identified the reason for the CATIA import failure in HyperStudy with the help of development team.

    The reason for the failure is, In the CATIA model, the following 2 parameters are with expressions. SimLab will not allow to regenerate the CATIA parameters with expression. In HyperStudy, all the Parameters are considered for the DOE run. Due to that the CATIA import failed.

    On SimLab side, the CATIA parameters with expression should not import inside SimLab. We will fix this one.

    As a workaround, kindly delete the below 2 parameters in "script_Params.xml" file. After that, run the script in HyperStudy. It will work fine.

    Please find the attached updated "script_Params.xml" file.

    Note: By changing the Parameter value for "L" & "N", the updated value will be considered in the "Wx" and "Wy" parameters.

    Please try this and let me know.

    image

    Thanks & Regards,

    Santhoshkumar

    Hello Santhoshkumar,

    As soon as I saw your comment, I was running the script immediately.

    It was successfully done! There were no problems like before.

    Thanks for your team's help.

    image

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited August 11

    Hello Santhoshkumar,

    As soon as I saw your comment, I was running the script immediately.

    It was successfully done! There were no problems like before.

    Thanks for your team's help.

    image

    Hello GyeongJun Lee,

    Thank you for confirming very quickly. :)

    Feel free to reach me if you have any queries.

    Thanks and Regards,

    Santhoshkumar