Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-06-10, 02:41 PM   #1
droak
Member
 
Join Date: 2003-10
Posts: 27
droak has a bright futuredroak has a bright futuredroak has a bright futuredroak has a bright futuredroak has a bright futuredroak has a bright futuredroak has a bright future
Default Can I use an Express Tool Command within a lisp?

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
droak is offline   Reply With Quote
Old 2004-06-10, 03:50 PM   #2
stig.madsen
100 Club
 
Join Date: 2000-12
Posts: 126
stig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightlystig.madsen is glowing brightly
Default

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.
stig.madsen is offline   Reply With Quote
Old 2004-06-10, 04:51 PM   #3
RobertB
Administrator
 
RobertB's Avatar
 
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
RobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the stars
Default RE: Can I use an Express Tool Command within a lisp?

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.
RobertB is offline   Reply With Quote
Old 2004-06-10, 05:09 PM   #4
Coolmo
All AUGI, all the time
 
Coolmo's Avatar
 
Join Date: 2003-10
Posts: 525
Coolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightlyCoolmo is glowing brightly
Default RE: Can I use an Express Tool Command within a lisp?

...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
Coolmo is offline   Reply With Quote
Old 2004-06-21, 09:16 PM   #5
psuchewinner
Member
 
Join Date: 2003-10
Posts: 5
psuchewinner is starting their journey
Question RE: Can I use an Express Tool Command within a lisp?

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.
psuchewinner is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 12:17 PM.