How can I align in a drawing some text to the left?
I found some example code (as the one from below) but I can't align the text to the left (Justification left).
I tried something like this but it does not work:
Legende_texte.Justification = catLeft
What am I doing wrong?
I found some example code (as the one from below) but I can't align the text to the left (Justification left).
I tried something like this but it does not work:
Legende_texte.Justification = catLeft
What am I doing wrong?
Code:
Sub CATMain()
[indent]Set drawingDocument1 = CATIA.ActiveDocument
Set drawingSheets1 = drawingDocument1.Sheets
Set drawingSheet1 = drawingSheets1.Item("Sheet.1")
Set ActiveView = drawingSheet1.Views.Item(1)
Dim collection_textes As DrawingTexts
Set collection_textes = ActiveView.Texts
Dim Legende_texte As DrawingText
Set Legende_texte = collection_textes.Add("TEST", 1, 1)
Legende_texte.SetFontName 0, 0, "SSS1"
Legende_texte.SetFontSize 0, 0, 4.24
Legende_texte.SetParameterOnSubString catItalic, 0, 0, 1[/indent]
End Sub