<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create a Line with multiple Insertion Points as in Autocad in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364569#M56977</link>
    <description>&lt;P&gt;Thanks for your reply, exactly this is what I searched for......&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2012 08:35:36 GMT</pubDate>
    <dc:creator>chockalingam</dc:creator>
    <dc:date>2012-03-09T08:35:36Z</dc:date>
    <item>
      <title>How to create a Line with multiple Insertion Points as in Autocad</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364559#M56975</link>
      <description>&lt;P&gt;I am trying to create a tool that looks similar to &lt;FONT color="#993300"&gt;Line in Autocad&lt;/FONT&gt;. I got the solution for dynamic multiple insertion points but the issue is the&lt;FONT color="#993300"&gt; line is only visible after the end point is selected&lt;/FONT&gt;. But i want the &lt;FONT color="#993300"&gt;line to be visible before selecting the end point&lt;/FONT&gt;, this should be as same as the line we use in autocad. Following is the code i used to create a line with multiple insertion points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument&lt;BR /&gt;Dim acCurEd As Editor = acDoc.Editor&lt;BR /&gt;Using lock As DocumentLock = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.LockDocument&lt;BR /&gt;Dim ppo As PromptPointOptions = New PromptPointOptions(vbCrLf &amp;amp; "Select Insertion Point:")&lt;BR /&gt;Dim ppr As PromptPointResult = acCurEd.GetPoint(ppo)&lt;BR /&gt;Dim _startpoint, _endpoint As Point3d&lt;BR /&gt;If ppr.Status = PromptStatus.OK Then&lt;BR /&gt;_startpoint = ppr.Value&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Dim i As Integer = 0&lt;/P&gt;&lt;P&gt;While i = 0&lt;/P&gt;&lt;P&gt;Dim acCurDb As Database = acDoc.Database&lt;/P&gt;&lt;P&gt;Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()&lt;BR /&gt;Dim _newentLine As New Line&lt;BR /&gt;ppo = New PromptPointOptions(vbCrLf &amp;amp; "Select Next Point")&lt;BR /&gt;ppr = acCurEd.GetPoint(ppo)&lt;BR /&gt;If ppr.Status = PromptStatus.OK Then&lt;BR /&gt;_endpoint = ppr.Value&lt;BR /&gt;Else&lt;BR /&gt;i = 1&lt;BR /&gt;Continue While&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;_newentLine.StartPoint = _startpoint&lt;BR /&gt;_newentLine.EndPoint = _endpoint&lt;BR /&gt;&lt;BR /&gt;Dim acBlkTbl As BlockTable = acTrans.GetObject(acCurDb.BlockTableId, OpenMode.ForWrite)&lt;BR /&gt;Dim acBlkTblRec As BlockTableRecord = acTrans.GetObject(acBlkTbl(BlockTableRecord.ModelSpace), OpenMode.ForWrite)&lt;BR /&gt;acBlkTblRec.AppendEntity(_newentLine)&lt;BR /&gt;acTrans.AddNewlyCreatedDBObject(_newentLine, True)&lt;BR /&gt;acTrans.Commit()&lt;BR /&gt;acBlkTblRec.Dispose()&lt;/P&gt;&lt;P&gt;acBlkTbl.Dispose()&lt;/P&gt;&lt;P&gt;_startpoint = _endpoint&lt;BR /&gt;_newentLine.Dispose()&lt;/P&gt;&lt;P&gt;End Using&lt;BR /&gt;acCurDb.Dispose()&lt;BR /&gt;End While&lt;BR /&gt;End Using&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:23:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364559#M56975</guid>
      <dc:creator>chockalingam</dc:creator>
      <dc:date>2012-03-09T08:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Line with multiple Insertion Points as in Autocad</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364565#M56976</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check this, I think that is what you are searching for:&lt;/P&gt;&lt;PRE&gt;Dim ppo As PromptPointOptions = New PromptPointOptions(vbCrLf &amp;amp; "Select Next Point")
ppo.BasePoint = _startpoint     'previous point
ppo.UseBasePoint = True         'so it drags the line-segment while you move the cursor
ppo.UseDashedLine = True        'optional
ppr = acCurEd.GetPoint(ppo)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:50:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364565#M56976</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-09T08:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Line with multiple Insertion Points as in Autocad</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364569#M56977</link>
      <description>&lt;P&gt;Thanks for your reply, exactly this is what I searched for......&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364569#M56977</guid>
      <dc:creator>chockalingam</dc:creator>
      <dc:date>2012-03-09T08:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Line with multiple Insertion Points as in Autocad</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364619#M56978</link>
      <description>&lt;P&gt;Is it possible to show the scale,angle and enable right click in the above code &amp;nbsp;as same as Autocad Line.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 09:39:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364619#M56978</guid>
      <dc:creator>chockalingam</dc:creator>
      <dc:date>2012-03-09T09:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Line with multiple Insertion Points as in Autocad</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364641#M56979</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; to show the scale,angle&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Not really sure waht a scale-angle is. If you need some text displayed on your screen while dragging anything you will have to go through JIG-functionality (look &lt;A href="http://through-the-interface.typepad.com/through_the_interface/jigs/" target="_self"&gt;&amp;gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;, but do also your own search for "JIG")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; enable right click&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You can capture your mouse-buttons, you can define/add keywords to your prompt to get options (e.g. look at &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;AppendKeywordsToMessage&lt;/FONT&gt;)&amp;nbsp; or you have to define similar things in your CUIX, depends on what you want to do with the right-click.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 10:00:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364641#M56979</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-09T10:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Line with multiple Insertion Points as in Autocad</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364681#M56980</link>
      <description>&lt;P&gt;How to define&amp;nbsp;&lt;SPAN&gt;things in CUIX...... Can i have any reference..................&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 10:28:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364681#M56980</guid>
      <dc:creator>chockalingam</dc:creator>
      <dc:date>2012-03-09T10:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Line with multiple Insertion Points as in Autocad</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364683#M56981</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; How to define&amp;nbsp;things in CUIX&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;that's a lot, starting &lt;A href="http://docs.autodesk.com/ACD/2011/ENU/filesACG/WSfacf1429558a55de1a7524c1004e616f8b-3afa.htm" target="_self"&gt;&amp;gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;, taking some popcorn and read/learn/read/learn.... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 10:30:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-a-line-with-multiple-insertion-points-as-in/m-p/3364683#M56981</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-09T10:30:56Z</dc:date>
    </item>
  </channel>
</rss>

