|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: 2003-10
Posts: 27
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I tried to use an Express Tool Command < laydel > in a lisp and it is not recognized as a command. I can use laydel at the command line succesfully.
My line of code is something like this. (Command "laydel" "t" "Layer-Name" "" "y"); Is there a special syntax for using and Express Tool Command? Respectfully, Darrell |
|
|
|
|
|
#2 |
|
100 Club
Join Date: 2000-12
Posts: 126
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
LAYDEL is written in AutoLISP and can be called with its defun name (C:LAYDEL).
However, it builds parameters on the fly and can not accept arguments. |
|
|
|
|
|
#3 |
|
Administrator
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
As Stig points out, that Express Tool is a LISP routine. You can call a command-line function from another LISP routine, as Stig shows, but you cannot use a LISP routine to pass the command line arguments.
One tacky alternative is to write the instructions for the Express Tool to a script file, and execute the script. It is far better to write your own version of the tool. |
|
|
|
|
|
#4 |
|
All AUGI, all the time
Join Date: 2003-10
Posts: 525
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
...or you could hack the laydel lisp routine and write your own from the guts of it..... but learning the methods and then writing your own would be a better path to take instead of hacking them. That way you could make it do whatever you wanted it to do.
__________________
COOLMO If = 0 then End If |
|
|
|
|
|
#5 |
|
Member
Join Date: 2003-10
Posts: 5
![]() |
hack?
Is there a way to view these files (arx,fas)? Or is there someplace that would document these routines. Some of the express tools are valuable and it would be nice to use the coding to figure out other ways to use them. My nemesis right now is the dreaded QLEADER. I am having a hard time to get it to respond the way i want it to. It has bugs and would be nice to write a different version of it. |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Elevation Lisp? | gapple | AutoLISP | 0 | 2004-06-10 12:25 PM |
| Need Help w/ a lisp..... | smiller | AutoLISP | 2 | 2004-06-07 04:17 PM |
| Split FACE tool for topography roads etc | Martin P | Revit Architecture "Original" Wish List (Archived) | 1 | 2004-04-01 03:51 PM |
| Pad Tool | gregcashen | Revit Architecture - General | 10 | 2004-02-12 02:09 AM |
| Floor tool | overcaffeined | Revit Architecture "Original" Wish List (Archived) | 5 | 2003-05-17 02:56 PM |