TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software’s can be used with TurboCAD.

change Text Style / Documentation
Read 3930 times
* January 19, 2010, 01:09:38 AM
I want to change the Text Style with vb/vba

Property: StyleId 
With the macrorecorder:

   Start "Insert|Text"
On Error Resume Next
ActiveDrawing.Styles("Normal Text").Activate
if Err.Number <> 0 then
   MsgBox Err.Description,,"Playback error"
End If
On Error GoTo 0

And then want to change the “Text Styles”

(see pic)

that crashes TC16

EventType : BEX     P1 : Tcw16.exe     P2 :     P3 : 4ae81f89     
P4 : MacroPlt.dll     P5 :     P6 : 4ae81cba     P7 : 0001e5d9     
P8 : c0000409     P9 : 00000000   

Same crash when I want to change the StyleId with vb/vba

Question: how to change the styleId via SDK?

Question2: @ Kevan Chapman: in may 2009 you mention, that you will update the SDK-documentation. I know it will be a lot of work. Do you see already the end of the tunnel?

Best regards

[attachment deleted by admin]