Jump to content

Recommended Posts

Posted

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

Posted

They should be listed as "Drawing1" and "Drawing2" I think? I'm not sure I'm correctly understanding the question though... :?

Posted

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.

Posted

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. :(

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...