MJLM Posted August 29, 2017 Posted August 29, 2017 I m trying to use the following (command "_3darray" ss "" "_R" 3 6 3 6 3 6) to make a 3D array but it fails. I read that I need to do it like this (vl-load-com) (load "3darray") (vlax-add-cmd "3darray" 'c:3darray) (command "3darray" rib "" "_R" 3 6 3 6 3 6) but it still fails. It only returns the input values and nil. What I m doing wrong? I m on 2017. Quote
MJLM Posted August 30, 2017 Author Posted August 30, 2017 No one? Could somebody at least confirm whether it s working on their system or not, please? Quote
ronjonp Posted August 30, 2017 Posted August 30, 2017 No one? Could somebody at least confirm whether it s working on their system or not, please? I could not get the command to work, but this does: (vla-arrayrectangular (vlax-ename->vla-object (car (entsel))) 3 6 3 6 3 6) Quote
ronjonp Posted August 30, 2017 Posted August 30, 2017 FWIW .. your second example worked in both 2017/18 for me. You could also try using command-s in place of command. Quote
MJLM Posted September 1, 2017 Author Posted September 1, 2017 Hard to understand what s going on. On a new empty drawing the (setq rib (ssget)) (vl-load-com) (load "3darray") (vlax-add-cmd "3darray" 'c:3darray) (command "3darray" rib "" "_R" 3 6 3 6 3 6) does not work. I opened an other older drawing with elements drawn and it works. You suggestion seems to be better as it does the job in one stroke and most importantly, it works. Unfortunately I does not seem to work with selection sets which is my aim. Thanks for the suggestion anyway. Further, I was trying to do it with 'arrayrect'. When just giving the following (command "_.arrayrect" ss "" "R" 3 2 0 "COL" 2 5 "L" 5 2 "" on the command prompt, it did the job throwing back however a message. During lisp routine execution it does not work. All this array command family is kind weird I may say. Any suggestions are welcome. Quote
ronjonp Posted September 1, 2017 Posted September 1, 2017 Hard to understand what s going on. On a new empty drawing the (setq rib (ssget)) (vl-load-com) (load "3darray") (vlax-add-cmd "3darray" 'c:3darray) (command "3darray" rib "" "_R" 3 6 3 6 3 6) does not work. I opened an other older drawing with elements drawn and it works. You suggestion seems to be better as it does the job in one stroke and most importantly, it works. Unfortunately I does not seem to work with selection sets which is my aim. Thanks for the suggestion anyway. ... Any suggestions are welcome. A workaround could be to turn your selset into a block .. run the vla-arrayrectangular then explode. Quote
devitg Posted September 2, 2017 Posted September 2, 2017 Just , please . show us your dwg sample Just: Keep it simple sir . or KISS 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.