TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
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.


Active Drawing
Read 3087 times
September 26, 2013, 08:08:08 AM
How can I make the active drawing to be active? Using TCV16pro and Visual Studio Express 2010.
This is my code...

 If TCApp.Drawings.Count = 0 Then
            TCDraw = TCApp.Drawings.Add("")

        Else
            TCApp.Drawings.Item(1).Activate()
        End If
Thank you,
Cliff

Logged


September 29, 2013, 05:36:05 PM
#1
For those that are interested this is the code that worked. Thanks for all the help.
 If TCApp.Drawings.Count = 0 Then
            TCDraw = TCApp.Drawings.Add("")
        Else
            TCDraw = TCApp.ActiveDrawing
        End If

Logged