lineair dimension

lineair dimension

Anonymous
Not applicable
460 Views
9 Replies
Message 1 of 10

lineair dimension

Anonymous
Not applicable
Hi,

I need some help again.

I want to place some lineair diminsions.

I've try'd Aligned dimension like this:
dim dimObj as AcadDimAligned
...

It works, but how to place lineair dim?
Is there something like AcaddimLinear????

thx for help,
Sa
0 Likes
461 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
Sabrina,

Attached is an example I think should help you.

Joe
--
0 Likes
Message 3 of 10

Anonymous
Not applicable
Hi Joe,

Since you answered her question "is it possible to
create a Linear child style dimension"(my paraphrase) with a sub that creates
aligned dimensions, I'm taking it as you're saying there is no linear option for
vba?

 

your sub creates a dimension in the parent style
eg: Standard

the Dimlinear command in the linear child
style   eg: Standard:linear

as seen in the properties window.

I see no AddDimLinear in the help
files.

 

So, just to confirm, in lisp or acad command I can
create a linear dimension

In vb(a) I cannot create a linear
dimension

Is that correct?

 

Thanks

Mark


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Sabrina,

Attached is an example I think should help you.

Joe
--

0 Likes
Message 4 of 10

Anonymous
Not applicable
I'm looking at something perhaps related. Trying to change the "running"
arrowhead style through vb or lisp. See my post below:
Setting Property (for a clueless lisper)

Mark Propst wrote:

> Hi Joe,
> Since you answered her question "is it possible to create a Linear
> child style dimension"(my paraphrase) with a sub that creates aligned
> dimensions, I'm taking it as you're saying there is no linear option
> for vba?
>
> your sub creates a dimension in the parent style eg: Standard
> the Dimlinear command in the linear child style eg: Standard:linear
> as seen in the properties window.
> I see no AddDimLinear in the help files.
>
> So, just to confirm, in lisp or acad command I can create a linear
> dimension
> In vb(a) I cannot create a linear dimension
> Is that correct?
>
> Thanks
> Mark
>
> "joesu" >
> wrote in message news:f1727f3.0@WebX.maYIadrTaRb...
> Sabrina,
>
> Attached is an example I think should help you.
>
> Joe
> --
>
0 Likes
Message 5 of 10

Anonymous
Not applicable
ThisDrawing.SetVariable "dimblk", "_archtick"

"Paul Furman" wrote in message
news:ADB7F6BA73077D5243985A5B39D90D7D@in.WebX.maYIadrTaRb...
> I'm looking at something perhaps related. Trying to change the "running"
> arrowhead style through vb or lisp. See my post below:
> Setting Property (for a clueless lisper)
0 Likes
Message 6 of 10

Anonymous
Not applicable
Thanks for the reply Mark!

The block type arrowheads work that way but apparently the built-in
arrow styles are set with an ObjectID Property (whatever that is?) which
ovverrides dimblk. See below for the help file explanation, which sounds
like gibberish to my ears.

Mark Propst wrote:

>ThisDrawing.SetVariable "dimblk", "_archtick"
>
>"Paul Furman" wrote in message
>news:ADB7F6BA73077D5243985A5B39D90D7D@in.WebX.maYIadrTaRb...
>
>
>>I'm looking at something perhaps related. Trying to change the "running"
>>arrowhead style through vb or lisp. See my post below:
>>Setting Property (for a clueless lisper)
>>
>>
>
>
>
>
>

------------------------------------------

Arrowhead1Type Property

------------------------------------------

Specifies the type of arrowhead for the first end of the dimension line.



Signature



object.Arrowhead1Type



object Dim3PointAngular, DimAligned, DimAngular, DimDiametric, DimRotated

The object or objects this property applies to.



Arrowhead1Type acDimArrowheadType enum; read-write



acArrowDefault
acArrowDot
acArrowDotSmall
acArrowDotBlank
...etc...
acArrowUserDefined Read-only

System variables



This property overrides the value of the DIMBLK1 system variable for the
given dimension.



Remarks



The initial value for this property is acArrowDefault

When you use the Arrowhead1Block property to specify a block to use as a
custom arrowhead, this property will be set to acArrowUserDefined.
0 Likes
Message 7 of 10

Anonymous
Not applicable
are you on 2004?
I don't know about that, but the setvar still works if what you're doing is
creating a dimension style, as opposed to overriding the style for a
particular dimension, I thought that's what you were trying to do.

"Paul Furman" wrote in message
news:3D98C52F6502ABB77073001B4218C372@in.WebX.maYIadrTaRb...
> Thanks for the reply Mark!
>
> The block type arrowheads work that way but apparently the built-in
> arrow styles are set with an ObjectID Property (whatever that is?) which
> ovverrides dimblk. See below for the help file explanation, which sounds
> like gibberish to my ears.
>
> Mark Propst wrote:
>
> >ThisDrawing.SetVariable "dimblk", "_archtick"
> >
> >"Paul Furman" wrote in message
> >news:ADB7F6BA73077D5243985A5B39D90D7D@in.WebX.maYIadrTaRb...
> >
> >
> >>I'm looking at something perhaps related. Trying to change the "running"
> >>arrowhead style through vb or lisp. See my post below:
> >>Setting Property (for a clueless lisper)
> >>
> >>
> >
> >
> >
> >
> >
>
> ------------------------------------------
>
> Arrowhead1Type Property
>
> ------------------------------------------
>
> Specifies the type of arrowhead for the first end of the dimension line.
>
>
>
> Signature
>
>
>
> object.Arrowhead1Type
>
>
>
> object Dim3PointAngular, DimAligned, DimAngular, DimDiametric,
DimRotated
>
> The object or objects this property applies to.
>
>
>
> Arrowhead1Type acDimArrowheadType enum; read-write
>
>
>
> acArrowDefault
> acArrowDot
> acArrowDotSmall
> acArrowDotBlank
> ...etc...
> acArrowUserDefined Read-only
>
> System variables
>
>
>
> This property overrides the value of the DIMBLK1 system variable for the
> given dimension.
>
>
>
> Remarks
>
>
>
> The initial value for this property is acArrowDefault
>
> When you use the Arrowhead1Block property to specify a block to use as a
> custom arrowhead, this property will be set to acArrowUserDefined.
>
>
0 Likes
Message 8 of 10

Anonymous
Not applicable
OK thanks, excellent, I was making it too hard on myself and must have
misread something.

All I need is: DIMBLK1 _OPEN90



Mark Propst wrote:

>are you on 2004?
>I don't know about that, but the setvar still works if what you're doing is
>creating a dimension style, as opposed to overriding the style for a
>particular dimension, I thought that's what you were trying to do.
>
>"Paul Furman" wrote in message
>news:3D98C52F6502ABB77073001B4218C372@in.WebX.maYIadrTaRb...
>
>
>>Thanks for the reply Mark!
>>
>>The block type arrowheads work that way but apparently the built-in
>>arrow styles are set with an ObjectID Property (whatever that is?) which
>>ovverrides dimblk. See below for the help file explanation, which sounds
>>like gibberish to my ears.
>>
>>Mark Propst wrote:
>>
>>
>>
>>>ThisDrawing.SetVariable "dimblk", "_archtick"
>>>
>>>"Paul Furman" wrote in message
>>>news:ADB7F6BA73077D5243985A5B39D90D7D@in.WebX.maYIadrTaRb...
>>>
>>>
>>>
>>>
>>>>I'm looking at something perhaps related. Trying to change the "running"
>>>>arrowhead style through vb or lisp. See my post below:
>>>>Setting Property (for a clueless lisper)
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>------------------------------------------
>>
>>Arrowhead1Type Property
>>
>>------------------------------------------
>>
>>Specifies the type of arrowhead for the first end of the dimension line.
>>
>>
>>
>>Signature
>>
>>
>>
>>object.Arrowhead1Type
>>
>>
>>
>>object Dim3PointAngular, DimAligned, DimAngular, DimDiametric,
>>
>>
>DimRotated
>
>
>>The object or objects this property applies to.
>>
>>
>>
>>Arrowhead1Type acDimArrowheadType enum; read-write
>>
>>
>>
>>acArrowDefault
>>acArrowDot
>>acArrowDotSmall
>>acArrowDotBlank
>>...etc...
>>acArrowUserDefined Read-only
>>
>>System variables
>>
>>
>>
>>This property overrides the value of the DIMBLK1 system variable for the
>>given dimension.
>>
>>
>>
>>Remarks
>>
>>
>>
>>The initial value for this property is acArrowDefault
>>
>>When you use the Arrowhead1Block property to specify a block to use as a
>>custom arrowhead, this property will be set to acArrowUserDefined.
>>
>>
>>
>>
>
>
>
>

--
Paul Furman
http://www.edgehill.net
san francisco native plants
(415) 722-6037
0 Likes
Message 9 of 10

Anonymous
Not applicable
actually I think all you need is Dimblk (if you want both arrows to be the
same)
(if they are different, then dimblk1 and 2 do that)
(i think)

"Paul Furman" wrote in message
news:DE6433AC2F66130CA97A45C505EF6D03@in.WebX.maYIadrTaRb...
> OK thanks, excellent, I was making it too hard on myself and must have
> misread something.
>
> All I need is: DIMBLK1 _OPEN90
>
>
>
0 Likes
Message 10 of 10

Anonymous
Not applicable
That's correct, thanks.

Mark Propst wrote:

>actually I think all you need is Dimblk (if you want both arrows to be the
>same)
>(if they are different, then dimblk1 and 2 do that)
>(i think)
>
>"Paul Furman" wrote in message
>news:DE6433AC2F66130CA97A45C505EF6D03@in.WebX.maYIadrTaRb...
>
>
>>OK thanks, excellent, I was making it too hard on myself and must have
>>misread something.
>>
>> All I need is: DIMBLK1 _OPEN90
>>
>>
>>
>>
>>
>
>
>
>
>
0 Likes