When I place a symbol entity in a drawing, I need to match up the symbol's scale to the drawing's scale.
It took me awhile to figure out that the current view's scale is not what I'm looking for, but some kind of underlying scale.
The question is, where do I get the underlying scale used by the drawing?
If I understand correctly, I'm looking for a value to pass to ent_enlarge. Jon C. Hubart uses a "globalscale" variable on this topic: http://forum.datacad.com/viewtopic.php?p=32267. How can i retrieve that globalscale?
This is how I know if get the right numbers. If I get a drawing whose underlying scale is 1:250 and another whose underlying scale is 1:2500 and set each of the view scales to the respective view scale, the drawings "look" the same in DC. Now if I add the same symbol (with whatever scale it uses internally) using DCAL to each of these drawings, the symbol ALSO needs to look the same on both. Currently, when I add the symbol to both drawings, it looks bigger on the one than on the other because the symbol's scale doesn't match.
I've tried the scalei/scale pair (with scalei = 0) on the view. I've tried savevar.scalexfacx/y/z. I've tried using various scales and factors from different structures. I'm not sure what the exact difference between all of them is, but I haven't yet found one that works.
Is there an overview somewhere on the difference between all these different scales, or on how DC uses scale internally? All of this might seem obvious to architects, but lacking an architectural background, I'm finding it a bit difficult to figure out what goes where.
It took me awhile to figure out that the current view's scale is not what I'm looking for, but some kind of underlying scale.
The question is, where do I get the underlying scale used by the drawing?
If I understand correctly, I'm looking for a value to pass to ent_enlarge. Jon C. Hubart uses a "globalscale" variable on this topic: http://forum.datacad.com/viewtopic.php?p=32267. How can i retrieve that globalscale?
This is how I know if get the right numbers. If I get a drawing whose underlying scale is 1:250 and another whose underlying scale is 1:2500 and set each of the view scales to the respective view scale, the drawings "look" the same in DC. Now if I add the same symbol (with whatever scale it uses internally) using DCAL to each of these drawings, the symbol ALSO needs to look the same on both. Currently, when I add the symbol to both drawings, it looks bigger on the one than on the other because the symbol's scale doesn't match.
I've tried the scalei/scale pair (with scalei = 0) on the view. I've tried savevar.scalexfacx/y/z. I've tried using various scales and factors from different structures. I'm not sure what the exact difference between all of them is, but I haven't yet found one that works.
Is there an overview somewhere on the difference between all these different scales, or on how DC uses scale internally? All of this might seem obvious to architects, but lacking an architectural background, I'm finding it a bit difficult to figure out what goes where.