Author Topic: Standards dialog settings  (Read 2528 times)

0 Members and 1 Guest are viewing this topic.

pmwhite

  • Guest
Standards dialog settings
« on: March 01, 2010, 02:24:52 PM »
Hello
does anyone know how it would be possible to access the Standards command dialog box settings using lisp. i have created a lisp routine to attach or detach dws files within the current drawing, but i would like to set the newly attached file as the "prefered standards file to use for replacements" & turn on "automatically fix non-standard properties".
Thank you in advance.
Regards Pat

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Standards dialog settings
« Reply #1 on: March 01, 2010, 09:51:49 PM »
Perhaps through Environment Variables.

http://hyperpics.blogs.com/beyond_the_ui/autolispvisual_lisp/

I am not familiar with the settings your are trying to change.


PS Welcome to The Swamp.
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.

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Standards dialog settings
« Reply #2 on: March 02, 2010, 11:20:34 AM »
I know the Standards are found in the AcStStandards Dictionary, but I have no idea where those settings are stored... or how to modify them  :|

Code: [Select]
(dictsearch (namedobjdict) "AcStStandard")

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Standards dialog settings
« Reply #3 on: March 02, 2010, 11:21:49 AM »
I know the Standards are found in the AcStStandards Dictionary, but I have no idea where those settings are stored... or how to modify them  :|

Code: [Select]
(dictsearch (namedobjdict) "AcStStandard")
Scavenger hunt!
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Standards dialog settings
« Reply #4 on: March 02, 2010, 11:23:29 AM »
I know the Standards are found in the AcStStandards Dictionary, but I have no idea where those settings are stored... or how to modify them  :|

Code: [Select]
(dictsearch (namedobjdict) "AcStStandard")
Scavenger hunt!

Just tried that, this is as far as I got til I got stuck  :-(

Code: [Select]
(defun c:test ( )

  (dictsearch
    (cdr
      (assoc -1
        (dictsearch
          (namedobjdict) "AcStStandard"))) "0"))

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Standards dialog settings
« Reply #5 on: March 02, 2010, 11:25:20 AM »
I know the Standards are found in the AcStStandards Dictionary, but I have no idea where those settings are stored... or how to modify them  :|

Code: [Select]
(dictsearch (namedobjdict) "AcStStandard")
Scavenger hunt!

Just tried that, this is as far as I got til I got stuck  :-(

Code: [Select]
(defun c:test ( )

  (dictsearch
    (cdr
      (assoc -1
        (dictsearch
          (namedobjdict) "AcStStandard"))) "0"))

Barnacles.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

pmwhite

  • Guest
Re: Standards dialog settings
« Reply #6 on: March 02, 2010, 02:14:36 PM »
........I am not familiar with the settings your are trying to change......


Thanks for your reply. When you run the standards command, i dialog box appears. There are 2 tabs within this dialog box, "Standards" & "Plug-ins". Within the Standards tab, there is a settings button at the bottom. These settings allow you to control how the dws file is implemented. I am trying to access these settings from lisp if that is possible. I have used the dict search to find the AcStStandard dictionary & this allows me to see what standard files are attached. but the options within the settings dialog do not appear to be listed with the AcStStandard dictionary, so i was hoping someone knows where these settings may be accessed using lisp.
Thanks again
Regards Pat

pmwhite

  • Guest
Re: Standards dialog settings
« Reply #7 on: March 02, 2010, 02:36:09 PM »
I know the Standards are found in the AcStStandards Dictionary, but I have no idea where those settings are stored... or how to modify them  :|

Code: [Select]
(dictsearch (namedobjdict) "AcStStandard")
Scavenger hunt!

Just tried that, this is as far as I got til I got stuck  :-(

Code: [Select]
(defun c:test ( )

  (dictsearch
    (cdr
      (assoc -1
        (dictsearch
          (namedobjdict) "AcStStandard"))) "0"))

Barnacles.
Hi, it appears that these settings (if available to lisp) are stored elsewhere in the database. i can navigate the database using the inspect feature within vlisp but it seems like trying to find needle in a hay stack. I will keep looking, but if anyone finds it first, please let me know. Thanks

pmwhite

  • Guest
Re: Standards dialog settings
« Reply #8 on: March 08, 2010, 05:39:46 PM »
Hello Guys
for those who may be interested. I finally found the location of the settings for the standards dialog box. these settings are in the windows registry. Thanks to all who contributed.
Regards Pat
 :-)

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Standards dialog settings
« Reply #9 on: March 09, 2010, 03:29:36 AM »
Many thanks Pat - fills the gaps in my knowledge  :wink: