PDA

View Full Version : Activate AutoCAD not saved drawing



saranya
03-08-2009, 10:05 PM
Can any one tell me how to pass value to command prompt of AutoCAD drawing from vb6. The drawing which I want to pass value is not saved

Tommy
03-09-2009, 05:38 AM
There needs to be more information provided:

Can any one tell me how to pass value to command prompt of AutoCAD drawing from vb6
Yes I can but I need to know what value, and in what context. Otherwise I am wasting time and guessing.


The drawing which I want to pass value is not saved
I am not sure this matters but since i have no idea what you are trying to do ............................

saranya
03-09-2009, 09:40 PM
I have to send command to AutoCAD command prompt. I have code for sending command to already saved drawing. It is working fine. But how to pass command to a not saved drawing(i.e the drawing is not saved even once). I have opened a new drawing and kept it in a minimized stage. Now on click of a button from vb6 I want to pass command to that drawing which is not saved even once and kept as minimized.

for example
doc.sendcommand="command"


I hope you understood what I need.

Tommy
03-10-2009, 06:03 AM
for example doc.SendCommand "line 1.0,1.0,0.0 10.0,10.0,0.0 "

saranya
03-11-2009, 05:35 AM
Can you give some code how to call not saved drawing from vb

Tommy
03-11-2009, 08:21 AM
saranya,

I do not understand what you are asking for. The drawing will accept commands no matter if it is saved or not. If you would post some of your code that you are trying then, I may be able to guide you in the correct direction or even figure out what to do, to get it to do what you want. But in order to do this I have to understand what you want or desire.