Jump to content
nghiapt.manucian@gmail.com

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

Recommended Posts

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 ? 

Share this post


Link to post
Share on other sites

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. 

 

 

Share this post


Link to post
Share on other sites

*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;

Share this post


Link to post
Share on other sites
On 4/25/2019 at 1:31 PM, Pandurang said:

*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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...