Opening with Delphi

Opening with Delphi

Anonymous
Not applicable
217 Views
1 Reply
Message 1 of 2

Opening with Delphi

Anonymous
Not applicable
I am trying to use Delphi to open drawings in A2Ki but I'm getting an error
saying that the method is not available in MDI mode. It opens AutoCAD but
it can't open the drawing. I have placed the following code under a button.
It opens the drawing if I set ACAD to SDI but I don't want to do that.

AcadDocument1.Open('C:\temp\testing.dwg');

BTW I am very new to Delphi/Pascal so feel free to 'dumb it down' for me.

Thx
0 Likes
218 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Use the Application Object to open the drawing
Application.Documents.Open
Metegrity wrote in message
news:111C59AAFA2C58D0335A479E33D47BFA@in.WebX.maYIadrTaRb...
> I am trying to use Delphi to open drawings in A2Ki but I'm getting an
error
> saying that the method is not available in MDI mode. It opens AutoCAD but
> it can't open the drawing. I have placed the following code under a
button.
> It opens the drawing if I set ACAD to SDI but I don't want to do that.
>
> AcadDocument1.Open('C:\temp\testing.dwg');
>
> BTW I am very new to Delphi/Pascal so feel free to 'dumb it down' for me.
>
> Thx
>
0 Likes