Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi There,
i would like to create Arch from the last three points used to create closed polyline
so on Error i would like to use [Lastpoint/Ok/Resume/Delete/Arch]: ") Arch option and code will use last three points entered by use to create arch
see attached i would like to convert for example points 3 to 5 as Arch then continue tracing room
On Error Resume Next
For i = 0 To 2000 Step 3
Label1:
AktPt = MyDWG.Utility.GetPoint
ReDim Preserve points(i + 5) As Double
plineObj.Delete
points(i) = AktPt(0)
points(i + 1) = AktPt(1)
points(i + 2) = AktPt(2)
points(i + 3) = points(0)
points(i + 4) = points(1)
points(i + 5) = points(2)
Set plineObj = MyDWG.ModelSpace.AddPolyline(points)
'LastplineObj = MyDWG.ModelSpace.AddPolyline(points)
If Err Then
Err.Clear
returnString = MyDWG.Utility.GetKeyword(vbLf & "Enter a keyword [Lastpoint/Ok/Resume/Delete/Arch]: ")
Moderator edit: Put code in code window. Please use </> button to add.
Solved! Go to Solution.