My thinking is flawed here, somehow.
Using this...
(then do this)
(else do this when false)
)
(If
dimscale is 8
and
objects exist at this location
and
on any layer starting with "TEXT"
do change)
(objects exist at this location
and
on any layer starting with "TEXT"
do change)
)
'(268.5 171.0)
'(254.25 42.125)
'((8 . "Text*"))))
(command "._change" ref1
"" "p" "la" "Text2" "") )
'(33.375 21.375)
'(31.875 5.375)
'((8 . "Text*"))))
)
(command "._change" ref1
"" "p" "la" "TBLK_TBLK_REFTEXT" "")
My problem is, what if it nothing exists? There is more code after this that runs fine, but I get...
Command: STA_STD
STA_STD
Working, please wait... Regenerating model.
Unknown command "P". Press F1 for help.
Unknown command "LA". Press F1 for help.
Unknown command "TBLK_TBLK_REFTEXT". Press F1 for help.
Unknown command "STA_STD". Press F1 for help.
Unknown command "STA_STD". Press F1 for help.
when I change everything from Layer TEXT* to Layer TBLK_TBLK_REFTEXT
Am, I using "IF" properly (clearly not, you say) and how do I account for nothing being found?
J. Logan