Scalefactor=Scalefactor & "$7
Set Bdim = ThisDrawing.DimStyles.Add(Scalefactor)
--
Jeff
check out
www.cadvault.com
"Eddy" <ekrygiel@treanorarchitects.com> wrote in message
news:41bb5793$1_1@newsprd01...
First, thanks for the help. I think I got part of it covered. I can
create child dimstyles with different variables than the parent.
My one other issue though is my dimstyle is a moving target. My routine
name the dimstyle based on the current dimscale. So, if my dimscale is
1, my dimstyle is 1. When I go to name the child of the dimstyle, I have
to call it specifically. eg:
Set Bdim = ThisDrawing.DimStyles.Add("1$7")
Where Bdim is my new dimstyle. Previously, I have been creating them
like this:
Scalefactor = ActiveDocument.GetVariable("dimscale")
Set Bdim = ThisDrawing.DimStyles.Add(Scalefactor)
How can I set the child to be a factor of the dimscale? When I try to
enter scalefactor$7 or scalefactor"$7" or something to that effect, it
either errors out or I get a dimstyle named "scalefactor$7".
thoughts?
thanks for everything so far.
eddy
"rwilkins" <nospam@address.withheld> wrote in message
news:306534.1102707666423.JavaMail.jive@jiveforum1 .autodesk.com...
To create a child dimension, take the parent dimension name and add a
dollar sign ($) followed by a number:
$0 = Linear Dimensions
$2 = Angular Dimensions
$4 = Radial Dimensions
$3 = Diameter Dimensions
$6 = Ordinate Dimensions
$7 = Leaders
So if the only dimension style you have in the drawing is Standard:
Dim DS as AcadDimStyle
Set DS = Thisdrawing.DimStyles.add("Standard$7")
DS.CopyFrom ThisDrawing.Database
The CopyFrom method takes dimoverrides from the drawing and saves them
to the child dimstyle.