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-25, 12:56 AM   #1
patrick.fitzgerald
Member
 
Join Date: 2004-06
Posts: 3
patrick.fitzgerald is starting their journey
Default Using commands with reactors

Would anybody know a way for a reactor to use a function that has an Autocad command in it eg (command "line" "0,0" "1,1"). I have tried vl-cmdf and this won't work either. I'm using Vers 2004. Any help would be appreciated
patrick.fitzgerald is offline   Reply With Quote
Old 2004-06-25, 01:54 AM   #2
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

Obviously that is a simplification, as I would use ActiveX to add the line and avoid the command pipeline. What command are you really trying to run?
RobertB is offline   Reply With Quote
Old 2004-06-25, 03:39 AM   #3
patrick.fitzgerald
Member
 
Join Date: 2004-06
Posts: 3
patrick.fitzgerald is starting their journey
Default RE: Using commands with reactors

Actually, quite a few. Commands to draw 3dsolids, extrude, revolve as well as command to change the ucs. This function has already been written and I was hoping not to have to re-code using activeX
patrick.fitzgerald is offline   Reply With Quote
Old 2004-06-25, 04:30 PM   #4
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

From the help files on reactor callback functions: "You cannot call AutoCAD commands using the command function. Also, to access drawing objects, you must use ActiveX functions; entget and entmod are not allowed inside callback functions."

Talking from experience, I would take it literally
stig.madsen is offline   Reply With Quote
Old 2004-06-25, 06:20 PM   #5
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

Yes. A rewrite is in order.
RobertB is offline   Reply With Quote
Old 2004-06-28, 03:07 AM   #6
patrick.fitzgerald
Member
 
Join Date: 2004-06
Posts: 3
patrick.fitzgerald is starting their journey
Default RE: Using commands with reactors

I had also come to the re-write conclusion and had started it over the weekend.
The only thing now is to figure out how to determine the XYZ extrusion vectors given three 3Dpoints.

FYI Entget appears to work.. no immediate errors
have not tried entmod

Thanks for the help
patrick.fitzgerald 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
LSP Commands pbleakley AutoLISP 10 2004-06-04 08:37 AM


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