Drawing Text - Set Anchor mode to Global
Drawing Text - Set Anchor mode to Global
(OP)
Hi,
Could somebody let me know how can we set the Anchor mode of a drawing text to Global.
[img D:\Text - Anchor Mode.jpg]
Not getting any API reference for this but seen a macro (catvbs) which does the same.(attached for reference)
Regards,
Maddy
Could somebody let me know how can we set the Anchor mode of a drawing text to Global.
[img D:\Text - Anchor Mode.jpg]
Not getting any API reference for this but seen a macro (catvbs) which does the same.(attached for reference)
Regards,
Maddy





RE: Drawing Text - Set Anchor mode to Global
CODE --> catvba
Sub CATMain() Set drawingDocument1 = CATIA.ActiveDocument Set Sheets = drawingDocument1.Sheets Set ActiveSheet = Sheets.ActiveSheet Set Views = ActiveSheet.Views For i = 3 To Views.Count If i <> 2 Then Set View = Views.Item(i) Set Texts = View.Texts For j = 1 To Texts.Count Set Text = Texts.Item(j) Text.AnchorPosition = 28 Next End If Next End SubRegards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Drawing Text - Set Anchor mode to Global
Thanks ferdo, Infact i almost forgot it to try out.
Regards,
Maddy