🎉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

How to edit card element - Automatic ( convert from Blank to OFFSET )

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hello everybody .

Please support for me !

For example, i have 5 components and set properties . I want to edit card element . Convert option from BLANK to OFFSET . Offset value = 1/2 thickness of component . Then show 2D detailed to check Thickness . 

How to write a tool tcl to perform that operation ? 

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Hi,

     

    Open command.tcl in your working folder (mostly Documents) delete all the commands, now do the above operation in Hypermesh, the tcl commands to do the same operations will be written in command.tcl. try running each line by line to understand what is going on, then add some more tcl commands and api to automate it. 

     

     

    User: "Pandurang"
    Altair Community Member
    Updated by Pandurang

    *createmark prop 1 all;
    foreach pid [hm_getmark prop 1] {

        *setvalue props id=$pid STATUS=2 1819 = 1
        set offsetvalue [expr 0.5 * [hm_getvlue prop id = $pid dataname = thickness]];
        *setvalue props id=$pid STATUS=2 1821 = $offsetvalue;

    }
    *clearmark prop 1;

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    *createmark prop 1 all;
    foreach pid [hm_getmark prop 1] {

        *setvalue props id=$pid STATUS=2 1819 = 1
        set offsetvalue [expr 0.5 * [hm_getvlue prop id = $pid dataname = thickness]];
        *setvalue props id=$pid STATUS=2 1821 = $offsetvalue;

    }
    *clearmark prop 1;

     

     

     

    This command is not working

    User: "Pandurang"
    Altair Community Member
    Updated by Pandurang

    don't just copy paste...

    write it down

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    How please gives a brief explanation for this script and how to write down