🎉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

I want to register a proc and want to call back it when ever i use *translatemark nodes (Shift + f4 ) to move nodes

User: "Hypermesh User"
Altair Community Member
Updated by Hypermesh User

I used the below command to call the proc ::minanglecorrection3d, but it's not calling the proc once I have done with *translate nodes (Shift + f4 ) to move nodes

catch {hm_framework registerproc ::minanglecorrection3d after_*translatemark nodes 1 1 0.1}

 

Please help me to register a proc and need to call it whenever I use *translatemark nodes (Shift + f4 ) to move nodes

Find more posts tagged with

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

    Hi,

    hm_framework just accepts some special callback events (user profile changed, menu redraw,..)

    to add callback to *commands you need to use:

    ::hwt::AddCallback *translatemark ::minanglecorrection3d "after"

     

    your callback proc must have an argument as placeholder for HM passing *translatemark... into

    example

    proc ::minanglecorrection3d {star_command} {

      puts "Command was performed: $star_command"

      .... do your work here

    }

    User: "Hypermesh User"
    Altair Community Member
    OP
    Updated by Hypermesh User

    Hi Tinh,

     

        Thanks for your help Its work great, Is there any option to unregister the proc by passing command.

    User: "tinh"
    Altair Community Member
    Accepted Answer
    Updated by tinh

    Yes,

    this command will unregister the callback:

    ::hwt::RemoveCallback *translatemark ::minanglecorrection3d

    User: "Hypermesh User"
    Altair Community Member
    OP
    Updated by Hypermesh User

     Copy that Many thanks, Mr. Tinh.

    User: "Ajay Prabhakaran"
    Altair Community Member

    Hello Mr. Tinh,

    Can we register a proc during the client change. The proc should be executed during the client change from HM to HV or vice versa.