Author Topic: Where is Matt W's Favorite OSMODE Program?  (Read 5034 times)

0 Members and 1 Guest are viewing this topic.

FengK

  • Guest
Where is Matt W's Favorite OSMODE Program?
« on: September 27, 2008, 05:28:56 PM »
Hello,

I remember Matt W posted a vba program a while ago for setting user's favorite osmode. Could not find it anywhere. I probably didn't use the right keyword to search. Anyone knows?

Thanks.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #1 on: September 28, 2008, 08:08:10 AM »
Might it have been this topic: http://www.theswamp.org/index.php?topic=503.0
Be your Best


Michael Farrell
http://primeservicesglobal.com/

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #2 on: September 29, 2008, 01:29:03 AM »
I have a startup macro that looks at login name and sets based on that.  I can post tomorrow from work
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

FengK

  • Guest
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #3 on: September 29, 2008, 02:54:37 AM »
Might it have been this topic: http://www.theswamp.org/index.php?topic=503.0

Thanks Michael. It was written by Matt W and was in VBA. I downloaded it and used it, but have lost the file. Matt must know what I'm talking about, if he sees this thread.

FengK

  • Guest
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #4 on: September 29, 2008, 02:54:53 AM »
I have a startup macro that looks at login name and sets based on that.  I can post tomorrow from work

Thanks!

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #5 on: September 29, 2008, 08:23:08 AM »
Hello,

I remember Matt W posted a vba program a while ago for setting user's favorite osmode. Could not find it anywhere. I probably didn't use the right keyword to search. Anyone knows?

Thanks.
This?
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #6 on: September 29, 2008, 10:32:46 AM »
or this?
Code: [Select]
Public Sub AcadStartup()
      Dim Preferences As AcadPreferences, intOsmode As Integer
      Set Preferences = ThisDrawing.Application.Preferences
      Dim strUser As String
      strUser = UCase(Environ("USERNAME"))
      Select Case strUser
      Case "UA02038"
            intOsmode = 71
            ThisDrawing.SetVariable "ORTHOMODE", 1
      Case "UA00648"
            intOsmode = 167
            ThisDrawing.SetVariable "ORTHOMODE", 1
      Case "UA03347"
            intOsmode = 19
      Case Else
            intOsmode = 7
      End Select
      If intOsmode = 0 Then
            ThisDrawing.SetVariable "osmode", 3
      Else
            ThisDrawing.SetVariable "osmode", intOsmode
      End If

      Application.Preferences.User.ADCInsertUnitsDefaultSource = acInsertUnitsInches
      Application.Preferences.User.ADCInsertUnitsDefaultTarget = acInsertUnitsInches
      ThisDrawing.SetVariable "OSNAPZ", 1
End Sub
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

FengK

  • Guest
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #7 on: September 29, 2008, 01:04:05 PM »

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

bybyby

  • Guest
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #9 on: October 31, 2008, 11:32:26 PM »
how to use it?? when I load the FloatingOSnaps.dvb,it tell me there is an error.it said the merroy overlay!!!

Bob Wahr

  • Guest
Re: Where is Matt W's Favorite OSMODE Program?
« Reply #10 on: October 31, 2008, 11:47:14 PM »
not sure what merroy overlay is (memory overflow?) but what version of AutoCAD are you trying it with?