home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "modDblLine2"
- '******************************************************************'
- '* *'
- '* TurboCAD for Windows *'
- '* Copyright (c) 1993 - 2001 *'
- '* International Microcomputer Software, Inc. *'
- '* (IMSI) *'
- '* All rights reserved. *'
- '* *'
- '******************************************************************'
-
- Sub CreateDblLine1()
- Dim ActDr As Drawing
- Dim Grs As Graphics
- Dim Gr As Graphic
-
- Set ActDr = ActiveDrawing
- Set Grs = ActDr.Graphics
- Dim x() As Double
- Dim y() As Double
- Dim z() As Double
- Dim NumPoints As Long, i As Long
- NumPoints = 3
- ReDim x(NumPoints - 1)
- ReDim y(NumPoints - 1)
- ReDim z(NumPoints - 1)
- x(0) = 2: y(0) = 3: z(0) = 0
- x(1) = 5: y(1) = 6: z(1) = 0
- x(2) = 7: y(2) = 3: z(2) = 0
- Dim Props As Properties
-
- Set Gr = Grs.Add(, "TCW25DblLine")
- Set Props = Gr.Properties
- Props("PenColor") = RGB(255, 0, 0)
- Props("PenWidth") = 0.02
-
- Props("$DLINEWID") = 0.33
- Props("$DLINECS") = 1
- Props("$DLINECE") = 1
-
- With Gr.Vertices
- For i = 0 To NumPoints - 1
- .Add x(i), y(i), z(i)
- Next i
- End With
- Gr.Draw
-
-
- Set Props = Nothing
- Set Gr = Nothing
- Set Grs = Nothing
- Set ActDr = Nothing
-
-
- End Sub
-