Message 1 of 2

Not applicable
03-02-2018
03:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i have code for crearting line using getPoint() method but i dont know how do i create polyline like a line. any suggestions?
this is code for creating line:
Public Shared Sub PlotLine() Dim ed As Editor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor Dim StartPoint As Point3d Dim EndPoint As Point3d Dim getStartPointOptions As PromptPointOptions = New PromptPointOptions("Pick start point of a new line: ") Dim getStartPointResult As PromptPointResult = ed.GetPoint(getStartPointOptions) If (getStartPointResult.Status = PromptStatus.OK) Then Dim getEndPointOptions As PromptPointOptions = New PromptPointOptions("Pick end point of a new line: ") getEndPointOptions.UseBasePoint = false getEndPointOptions.BasePoint = getStartPointResult.Value Dim getEndPointResult As PromptPointResult = ed.GetPoint(getEndPointOptions) If (getEndPointResult.Status = PromptStatus.OK) Then StartPoint = New Point3d(getStartPointResult.Value.X, getStartPointResult.Value.Y, getStartPointResult.Value.Z) EndPoint = New Point3d(getEndPointResult.Value.X, getEndPointResult.Value.Y, getEndPointResult.Value.Z) Dim LineEnt As New Line (StartPoint,EndPoint)
Solved! Go to Solution.