home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 11
/
BUGCD1998_02.ISO
/
aplic
/
turbocad
/
tcw.z
/
layer.bas
< prev
next >
Wrap
BASIC Source File
|
1997-05-05
|
523b
|
31 lines
'Program to get the id and name of each layer in the drawing
Sub Main()
Dim dActive As Long
Dim hDrawing As Long
Dim count As Long
Dim i As Long
Dim LayerID As Long
Dim LayVar As String
Dim Result As Variant
hDrawing = TCWDrawingOpen("c:\imsi\tcw40\Samples\mouse.tcw")
count = TCWLayersCount()
i = 1
LayVar = "Name"
Do While (i <> count)
LayerID = TCWLayersAt(i)
Msgbox LayerID
Result = TCWLayerPropertyGet(LayerID, LayVar)
MsgBox Result
i = i + 1
Loop
MsgBox "Finished"
End Sub