HM command recorder

pohan
pohan Altair Community Member
edited November 2020 in Community Q&A

Hello

 I tried to use the hm_command_recorder.tlc (please see attached file) file but it did no work because as the video it need the command.cmf file but as far as I know from version 14 this file is not exist. Could you please give me some suggestions.

Unable to find an attachment - read this blog

Tagged:

Answers

  • QuyNguyenDai
    QuyNguyenDai Altair Community Member
    edited March 2018

    Which version of Hypermesh do you use?

    'command.cmf' is OLD release.

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2018

    I don't think command recorder is anymore needed. For Altair Hypermesh 14 and above command.tcl saved in working directory (mostly in Documents) does the needed job. 

  • pohan
    pohan Altair Community Member
    edited March 2018

    Which version of Hypermesh do you use?

    'command.cmf' is OLD release.

    HI

    I use version 2017

  • pohan
    pohan Altair Community Member
    edited March 2018

    I don't think command recorder is anymore needed. For Altair Hypermesh 14 and above command.tcl saved in working directory (mostly in Documents) does the needed job. 

    Hello

    Could u please tell me more about that! Does it means every command in HM saved after we save that file?

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2018

    Hello

    Could u please tell me more about that! Does it means every command in HM saved after we save that file?

     

    Hi, 
    It keeps a track of all the operations you're doing in HM. It saves automatically in background. 

  • pohan
    pohan Altair Community Member
    edited March 2018

    Thank you Livil Lyle

    In my opinion, sometimes if we want to focus on some specific commands may be command recorder is better.

  • tinh
    tinh Altair Community Member
    edited March 2018

    It is not a problem with me. I usually delete command.cmf before I focus on a certain command.

    the recorder is actually unnecessary

    if i want to track it, I will set a tracer

  • pohan
    pohan Altair Community Member
    edited March 2018

    Hello

    I create my first tcl/tk script file with the syntax like that

     *startnotehistorystate {Deleted Components} *createmark components 1 ' RW_left' ' RW_right' 'Compresseur' *clearmark components 1 *createmark components 1 ' RW_left' ' RW_right' 'Compresseur' *deletemark components 1 *endnotehistorystate {Deleted Components}

    in order to delete component ' RW_left' ' RW_right' 'Compresseur' in my model.

    But when I run the tcl/tk script file it did not work.

    Could you please give me some suggestions?

    Thanks

  • tinh
    tinh Altair Community Member
    edited March 2018

    Hi

    try removing space in front of comp names

    you have excessive createmark and clearmark commands at line 2 & 3, they are unnecessary.

  • pohan
    pohan Altair Community Member
    edited March 2018

    Hi

    try removing space in front of comp names

    you have excessive createmark and clearmark commands at line 2 & 3, they are unnecessary.

    Hi

    I tried but It said that

    invalid command name '*startnotehistorystate'
    invalid command name '*startnotehistorystate'
        while executing
    '*startnotehistorystate {Deleted Components}'
        (file 'D:/Dropbox/Lille/Altair/TCL/Hoan/command03_15_delcomp.tcl' line 1)
        invoked from within
    'source {D:/Dropbox/Lille/Altair/TCL/Hoan/command03_15_delcomp.tcl}'
        ('uplevel' body line 1)
        invoked from within
    'uplevel #0 'source {$file}''
        (procedure '::HM_Framework::p_FileLoad' line 68)
        invoked from within
    '::HM_Framework::p_FileLoad 24'
        (menu invoke)

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2018

    Hi Pohan, 

    You don't need startnotehistorystate and end endnotehistorystate. All you have to do is:
     

     *createmark components 1 'RW_left' 'RW_right' 'Compresseur' *deletemark components 1
  • pohan
    pohan Altair Community Member
    edited March 2018

    Hi Tinh and Livil

    Thank you very much. It worked with two rows.

    I think  startnotehistorystate and end endnotehistorystate are for undo.