Jump to content

Recommended Posts

Posted

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.

Posted

No one? Could somebody at least confirm whether it s working on their system or not, please?

Posted
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)

Posted

FWIW .. your second example worked in both 2017/18 for me. You could also try using command-s in place of command.

Posted

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. :geek:

 

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.

Posted
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. :geek:

 

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.

Posted

Just , please . show us your dwg sample

Just: Keep it simple sir . or KISS

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...