TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Active Drawing
Read 1743 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