width factor of text object

width factor of text object

Anonymous
Not applicable
354 Views
2 Replies
Message 1 of 3

width factor of text object

Anonymous
Not applicable
hi,
today, i found a problem: i don't know how to set width factor of
textsyle,so i used "sendcommand "-style" & vbcr ..." method to set the text
style's width factor as 0.8. when i used "addtext string,pt,height" method
to add a text object, but i used "ddmodify" method found that the width
factor was not "0.8" but "1.0" as its default value. what's wrong with it?
who can tell me how to do?
thanks in advance.

i use VB6 & A2K.
Michael
0 Likes
355 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Michael,
I am not clear from your message whether you want to change the width of
your textstyle or only a single string of text.

If you are trying to change a single string of text then you need to change
the "ScaleFactor" property of the object after you use the AddText method
txtObj.ScaleFactor = "whatever"

and then update it using the update method
txtObj.Update

If you are trying to change a textstyle then this is out of the help:

If changes are made to the active TextStyle, the new TextStyle object must
be reset as the active TextStyle, and the Regen method must be called for
the changes to appear. To reset the active TextStyle, simply call the
ActiveTextStyle property again with the updated TextStyle object.

Hope this helps.
Jackie Bliss, CADD Systems Manager
Hurt & Proffitt, Inc. Lynchburg, VA, USA

Michael Chen wrote in message
news:7tvfbr$gge11@adesknews2.autodesk.com...
> hi,
> today, i found a problem: i don't know how to set width factor of
> textsyle,so i used "sendcommand "-style" & vbcr ..." method to set the
text
> style's width factor as 0.8. when i used "addtext string,pt,height" method
> to add a text object, but i used "ddmodify" method found that the width
> factor was not "0.8" but "1.0" as its default value. what's wrong with it?
> who can tell me how to do?
> thanks in advance.
>
> i use VB6 & A2K.
> Michael
>
>
>
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
thanks Jackie,
i want to change the radio between the text's width and height(e.g. is the
width factor is 0.8,so "width/height"=0.8). this can be done by manual, but
i don't know how to realize by vb language. who can tell me?

good lucky

Michael
0 Likes