keeyean
Civil/Environmental
- Sep 11, 2001
- 14
hey.. i have a question regarding the code below..
i can draw the line in ACAD_ISO02W100...??
can someone correct for me??
Set acadApp = GetObject(, "autoCAD.application"
Set acadDoc = acadApp.activedocument
Set modelspace = acadDoc.modelspace
Dim PLine2Obj As Object
Dim Points2(0 To 14) As Double
EWNS = -315
Points2(0) = -513.8151: Points2(1) = 10 + EWNS: Points2(2) = 0
Points2(3) = -493.8151: Points2(4) = 10 + EWNS: Points2(5) = 0
Points2(6) = -493.8151: Points2(7) = 100 + EWNS: Points2(8) = 0
Points2(9) = -513.8151: Points2(10) = 100 + EWNS: Points2(11) = 0
Points2(12) = -513.8151: Points2(13) = 10 + EWNS: Points2(14) = 0
Set PLine2Obj = modelspace.AddPolyline(Points2)
modelspace.Linetypes.Load "ACAD_ISO02W100", "acad.lin"
PLine2Obj.Linetype = "ACAD_ISO02W100"
i can draw the line in ACAD_ISO02W100...??
can someone correct for me??
Set acadApp = GetObject(, "autoCAD.application"
Set acadDoc = acadApp.activedocument
Set modelspace = acadDoc.modelspace
Dim PLine2Obj As Object
Dim Points2(0 To 14) As Double
EWNS = -315
Points2(0) = -513.8151: Points2(1) = 10 + EWNS: Points2(2) = 0
Points2(3) = -493.8151: Points2(4) = 10 + EWNS: Points2(5) = 0
Points2(6) = -493.8151: Points2(7) = 100 + EWNS: Points2(8) = 0
Points2(9) = -513.8151: Points2(10) = 100 + EWNS: Points2(11) = 0
Points2(12) = -513.8151: Points2(13) = 10 + EWNS: Points2(14) = 0
Set PLine2Obj = modelspace.AddPolyline(Points2)
modelspace.Linetypes.Load "ACAD_ISO02W100", "acad.lin"
PLine2Obj.Linetype = "ACAD_ISO02W100"