Does anyone know how to use the ActivateFram Method in Catia V5R9. The help file says:
o Sub ActivateFrame( CatTextFrameType iType)
Activates the text frame of the drawing text.
Parameters:
iType
The text frame type
Example:
This example add a rectangle frame to MyText drawing text.
CatTextFrameType itype = catRectangle
MyText.ActivateFrame itype
Example:
This example remove the frame to MyText drawing text.
CatTextFrameType itype = catNone
MyText.ActivateFrame itype
But I cannot get the sytax correct or something because the frame never activates
Hello,
here is a sample how to use text frame:
Set tText = ThisDrawingTexts.Add(sStamp, 545, 125)
tText.Name = "Stamp"
dAngle = 50#
tText.Angle = dAngle
tText.SetFontSize 0, 0, 5#
tText.SetFontName 0, 0, "Arial"
tText.ActivateFrame catOblong