Read/Write Dimstyle Properties with VB(A)

Read/Write Dimstyle Properties with VB(A)

Anonymous
Not applicable
392 Views
2 Replies
Message 1 of 3

Read/Write Dimstyle Properties with VB(A)

Anonymous
Not applicable
Can anyone answer the following question.
(I have searched everywhere, but did not find an answer)

Is it posible to read/write dimstyle properties, like "DIMTXT", "DIMASO" etc. with VB(A) or ObjectARX?
The dimstyle object just shows the general properties.

I don't want to use the "SETVAR's" !!
0 Likes
393 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi eenkinformatisering,

What is wring with code like?


Dim v As Variant
v = ThisDrawing.GetVariable("DIMTXT")
ThisDrawing.SetVariable "DIMTXT", v * 3



Regards


Laurie Comerford

[email protected] wrote:
> Can anyone answer the following question. (I have searched everywhere,
> but did not find an answer) Is it posible to read/write dimstyle
> properties, like "DIMTXT", "DIMASO" etc. with VB(A) or ObjectARX? The
> dimstyle object just shows the general properties. I don't want to use
> the "SETVAR's" !!
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi Laurie,

Thanks for your answer. You're right about the setvar/getvar things. But what I want to accomplish is to go through all the DIMSTYLES in the drawing and adapt them to the Drawing Standard. Off course I can set every DIMSTYLE current one by one and then go through the setvar's/getvar's, but I'd rather itterate through the DimStyleTableRecords.

Thanks again
0 Likes