CATIA Script to Change Ratio
CATIA Script to Change Ratio
(OP)
Looking at thread560-344218: How to change the Dimension Text 's Font Size and Name through macro, it deals with the font size and name for text on a drawing.
I would like to change the font name and ratio for all items (text, dimensions, balloons, labels, GD&T, etc). I tried text.SetFontRatio, but it didn't appear to be a proper function. I also can't figure out how to select everything with fonts (ie. not just text items).
Can someone point me in the right direction?
Thanks,
Jeff
I would like to change the font name and ratio for all items (text, dimensions, balloons, labels, GD&T, etc). I tried text.SetFontRatio, but it didn't appear to be a proper function. I also can't figure out how to select everything with fonts (ie. not just text items).
Can someone point me in the right direction?
Thanks,
Jeff





RE: CATIA Script to Change Ratio
This is a workaround for a part of your problem, posted by me on COE. I believe you can modify according to your needs.
CODE --> CATScript
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: CATIA Script to Change Ratio
If there a CATScript function to do so?
Jeff
RE: CATIA Script to Change Ratio
For k = 1 to selection1.count
Set SelText = Selection1.Item(k).Value
SelText.SetParameterOnsubString catCharSpacing,0,0,25
SelText.SetParameterOnsubString catCharRatio,0,0,75
Next
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: CATIA Script to Change Ratio
Thanks again,
Jeff