View Full Version : Using commands with reactors
2004-06-24, 10:56 PM
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
2004-06-24, 11:54 PM
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?
2004-06-25, 01:39 AM
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
2004-06-25, 02:30 PM
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 :)
2004-06-25, 04:20 PM
Yes. A rewrite is in order.
2004-06-28, 01:07 AM
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
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.