TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

change Text Style / Documentation
Read 3034 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 : 16.2.54.0     P3 : 4ae81f89     
P4 : MacroPlt.dll     P5 : 16.2.54.0     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
Bernd



[attachment deleted by admin]

Logged