2007-10-17 21:09 UTC
I am almost there using the DCL code. What I am curious about is the communication between the DCL LISP code and the AutoCAD session. I have a coordinate pair that I want to zoom to when the user presses the "ZoomTo" button. However, when I press the button I get:
"error: invalid AutoCAD command: nil"
In my DCL code I have this in the "OnClicked" event for a command button:
(setq zoompt (list xval yval))
(command "zoom" "c" zoompt "")
I have tried sending this value to the Zoom command at the "Command" line, sending !zoompt as the coordinate pair, so I know that the value is correct. Can I not send instructions to the AutoCAD while in "dialog box" mode? Do I need to do some sort of special "SendCommand" request like when you try and execute a LISP command in a Visual Basic environment?
Very confusing :(
"error: invalid AutoCAD command: nil"
In my DCL code I have this in the "OnClicked" event for a command button:
(setq zoompt (list xval yval))
(command "zoom" "c" zoompt "")
I have tried sending this value to the Zoom command at the "Command" line, sending !zoompt as the coordinate pair, so I know that the value is correct. Can I not send instructions to the AutoCAD while in "dialog box" mode? Do I need to do some sort of special "SendCommand" request like when you try and execute a LISP command in a Visual Basic environment?
Very confusing :(