PDA

View Full Version : Newbie question : store the name of the active Ztool



cgvinny
01-15-10, 08:29 AM
Hey guys !

I fell very ashamed to ask this kind of question cause i am pretty sure it is written somewhere in this forum, but i can't find it...

So whais the command to grab the name of the current tool ?

Could you help me pls ?

Thx a lot !

marcus_civis
01-15-10, 11:10 AM
Here you are:


[VarDef,name,""]
//this will give you the full path for saved ZTools other than the default collection:
[VarSet,name,[IGetTitle,Tool:Current Tool,0]]
//this will give you the interface path and tool name:
[VarSet,name,,[IGetTitle,Tool:Current Tool,1]]

EDIT: Note that you will need to have the top subtool selected if you want the name of that.

Hope this helps,

cgvinny
01-15-10, 01:22 PM
Thx a lot that' what I needed