fn FindSelName = (
if $ != undefined and selection.count == 1 do edt1.text = $.name
)
on renameObj_Rollout open do
(
registerRedrawViewsCallback FindSelName --打开工具时注册获取物体名函数
)
on renameObj_Rollout close do
(
unregisterRedrawViewsCallback FindSelName --关闭工具时注消获取物体名函数
)
on btn1 pressed do
(
if $ != undefined and selection.count == 1 do(
$.name = edt1.text
)
)
)