Finding the Scale

Finding the Scale

Anonymous
Not applicable
416 Views
4 Replies
Message 1 of 5

Finding the Scale

Anonymous
Not applicable
How do I find the current drawings scale through VBA? Is it a system variable or what?
0 Likes
417 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Well, that depends on how you define the current drawing scale. Many of us
determine a "primary" scale factor for modelspace, and use DimScale to hold
that value. Although, now that DimScale overrides are more common, I hold
the primary scale factor in a dictionary XRecord, and set the override every
time the user goes to the Model tab. Then there is the
case of a detail viewport from paperspace that is *not* equal to the primary
scale factor used in modelspace directly, in which case the override for
DimScale is something different from the "primary" scale factor. Of course,
in paperspace the scale is usually 1:1, unless you decide that paperspace
scale factor=primary scale factor for linetype scaling and other various
reasons (which we did for several years).

Does that help? BwaHaHa!!!!!!!


--
R. Robert Bell, MCSE
www.AcadX.com


"bball1525" wrote in message
news:f158380.-1@WebX.maYIadrTaRb...
| How do I find the current drawings scale through VBA? Is it a system
variable or what?
0 Likes
Message 3 of 5

Anonymous
Not applicable
You just popped the lid off a can of worms...
0 Likes
Message 4 of 5

Anonymous
Not applicable
As robert says, the definition of drawing scale can be somewhat blurred
depending on how your drawing is set up.
In the case where you are using paper/model space with pviewports having
different scales this can be a real problem. Basically, you have to
decide which is the 'main' scale and use it when in modelspace.
I too keep the scale values in a dictionary (even the pspace value just
in case it isn't 1:1) and have modified the goto paperspace and goto
modelspace toolbar buttons to set the ltscale when the activespace
changes. Also, there is a routine that runs in paperspace for placing
barscales for the different pviewports. The user selects the pvport and
insertion point and the routine sets the block attributes to fit the
pvport custom scale.
Tom

"Ronnie Wilkins, Jr." wrote:

> You just popped the lid off a can of worms...
0 Likes
Message 5 of 5

Anonymous
Not applicable
Seems I scared the original poster away, too!

;-)


--
R. Robert Bell, MCSE
www.AcadX.com


"Ronnie Wilkins, Jr." wrote in message
news:f158380.1@WebX.maYIadrTaRb...
| You just popped the lid off a can of worms...
|
|
0 Likes