macro help for

    
  Subscribe Topic

Rank: 1

Steve

Newbie

posts: 0

Registered: 2004-3-1

Message 1 of 4

 macro help for
03-08-2009 04:12 . pm   |   View his/her posts only
Hi Chris and all

I need to get a macro that writes to center point and radius of a circle (in the modeler) to a file. I can't seem to correctly access the info in the WrFmInqCrv dialog after issuing the !WrInqCrv command. I can get to the first two fields of the form (the Type and the Length) with no problem. For example, the following will set the cpt_coord variable to the value in the length field.
_________________________________________
[vxSend,"!WrInqCrv"]
myCurve <= "#" + myCurve ## myCurve was selected by the user earlier in the macro
[vxSend,myCurve]
[vxFormItemGet,"WrFmInqCrv",2,1,1,cpt_coord]
[Print,"centerPoint is: ",cpt_coord]
__________________________________________
Can anyone help me get the info out of the THIRD field of the WrFmInqCrv dialog? This field contains the "critical points" data.

Thanks

Steve

Rank: 1

Mike

Newbie

posts: 0

Registered: 2002-8-28

Message 2 of 4

03-08-2009 04:24 . pm   |   View his/her posts only
Steve,

I will find an answer for you shortly.

Rank: 1

ChrisWard2k2

Newbie

posts: 2

Registered: 2011-11-22

Message 3 of 4

07-08-2009 07:44 . am   |   View his/her posts only
Hi Steve

See the file "Circle3Info" which shows how to do it. Should be fine for v12.93 to v14.05.

Rank: 1

Steve

Newbie

posts: 0

Registered: 2004-3-1

Message 4 of 4

07-08-2009 12:53 . pm   |   View his/her posts only
Perfect. Thanks Chris.
See also
X