home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "modDblLine"
- '******************************************************************'
- '* *'
- '* TurboCAD for Windows *'
- '* Copyright (c) 1993 - 2001 *'
- '* International Microcomputer Software, Inc. *'
- '* (IMSI) *'
- '* All rights reserved. *'
- '* *'
- '******************************************************************'
-
- ' adds new graphic - DoubleLine to the active drawing
- Public Sub AddDblLine()
-
- Dim App As Application
- Dim ActDr As Drawing
- Dim Grs As Graphics
- Dim Gr As Graphic
- Set App = IMSIGX.Application
- Set ActDr = App.ActiveDrawing
- Set Grs = ActDr.Graphics
- ' DoubleLine is created as the RegenMethod with name - "TCW25DblLine"
- Set Gr = Grs.Add(, "TCW25DblLine")
- ' add base points to the graphic as Vertices
- With Gr.Vertices
- .Add 1, 1, 0
- .Add 5, 1, 0
- .Add 5, 5, 0
- .Add 1, 5, 0
- End With
- ActDr.Views(0).Refresh
-
- End Sub
-