Insert dynamic block with preset xyz & rotate not working

Insert dynamic block with preset xyz & rotate not working

Anonymous
Not applicable
656 Views
4 Replies
Message 1 of 5

Insert dynamic block with preset xyz & rotate not working

Anonymous
Not applicable
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.
0 Likes
657 Views
4 Replies
Replies (4)
Message 2 of 5

hmsilva
Mentor
Mentor
Change the
"ROTATE" BlockName
to
"ROTATE" BlockRotate

HTH
Henrique

EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable
Sorry...that was a typo...it should have been BlockRotate. It still doesn't work.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Another quick question.
Do you know why does my coded come in without the line-returns in this forum?
0 Likes
Message 5 of 5

hmsilva
Mentor
Mentor

The code works as expected on this side.

 

'why does my coded come in without the line-returns '

probably, you are using HTML, try selecting Rich Text.

 

Henrique

 

 

EESignature

0 Likes