🎉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

Changing parameters using scripts

User: "azazga anis"
Altair Community Member
Updated by azazga anis

Hello team,

I am currently working with Simlab and using python scripts to edit sketches and geometries. I want to change some geometry parameters using these scripts and have some questions. Do I need to modify parameters directly in the parameters.xml file or in the python scripts? Is it possible to change the geometry only on the sketches, directly on the geometries, or on the sketches that determine the geometries?

I have tried manipulating the XML and Python files, as well as linking them together, but the parameters in Simlab do not change. Could I be missing something in this process?

Thank you in advance for your responses

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Santhoshkumar"
    Altair Employee
    Updated by Santhoshkumar

    Hello,

    Please use the below function and modify the sketch parameter.

    ModifyParameters=''' <ModifyParameters UUID="4ca68ace-4163-416c-9a28-bceae4fccad9">
      <Parameter Comments="" OldName="M1_L1" Link="" Value="50 mm" Type="Length"/>
     </ModifyParameters>''';
    simlab.execute(ModifyParameters);

    Attached is the sample script for your reference.

    Note: The xml file is used only for the DOE purpose.

    Thanks & Regards,

    Santhoshkumar