Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Array Command in Lisp \ Macro

3 REPLIES 3
Reply
Message 1 of 4
dwk1204
1528 Views, 3 Replies

Array Command in Lisp \ Macro

Is it not possible to use the array command in a lisp or macro?? When I try it appears it does not recognize the "Path" option, but has no problem with the "Polar" Rectangle" options??

 

Thanks advance for any assistance...

3 REPLIES 3
Message 2 of 4
hmsilva
in reply to: dwk1204

dwk1204,
if you mean ARRAYPATH [Command], perhaps something like

 

(defun c:test ()
  (command "_arraypath")
  (while (> (getvar 'cmdactive) 0) (command "pause"))
  (princ)
)

hope that helps
Henrique

EESignature

Message 3 of 4
dwk1204
in reply to: hmsilva

Henrique - Thanks for the reply..I am still having issues (still learning lisp)...Once the lisp routine goes in to the arraypath command I have it select last object created, then pause for the user to select the path. Up to that point it works great, but then it fails when I try to input option "items" and then input "10" for the distnace between items on the selected path. I thought I was just missing the arraypath command  (thanks by the way) and using the normal array command, but that's not the only issue.

 

Thanks again for the reply...

Message 4 of 4
hmsilva
in reply to: dwk1204

dwk1204,
you need to read the prompts in the command line

 

Specify the distance between items along path or [Divide/Total/Expression]
<Divide evenly along path>: e <-Expression

Enter expression: 5 <-Distance between objects

 

EDIT:

I can't help with the array command and the path option, in this laptop my AutoCAD don't have the array command with the option path, is a very old one...


hope that helps
Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost