shamsam1 Posted February 22, 2009 Posted February 22, 2009 I have opened two new AutoCAD file and I have not saved it. I have kept it minimized. From vb6 I want to maximize the drawing. But I cannot do that because it is not saved. Can any one tell me how to find maximize the required document which is not saved Quote
GE13579 Posted February 23, 2009 Posted February 23, 2009 They should be listed as "Drawing1" and "Drawing2" I think? I'm not sure I'm correctly understanding the question though... Quote
shamsam1 Posted February 25, 2009 Author Posted February 25, 2009 You are correct. I am using the following code for activating screen of already saved drawing In the below code text4.text contains path of the drawing. Dim M As Integer On Error Resume Next Set acadapp = GetObject(Text4.Text) M = 0 If Err Then Set acadapp = CreateObject("AutoCAD.Application") Err.Clear M = 1 End If If M = 0 Then Dim str As String, str1 As String str1 = "mycommand" & vbLf str = "dwin" & vbLf acadapp.SendCommand str1 acadapp.SendCommand str acadapp.Visible = True ElseIf M = 1 Then Dim acadDoc As Object Set acadDoc = acadapp.ActiveDocument str1 = "mycommand" & vbLf str = "dwin" & vbLf acadDoc.SendCommand str1 acadDoc.SendCommand str acadDoc.Visible = True End If But how to pass the drawing name which has not been saved and kept minimized. Quote
GE13579 Posted February 25, 2009 Posted February 25, 2009 You might be better off requesting for a mod to move this thread to one of the relevant programming sections, I'm afraid I can't help you there. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.