Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to create a simple script that will update the diameter of all the circles on a specific layer and later I want it to change the style of all MText objects. Here is what I have so far:
(setq sel1 (ssget "X" '((0 . "CIRCLE")(8 . "Text")))) (setpropertyvalue (entlast) "radius" 5)
Here are the results of that script:
Command: '_script Command: (setq sel1 (ssget "X" '((0 . "CIRCLE")(8 . "Text")))) <Selection set: 1be6> Command: (setpropertyvalue (entlast) "radius" 5) nil
I also tried this:
(setq sel1 (ssget "X" '((0 . "CIRCLE")(8 . "Text")))) (setpropertyvalue sel1 "radius" 5)
and got this result:
Command: '_script Command: (setq sel1 (ssget "X" '((0 . "CIRCLE")(8 . "Text")))) <Selection set: 1beb> Command: (setpropertyvalue sel1 "radius" 5) ; error: ADS request error
In a document with a "Text" layer that has circles on it nothing happens. Does anyone know why this is? Also does anyone know what the ADS error is and why I got it?
Finally, when i am actually using this script some files have a Text layer while others have a TEXT layer, will the capitalization make a difference?
Thanks,
--Ben (AutoCAD mechanical 2013)
Solved! Go to Solution.