Discussion Groups

All Discussion Groups » AutoCAD 2008

Thread: Edit scale list


Permlink Replies: 10 - Last Post: Mar 19, 2007 10:08 AM Last Post By: spinalqueen
spinalqueen

Posts: 38
Registered: 11/17/03
Edit scale list
Posted: Mar 9, 2007 9:55 AM
  Click to reply to this thread Reply
it sees that i have to change scale list in every drawing.
is there a way roud this?
Colin French

Posts: 301
Registered: 02/18/04
Re: Edit scale list
Posted: Mar 9, 2007 12:50 PM   in response to: spinalqueen in response to: spinalqueen
  Click to reply to this thread Reply
I haven't tried it, but you may be able to build it into the drawing templates you use.

There is a command-line version of the ScaleListEdit command, so in theory you could write a small script or AutoLisp routine to quickly add your standard scales.

...just some suggestions!
Daniel J. Altam...
Re: Edit scale list
Posted: Mar 9, 2007 12:52 PM   in response to: spinalqueen in response to: spinalqueen
  Click to reply to this thread Reply
Unfortunately no, because the scale list now drives annotation scaling, on a
per drawing basis. You could read the scale list, and if your scales don't
exist, add them programmatically.
Here is one way to retrieve the scale list for 2008 and earlier versions.
You can add new scales with the -SCALELISTEDIT command.

(defun GETSCALELIST (/ ScaleListDict ScaleListEnts ScaleListNumber
ScaleListUnits N DIGIT ACAD-KEY)
(if (>= (atof (substr (getvar "acadver") 1 4)) 17.1)
(progn ; 2008 and higher
(setq ScaleListDict (dictsearch (namedobjdict) "ACAD_SCALELIST")
ScaleListEnts (MASSOC 350 ScaleListDict)
ScaleList (list "")
N 0
)
(repeat (length ScaleListEnts)
(setq ScaleList (cons (cdr (assoc 300 (entget (nth N
ScaleListEnts)))) ScaleList)
N (+ N 1)
)
)
(setq ScaleList (cdr (reverse ScaleList)))
)
(progn ; 2007& lower
(setq ACAD-KEY (strcat "HKEY_CURRENT_USER\\" (vlax-product-key)
"\\Scale List"))
(if (vl-registry-descendents ACAD-KEY T)
(progn
(setq ScaleListNumber (/ (vl-list-length (vl-registry-descendents
ACAD-KEY T)) 3)
ScaleList (list "")
N 0
)
(repeat ScaleListNumber
(if (>= N 10)
(setq DIGIT (itoa N))
(setq DIGIT (strcat " " (itoa N)))
)
(setq ScaleList (cons (vl-registry-read ACAD-KEY (strcat DIGIT
".ScaleName")) ScaleList)
N (+ N 1)
)
)
(setq ScaleList (cdr (reverse ScaleList)))
)
)
)
)
)

(defun MASSOC (KEY ALIST / X NLIST)
(foreach X ALIST
(if (eq KEY (car X))
(setq NLIST (cons (cdr X) NLIST))
)
)
(reverse NLIST)
)

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
http://partnerproducts.autodesk.com/popups/company.asp?rdid=2139
-----------------------------------------------------------------------


wrote in message news:5513146@discussion.autodesk.com...
it sees that i have to change scale list in every drawing.
is there a way roud this?
spinalqueen

Posts: 38
Registered: 11/17/03
Re: Edit scale list
Posted: Mar 9, 2007 2:29 PM   in response to: Daniel J. Altam... in response to: Daniel J. Altam...
  Click to reply to this thread Reply
ok
there is no way to have the same scale list for all drawing like in ACAD 2007?
you will have to edit scale list in every drawing?

SQ
Daniel J. Altam...
Re: Edit scale list
Posted: Mar 9, 2007 2:34 PM   in response to: spinalqueen in response to: spinalqueen
  Click to reply to this thread Reply
That is correct. You can, as Colin mentioned, add the missing scales to
your template(s). This won't take care of existing drawings though, only
new ones, and the scales can still be deleted by anyone editing the drawing.

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
http://partnerproducts.autodesk.com/popups/company.asp?rdid=2139
-----------------------------------------------------------------------


wrote in message news:5513377@discussion.autodesk.com...
ok
there is no way to have the same scale list for all drawing like in ACAD
2007?
you will have to edit scale list in every drawing?

SQ
Colin French

Posts: 301
Registered: 02/18/04
Re: Edit scale list
Posted: Mar 9, 2007 6:33 PM   in response to: Daniel J. Altam... in response to: Daniel J. Altam...
  Click to reply to this thread Reply
Daniel wrote:
the scales can still be deleted by anyone editing the drawing.


Heh-heh, sounds like I'll be writing another little function for our CAD Standards drawing verification module. Thanks for including the sample code, that will point me in the right direction.
Matt Kolberg
Re: Edit scale list
Posted: Mar 9, 2007 2:48 PM   in response to: spinalqueen in response to: spinalqueen
  Click to reply to this thread Reply
2007 had a scale list on a per drawing basis as well.

Matt
Martin McCann

Posts: 28
Registered: 09/05/05
Re: Edit scale list
Posted: Mar 18, 2007 1:34 PM   in response to: Matt Kolberg in response to: Matt Kolberg
  Click to reply to this thread Reply
Wouldn't the solution to this "issue" be to include the symbol indicating "by drawing" by the scale list - as every other Options Dialog variable?
spinalqueen

Posts: 38
Registered: 11/17/03
Re: Edit scale list
Posted: Mar 19, 2007 8:44 AM   in response to: Martin McCann in response to: Martin McCann
  Click to reply to this thread Reply
what do you mean?

sq
Martin McCann

Posts: 28
Registered: 09/05/05
Re: Edit scale list
Posted: Mar 19, 2007 9:00 AM   in response to: spinalqueen in response to: spinalqueen
  Click to reply to this thread Reply
Every other variable that is on a "by drawing" basis has the AutoCAD drawing symbol by the side eg everything on the right side of "Display", while everything that is by system / registry does not have the symbol eg everything on the left side of display
If "Edit scale list" had the drawing icon we could tell it is "by drawing"
spinalqueen

Posts: 38
Registered: 11/17/03
Re: Edit scale list
Posted: Mar 19, 2007 10:08 AM   in response to: Martin McCann in response to: Martin McCann
  Click to reply to this thread Reply
ok
thanks


sq