Author Topic: Toggle MEP Object Snaps  (Read 5980 times)

0 Members and 1 Guest are viewing this topic.

CMounts

  • Guest
Toggle MEP Object Snaps
« on: March 27, 2009, 10:18:29 AM »
I am attempting to create a quick toggle for MEP snaps using lisp. I need to be able to save the current setting before I turn it off. I am stumped as to how to get the current setting. Aecbosmode is the key-in for setting them. I have been looked through all the MEP/ABS libraries and not found any mention of a way to access this setting. 

Any help would be appreciated.


Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Toggle MEP Object Snaps
« Reply #1 on: March 27, 2009, 10:41:28 AM »
Good luck with that one!!  I've given up on it.  I have a toolbar that turns them all on or all off.  Kinda sucks, but it's not like a regular system variable.  Sorry...
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: Toggle MEP Object Snaps
« Reply #2 on: March 27, 2009, 10:44:55 AM »
Me too.
Ive checked in all the regular places and even some not so regular... no luck. BUT, if you find it let me know cause that lil gem would be nice.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Toggle MEP Object Snaps
« Reply #3 on: March 27, 2009, 01:34:34 PM »
My little search indicated that the settings are bit coded just like OSmode.
So what does (getvar "Aecbosmode") return?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: Toggle MEP Object Snaps
« Reply #4 on: March 27, 2009, 01:35:37 PM »
nothing.

I have all the bit codes if you can find how to set it.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Spike Wilbury

  • Guest
Re: Toggle MEP Object Snaps
« Reply #5 on: March 27, 2009, 01:43:00 PM »
not a help at all, but this past last week, I used MEP 2009 - to run some tests about an add-in app I am working on - and was so difficult to always the need to turn off those snaps - that are turn on automatically.... did not spent much on figure out more about them..... (well was my first try out on MEP anyway)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Toggle MEP Object Snaps
« Reply #6 on: March 27, 2009, 01:47:47 PM »
Have you tried:
(setenv "aecbosmode" "1023")
(getenv "aecbosmode" )
« Last Edit: March 27, 2009, 01:50:55 PM by CAB »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: Toggle MEP Object Snaps
« Reply #7 on: March 27, 2009, 01:49:41 PM »
Well LE, if it helps you later; the only way i can figure out how to turn them off is to use command like:
(command "AECBOSMODE" "0")

But you can not get the previous settings to store in a variable.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: Toggle MEP Object Snaps
« Reply #8 on: March 27, 2009, 01:50:00 PM »
Have you tried:
(setenv "aecbosmode" "1023")
yes

It doesnt work.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: Toggle MEP Object Snaps
« Reply #9 on: March 27, 2009, 01:51:46 PM »
CAB, i cant find settings in the registry, or some obscure variable either.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Spike Wilbury

  • Guest
Re: Toggle MEP Object Snaps
« Reply #10 on: March 27, 2009, 01:54:40 PM »
Well LE, if it helps you later; the only way i can figure out how to turn them off is to use command like:
(command "AECBOSMODE" "0")

But you can not get the previous settings to store in a variable.


forgot to mention.... I have a little toggle lisp that I use every day - N - that worked - but for some reason I noticed that it is turned on automatically - as I  said did not spent to much using MEP just one week - :)

CMounts

  • Guest
Re: Toggle MEP Object Snaps
« Reply #11 on: March 27, 2009, 01:55:58 PM »
I have looked into this more and discovered that the setting is stored by drawing. This should mean there is a way to get it from the drawing object. I haven't found a way yet but still working on it.

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: Toggle MEP Object Snaps
« Reply #12 on: March 27, 2009, 02:01:59 PM »
by drawing?!
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: Toggle MEP Object Snaps
« Reply #13 on: March 27, 2009, 02:03:11 PM »


forgot to mention.... I have a little toggle lisp that I use every day - N - that worked - but for some reason I noticed that it is turned on automatically - as I  said did not spent to much using MEP just one week - :)

it did? Then something you did in there worked somehow?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Toggle MEP Object Snaps
« Reply #14 on: March 27, 2009, 02:06:59 PM »
Looks like COMMAND is the only access.

What I did find:

0 "none"
1 Schematic Curve
2 Schematic Connector
4 Duct Curve
8 Duct Connector
16 Pipe curve
32 Pipe Connector
64 Electrical Curve
128 Electrical Connector
256 Wireway Curve
512 Wireway Connector

TIP:You can also enter the following ABS snaps on the command line, which can be helpful if you miss a connector during object selection: SCON (Schematic Connector), DCON (Duct Connector), PCON (Pipe Connector), ECON (Electrical Connector), WCON (Wire Way Connector), SCUR (Schematic Curve), DCUR (Duct Curve), PCUR (Pipe Curve), ECUR (Electrical Curve), and WCUR (Wire Way Curve).
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.