🎉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

Repeat the macro

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

Hi Friends.

How I can repeat the macro?

I down loaded Create_Center_Node_Radious.tcl from altair site.

It is very usefull.

But every time i need to select the Tcl command.

After selecting 1 circle it is creating 1 node at center and then it is tcl coming out.

If i am having 100 Circles. Then every time i need select Tcl.

So i want to repeat the macro.

Thanks & Regards

Subbaraju

Find more posts tagged with

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

    Hi Friend,

    try to put your script in a loop like this

    while {1} {

    *createmarkpanel lines 1 'Select circle(s) to create center:'

    if {[hm_marklength lines 1] == 0} {break}

    foreach LineID [hm_getmark lines 1] {

    CreateCenterOfCircle $LineID

    }

    }

    proc CreateCenterOfCircle {LineID} {

    #your script to create center of a circle

    #....

    }