home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Planet Source Code Jumbo …e CD Visual Basic 1 to 7
/
5_2007-2008.ISO
/
data
/
Zips
/
DXFWriter_20312811162006.psc
/
DXFWriter
/
cArc.cls
< prev
next >
Wrap
Text File
|
2006-11-16
|
2KB
|
69 lines
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "cArc"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
'----------------------------------------------------------
' ⌐ 2006, Athanasios Gardos
'e-mail: gardos@hol.gr
'You may freely use, modify and distribute this source code
'
'Last update: November 16, 2006
'Please visit:
' http://business.hol.gr/gardos/
' or
' http://avax.invisionzone.com/
'for development tools and more source code
'-----------------------------------------------------------
Option Explicit
Public x As Double
Public y As Double
Public z As Double
Public R As Double
Public StartAngle As Double
Public EndAngle As Double
Public LayerName As String
Public LineTypeName As String
Public ColorIndex As Integer
Friend Property Get DxfArc() As String
Dim oStr As cAddString
Set oStr = New cAddString
oStr.BeginAdd
oStr.Add2Strings " 0", vbCrLf
oStr.Add2Strings "ARC", vbCrLf
oStr.Add2Strings " 8", vbCrLf
If LayerName = "" Then LayerName = "0"
oStr.Add2Strings LayerName, vbCrLf
oStr.Add2Strings " 62", vbCrLf
oStr.Add2Strings Format$(ColorIndex), vbCrLf
oStr.Add2Strings " 6", vbCrLf
If LineTypeName = "" Then LineTypeName = "CONTINUOUS"
oStr.Add2Strings LineTypeName, vbCrLf
oStr.AddString DxfNb(10, x)
oStr.AddString DxfNb(20, y)
oStr.AddString DxfNb(30, z)
oStr.AddString DxfNb(40, R)
oStr.AddString DxfNb(50, StartAngle)
oStr.AddString DxfNb(51, EndAngle)
DxfArc = oStr.CurString
Set oStr = Nothing
End Property
Private Sub Class_Initialize()
LayerName = "0"
LineTypeName = "CONTINUOUS"
ColorIndex = 255
End Sub