hetauma Posted August 6, 2011 Posted August 6, 2011 Ok I will try to express this as good I can I have about 20 (1-20)different blocks. And I have to arrange them in different ways every time (1 2 3 4 then 3 8 16 3 etc). They are about the same size and they are always equally apart (0.2m). Is there any automated way so that I give the values or names of them from left to right and autocad gives me the array? And also is there a way to edit an array I have created? thanx in advance Quote
MSasu Posted August 6, 2011 Posted August 6, 2011 I think that the only way to solve this is programmatically. Please fell free to modify the code below to suit your needs (the commented lines). This presumes that your blocks doesn’t have attributes. (defun C:BlocksArray() (setq MyBlocksPath "C:\\MyBloks\\Myproject\\" ;add the path of your blocks ArraySpace 0.2 ;add the distance ArrayAngle 0.0) ;add the angle of array (if (setq InsPoint (getpoint "\nInsertion point: ")) (foreach theBlock '("Block1st" "Block2nd" "Block3rd") ;add the list of your blocks (command "_INSERT" (strcat MyBlocksPath theBlock) InsPoint 1 1 0) (setq InsPoint (polar InsPoint (* (/ ArrayAngle 180.0) pi) ArraySpace)) ) ) ) Regards, Mircea Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.