Author Topic: 2004 issues  (Read 9626 times)

0 Members and 1 Guest are viewing this topic.

daron

  • Guest
2004 issues
« Reply #15 on: December 15, 2003, 10:14:51 AM »
Thanks for the hope, but no go. I wonder if anybody else has had this happen? I went to the adesk discussion groups and they're unaccessible right now. I might look in at Augi. They have Adesk's ear.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
2004 issues
« Reply #16 on: December 15, 2003, 10:45:15 AM »
I made this simple ToggleDwg VBA Macro to aleviate this problem. It doesn't activate the Ctrl+Tab but it does provide a toggle mechanism that works everytime. Simply make a button and apply it to it.
Code: [Select]

Option Explicit
Sub ToggleDwg()
 Dim X As Integer
 Dim Doc As AcadDocument
 Dim Docs As AcadDocuments
 Set Docs = AcadApplication.Documents
 For X = 0 To Docs.Count - 1
  If Docs.Item(X).Name = ThisDrawing.Name Then
   If X = Docs.Count - 1 Then
    Docs.Item(0).Activate
   Else
    Docs.Item(X + 1).Activate
   End If
   X = Docs.Count - 1
  End If
 Next X
End Sub
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Mark

  • Custom Title
  • Seagull
  • Posts: 28753
2004 issues
« Reply #17 on: December 15, 2003, 10:56:19 AM »
I just tried a few things but could not get any of the results you all getting. I opened three dwg's started a LINE command in each and was still able to CTRL-TAB between them. I also selected objects in each, still no problem.
TheSwamp.org  (serving the CAD community since 2003)

daron

  • Guest
2004 issues
« Reply #18 on: December 15, 2003, 11:13:41 AM »
This is odd. I just did zoom extents and tried ctrl+tab, repeatedly. It took 3 times the first time to work, then I tried it again and it took 11 times to work. Keith, I tried your macro and, maybe I'm missing something, but I put it into a button on a userform and it needs a way to make it go away. I tried creating an activate event that would hide the toggledwg when the event fired, but I couldn't get it to work.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
2004 issues
« Reply #19 on: December 15, 2003, 11:24:35 AM »
I had the problem BEFORE issuing any command or selecting anything. After running a command (from a button) or changing the drawing from the Window menu it worked as it was supposed to.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
2004 issues
« Reply #20 on: December 15, 2003, 11:28:49 AM »
If you pasted it in the ThisDrawing window
Code: [Select]

-vbarun ThisDrawing.ToggleDwg

If you pasted it into a new module...
Code: [Select]

-vbarun ModuleName.ToggleDwg


If you place it in a new DVB file all alone
Code: [Select]

-vbarun FileName.dvb!ModuleName.ToggleDwg
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

daron

  • Guest
2004 issues
« Reply #21 on: December 15, 2003, 12:09:00 PM »
Ahhh. You mentioned a button, so I created a form. Doh! I understand now. You meant a toolbar button.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
2004 issues
« Reply #22 on: December 15, 2003, 12:49:08 PM »
Yeah... sometimes we get all turned around now don't we...
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie