Hallo Catia-Gemeinde!
Beim nachträglichen Ausrichten von Text im Blatthintergrund bekomme ich eine Fehlermeldung (siehe Anhang).
Das Ändern der Textgröße unmittelbar vorher klappt.
In der Dokumentation steht folgendes:
Property Justification( ) As CatJustification
Returns or sets the drawing text font justification property.
True if the drawing text font is justified.
Example:
This example sets the Justification type of the MyText drawing text to the right
MyText.Justification = catRight
Hier mein Code:
Dim iFontSize As Real
iFontSize = 2.5
DrwTexts.GetItem("TitleBlock_Text_Kunde-Kürzel").SetFontSize 0, 0, iFontSize
'Vorlage MyText.Justification = catRight
DrwTexts.GetItem("TitleBlock_Text_Kunde-Kürzel").Justification = catRight 'catCenter
Scheinbar ist das Ausrichten von Texten kein Thema, sodass ich in den bisherigen Beiträgen nichts fand.
Habt Ihr eine Idee, wo ich Fehler im Code habe?
MfG Stephan
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP