Message 1 of 5
Insert dynamic block with preset xyz & rotate not working
Not applicable
12-23-2014
05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
For years I have been using the following code to insert blocks with preset x,y,z scales and rotate, then setting attributes to default values.
Here is the old code that worked fine -
(setq BlockName "Test" BlockScale 1 BlockRotate 0)
(vl-cmdf "_INSERT" BlockName "XSCALE" BlockScale "YSCALE" BlockScale "ZSCALE" BlockScale "ROTATE" BlockName)
(command PAUSE)
(while (/= (getvar "CMDACTIVE") 0) (command ""))
Now that I am using dynamic blocks I get the following error -
(vl-cmdf "_INSERT" BlockName "XSCALE" BlockScale "YSCALE" BlockScale "ZSCALE" BlockScale "ROTATE" BlockName)
Point or option keyword required.
Requires numeric distance or second point.
Requires valid numeric angle or second point.