×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

3DARRAY

3DARRAY

3DARRAY

(OP)
Hi
I have been using AutoCAD 2000 for designing. I have written lisp files to generate  3D objects.  I have the following problem:

I need to use 3DARRAY command. This is a lisp file. (3DARRAY.lsp). At AutoCAD console, this command works fine.
But in lisp file when I use this command (command "3DARRAY" .....), I get an error message "3DARRAY command unknown". I tried loading this lisp file explicitly by writing (load "3DARRAY") but without any success.

This file is in search path (c:\AutoCAD 2000\Support).

Could any one help me?

Thanking you
Vijayendra

RE: 3DARRAY

Try to do it like this:

 (C:3darray .........)

RE: 3DARRAY

Just a slight point if you are unfamiliar. Make sure your LISP routine is written like (defun C:3DARRAY...). Estassoc is correct. This tells AutoCAD that the LISP is defining a new command.

BU

RE: 3DARRAY

3Darray is an autocad command.

To use it in lisp you need to add an underscore at the front of it like this command "_3DARRAY"

RE: 3DARRAY

(OP)
Hi
Thanks to Estassoc, Borgunit, Blueprint for the tips. I tried all of them without any success:

In lisp console:
(command "C:3DARRAY", ....options)
(command "_3DARRAY", ....options)
(command "3DARRAY", ....options)

Instead if I type in lisp console : (C:3DARRAY)
It recognizes the command but asks for options at AutoCAD console. I tried to pass on the options this way:
(C:3DARRAY (ssget get_the_object) .......). I get an error
message: "too many parameters"

My intention is to give all the options in my lisp file. So that I don't have to do anything at AucoCAD console.

Thanks once again for the tips
Vijayendra




RE: 3DARRAY

Hi,
I am sorry, I did not realize 3darray was an ACAD command (shows you how much I use it). You may try using a vlisp call to get your call i.e.

(vl-load-com)
(vl-cmdf "3darray" (ssget.....))

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources