<?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 Need some guidance on building a LeaderJig in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/need-some-guidance-on-building-a-leaderjig/m-p/2218519#M75058</link>
    <description>I'm working on a building a custom leader command, and as a part of that, my first EntityJig.. In trying to figure out how they work, I ran across a "Thru the Interface Blog" the showed how to build a PlineJig. I converted that to VB, and got it working. So far, so good. Next, I replaced all the Pline references and methods with their Leader counterparts. The code kind of works, but it behaves like the sketch command, rather than like the polyline command, and it starts drawing before I even get prompted for the startpoint of the leader.&lt;BR /&gt;
&lt;BR /&gt;
I also found a similar blog about building an MLeader jig, but so far it hasn't helped me see where I went bad in my code.&lt;BR /&gt;
&lt;BR /&gt;
Also, I can't find any decent documentation on the Leader object. For instance, what is the difference between VertexAt and SetVertexAt. The ObjectARX just lists the methods and arguments, not why you'd use them. And I can't find anything generic on jigs either.&lt;BR /&gt;
&lt;BR /&gt;
I've attached the code for both my LeaderJig class and the Commands class that calls it. If someone can help me zero in on where my code is flawed, or point me in the right direction to get some detailed info on jigs and/or leaders so I can figure it out myself, I'd greatly appreciate it.&lt;BR /&gt;
&lt;BR /&gt;
Dave&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;
Imports Autodesk.AutoCAD.DatabaseServices&lt;BR /&gt;
Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;
Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;
Imports Autodesk.AutoCAD.Geometry&lt;BR /&gt;
Imports Autodesk&lt;BR /&gt;
&lt;BR /&gt;
Public Class LeaderJig : Inherits EntityJig&lt;BR /&gt;
&lt;BR /&gt;
   Dim m_pts As Point3dCollection&lt;BR /&gt;
   Dim m_tempPoint As Point3d&lt;BR /&gt;
   Dim m_plane As Plane&lt;BR /&gt;
&lt;BR /&gt;
   Public Sub New(ByVal ucs As Matrix3d)&lt;BR /&gt;
&lt;BR /&gt;
      'Create a point collection to store our vertices&lt;BR /&gt;
      MyBase.new(New Leader())&lt;BR /&gt;
&lt;BR /&gt;
      m_pts = New Point3dCollection()&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Create a temporary plane, to help with calcs&lt;BR /&gt;
&lt;BR /&gt;
      Dim origin = New Point3d(0, 0, 0)&lt;BR /&gt;
      Dim normal = New Vector3d(0, 0, 1)&lt;BR /&gt;
&lt;BR /&gt;
      normal = normal.TransformBy(ucs)&lt;BR /&gt;
      m_plane = New Plane(origin, normal)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Create leader, set defaults, add dummy vertex&lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
&lt;BR /&gt;
      Try&lt;BR /&gt;
         myLeader.SetDatabaseDefaults()&lt;BR /&gt;
      Catch ex As Autodesk.AutoCAD.Runtime.Exception&lt;BR /&gt;
         MsgBox(ex.Message.ToString)&lt;BR /&gt;
      End Try&lt;BR /&gt;
&lt;BR /&gt;
      myLeader.AppendVertex(New Point3d(0, 0, 0))&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
   Protected Overrides Function Sampler(ByVal prompts As JigPrompts) As SamplerStatus&lt;BR /&gt;
&lt;BR /&gt;
      Dim jigOpts As New JigPromptPointOptions()&lt;BR /&gt;
&lt;BR /&gt;
      jigOpts.UserInputControls = UserInputControls.Accept3dCoordinates + _&lt;BR /&gt;
                                  UserInputControls.NullResponseAccepted + _&lt;BR /&gt;
                                  UserInputControls.NoNegativeResponseAccepted&lt;BR /&gt;
&lt;BR /&gt;
      If m_pts.Count = 0 Then&lt;BR /&gt;
         'For the first vertex, just ask for the point&lt;BR /&gt;
         jigOpts.UseBasePoint = False&lt;BR /&gt;
         jigOpts.Message = "\nStart point of leader: "&lt;BR /&gt;
&lt;BR /&gt;
      ElseIf m_pts.Count &amp;gt; 0 Then&lt;BR /&gt;
         Dim myLeader As Leader = Entity&lt;BR /&gt;
&lt;BR /&gt;
         'For subsequent vertices, use a base point&lt;BR /&gt;
         jigOpts.BasePoint = m_pts(m_pts.Count - 1)&lt;BR /&gt;
         jigOpts.UseBasePoint = True&lt;BR /&gt;
         jigOpts.Message = "\nLeader vertex: "&lt;BR /&gt;
&lt;BR /&gt;
      Else 'should never happen&lt;BR /&gt;
         Return SamplerStatus.Cancel&lt;BR /&gt;
&lt;BR /&gt;
      End If&lt;BR /&gt;
&lt;BR /&gt;
      'Get the point itself&lt;BR /&gt;
      Dim res As PromptPointResult = prompts.AcquirePoint(jigOpts)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Check if it has changed or not&lt;BR /&gt;
      If (m_tempPoint = res.Value) Then&lt;BR /&gt;
         Return SamplerStatus.NoChange&lt;BR /&gt;
      ElseIf (res.Status = PromptStatus.OK) Then&lt;BR /&gt;
         m_tempPoint = res.Value&lt;BR /&gt;
         Return SamplerStatus.OK&lt;BR /&gt;
      Else&lt;BR /&gt;
         Return SamplerStatus.Cancel&lt;BR /&gt;
      End If&lt;BR /&gt;
&lt;BR /&gt;
   End Function&lt;BR /&gt;
&lt;BR /&gt;
   Protected Overrides Function Update() As Boolean&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Update the dummy vertex to be our 3D point projected onto our plane&lt;BR /&gt;
      myLeader.AppendVertex(m_tempPoint)&lt;BR /&gt;
&lt;BR /&gt;
      Return True&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
   End Function&lt;BR /&gt;
&lt;BR /&gt;
   Friend Shadows ReadOnly Property Entity() As Entity&lt;BR /&gt;
      Get&lt;BR /&gt;
         Return MyBase.Entity&lt;BR /&gt;
      End Get&lt;BR /&gt;
   End Property&lt;BR /&gt;
&lt;BR /&gt;
   Public Sub AddLatestVertex()&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Add the latest selected point to internal list...&lt;BR /&gt;
      'This point will already be in the most recently added leader vertex&lt;BR /&gt;
      m_pts.Add(m_tempPoint)&lt;BR /&gt;
&lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
      ' Create a new dummy vertex...&lt;BR /&gt;
      ' can have any initial value&lt;BR /&gt;
&lt;BR /&gt;
      myLeader.AppendVertex(m_tempPoint)&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
   Public Sub RemoveLastVertex()&lt;BR /&gt;
&lt;BR /&gt;
      'Remove dummy vertex&lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
      'myLeader.RemoveLastVertex()&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
   &lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
   Public Sub MyLeaderJig()&lt;BR /&gt;
&lt;BR /&gt;
      'Declarations&lt;BR /&gt;
      '============&lt;BR /&gt;
      Dim doc As Document = Application.DocumentManager.MdiActiveDocument&lt;BR /&gt;
      Dim ed As Editor = doc.Editor&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Begin Sub&lt;BR /&gt;
      '=========&lt;BR /&gt;
      'Get the current UCS and pass it to Jig&lt;BR /&gt;
      Dim ucs As Matrix3d = ed.CurrentUserCoordinateSystem&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Create Jig object&lt;BR /&gt;
      Dim jig As LeaderJig = New LeaderJig(ucs)&lt;BR /&gt;
&lt;BR /&gt;
      'Loop to set the vertices directly on the polyline&lt;BR /&gt;
      Dim bSuccess As Boolean = True&lt;BR /&gt;
      Dim bComplete As Boolean = False&lt;BR /&gt;
&lt;BR /&gt;
      Do While (bSuccess And Not bComplete)&lt;BR /&gt;
&lt;BR /&gt;
         Dim res As PromptResult = ed.Drag(jig)&lt;BR /&gt;
&lt;BR /&gt;
         'Get results of user input&lt;BR /&gt;
         If res.Status = PromptStatus.OK Then&lt;BR /&gt;
            'New point was added&lt;BR /&gt;
            bSuccess = True&lt;BR /&gt;
            jig.AddLatestVertex()&lt;BR /&gt;
         Else&lt;BR /&gt;
            bSuccess = False&lt;BR /&gt;
         End If&lt;BR /&gt;
&lt;BR /&gt;
         'Null input terminates the command&lt;BR /&gt;
         If res.Status = PromptStatus.None Then&lt;BR /&gt;
            'Clean up polyline before adding it&lt;BR /&gt;
            bComplete = True&lt;BR /&gt;
            jig.RemoveLastVertex()&lt;BR /&gt;
         Else&lt;BR /&gt;
            bComplete = False&lt;BR /&gt;
         End If&lt;BR /&gt;
&lt;BR /&gt;
      Loop&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'If the jig completed successfully, add the polyline&lt;BR /&gt;
      If bComplete Then&lt;BR /&gt;
&lt;BR /&gt;
         'Begin transaction&lt;BR /&gt;
         Dim db As Database = doc.Database&lt;BR /&gt;
         Dim tr As Transaction = db.TransactionManager.StartTransaction()&lt;BR /&gt;
&lt;BR /&gt;
         Using tr&lt;BR /&gt;
&lt;BR /&gt;
            Dim bt As BlockTable = tr.GetObject(db.BlockTableId, OpenMode.ForRead, False)&lt;BR /&gt;
            Dim btr As BlockTableRecord = tr.GetObject(bt(BlockTableRecord.ModelSpace), OpenMode.ForWrite, False)&lt;BR /&gt;
&lt;BR /&gt;
            'Append entity&lt;BR /&gt;
            btr.AppendEntity(jig.Entity)&lt;BR /&gt;
&lt;BR /&gt;
            tr.AddNewlyCreatedDBObject(jig.Entity, True)&lt;BR /&gt;
            tr.Commit()&lt;BR /&gt;
&lt;BR /&gt;
         End Using 'tr&lt;BR /&gt;
&lt;BR /&gt;
      End If 'bComplete&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;/COMMANDMETHOD&gt;</description>
    <pubDate>Mon, 31 Mar 2008 19:55:36 GMT</pubDate>
    <dc:creator>dwgraphics</dc:creator>
    <dc:date>2008-03-31T19:55:36Z</dc:date>
    <item>
      <title>Need some guidance on building a LeaderJig</title>
      <link>https://forums.autodesk.com/t5/net-forum/need-some-guidance-on-building-a-leaderjig/m-p/2218519#M75058</link>
      <description>I'm working on a building a custom leader command, and as a part of that, my first EntityJig.. In trying to figure out how they work, I ran across a "Thru the Interface Blog" the showed how to build a PlineJig. I converted that to VB, and got it working. So far, so good. Next, I replaced all the Pline references and methods with their Leader counterparts. The code kind of works, but it behaves like the sketch command, rather than like the polyline command, and it starts drawing before I even get prompted for the startpoint of the leader.&lt;BR /&gt;
&lt;BR /&gt;
I also found a similar blog about building an MLeader jig, but so far it hasn't helped me see where I went bad in my code.&lt;BR /&gt;
&lt;BR /&gt;
Also, I can't find any decent documentation on the Leader object. For instance, what is the difference between VertexAt and SetVertexAt. The ObjectARX just lists the methods and arguments, not why you'd use them. And I can't find anything generic on jigs either.&lt;BR /&gt;
&lt;BR /&gt;
I've attached the code for both my LeaderJig class and the Commands class that calls it. If someone can help me zero in on where my code is flawed, or point me in the right direction to get some detailed info on jigs and/or leaders so I can figure it out myself, I'd greatly appreciate it.&lt;BR /&gt;
&lt;BR /&gt;
Dave&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;
Imports Autodesk.AutoCAD.DatabaseServices&lt;BR /&gt;
Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;
Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;
Imports Autodesk.AutoCAD.Geometry&lt;BR /&gt;
Imports Autodesk&lt;BR /&gt;
&lt;BR /&gt;
Public Class LeaderJig : Inherits EntityJig&lt;BR /&gt;
&lt;BR /&gt;
   Dim m_pts As Point3dCollection&lt;BR /&gt;
   Dim m_tempPoint As Point3d&lt;BR /&gt;
   Dim m_plane As Plane&lt;BR /&gt;
&lt;BR /&gt;
   Public Sub New(ByVal ucs As Matrix3d)&lt;BR /&gt;
&lt;BR /&gt;
      'Create a point collection to store our vertices&lt;BR /&gt;
      MyBase.new(New Leader())&lt;BR /&gt;
&lt;BR /&gt;
      m_pts = New Point3dCollection()&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Create a temporary plane, to help with calcs&lt;BR /&gt;
&lt;BR /&gt;
      Dim origin = New Point3d(0, 0, 0)&lt;BR /&gt;
      Dim normal = New Vector3d(0, 0, 1)&lt;BR /&gt;
&lt;BR /&gt;
      normal = normal.TransformBy(ucs)&lt;BR /&gt;
      m_plane = New Plane(origin, normal)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Create leader, set defaults, add dummy vertex&lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
&lt;BR /&gt;
      Try&lt;BR /&gt;
         myLeader.SetDatabaseDefaults()&lt;BR /&gt;
      Catch ex As Autodesk.AutoCAD.Runtime.Exception&lt;BR /&gt;
         MsgBox(ex.Message.ToString)&lt;BR /&gt;
      End Try&lt;BR /&gt;
&lt;BR /&gt;
      myLeader.AppendVertex(New Point3d(0, 0, 0))&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
   Protected Overrides Function Sampler(ByVal prompts As JigPrompts) As SamplerStatus&lt;BR /&gt;
&lt;BR /&gt;
      Dim jigOpts As New JigPromptPointOptions()&lt;BR /&gt;
&lt;BR /&gt;
      jigOpts.UserInputControls = UserInputControls.Accept3dCoordinates + _&lt;BR /&gt;
                                  UserInputControls.NullResponseAccepted + _&lt;BR /&gt;
                                  UserInputControls.NoNegativeResponseAccepted&lt;BR /&gt;
&lt;BR /&gt;
      If m_pts.Count = 0 Then&lt;BR /&gt;
         'For the first vertex, just ask for the point&lt;BR /&gt;
         jigOpts.UseBasePoint = False&lt;BR /&gt;
         jigOpts.Message = "\nStart point of leader: "&lt;BR /&gt;
&lt;BR /&gt;
      ElseIf m_pts.Count &amp;gt; 0 Then&lt;BR /&gt;
         Dim myLeader As Leader = Entity&lt;BR /&gt;
&lt;BR /&gt;
         'For subsequent vertices, use a base point&lt;BR /&gt;
         jigOpts.BasePoint = m_pts(m_pts.Count - 1)&lt;BR /&gt;
         jigOpts.UseBasePoint = True&lt;BR /&gt;
         jigOpts.Message = "\nLeader vertex: "&lt;BR /&gt;
&lt;BR /&gt;
      Else 'should never happen&lt;BR /&gt;
         Return SamplerStatus.Cancel&lt;BR /&gt;
&lt;BR /&gt;
      End If&lt;BR /&gt;
&lt;BR /&gt;
      'Get the point itself&lt;BR /&gt;
      Dim res As PromptPointResult = prompts.AcquirePoint(jigOpts)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Check if it has changed or not&lt;BR /&gt;
      If (m_tempPoint = res.Value) Then&lt;BR /&gt;
         Return SamplerStatus.NoChange&lt;BR /&gt;
      ElseIf (res.Status = PromptStatus.OK) Then&lt;BR /&gt;
         m_tempPoint = res.Value&lt;BR /&gt;
         Return SamplerStatus.OK&lt;BR /&gt;
      Else&lt;BR /&gt;
         Return SamplerStatus.Cancel&lt;BR /&gt;
      End If&lt;BR /&gt;
&lt;BR /&gt;
   End Function&lt;BR /&gt;
&lt;BR /&gt;
   Protected Overrides Function Update() As Boolean&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Update the dummy vertex to be our 3D point projected onto our plane&lt;BR /&gt;
      myLeader.AppendVertex(m_tempPoint)&lt;BR /&gt;
&lt;BR /&gt;
      Return True&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
   End Function&lt;BR /&gt;
&lt;BR /&gt;
   Friend Shadows ReadOnly Property Entity() As Entity&lt;BR /&gt;
      Get&lt;BR /&gt;
         Return MyBase.Entity&lt;BR /&gt;
      End Get&lt;BR /&gt;
   End Property&lt;BR /&gt;
&lt;BR /&gt;
   Public Sub AddLatestVertex()&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Add the latest selected point to internal list...&lt;BR /&gt;
      'This point will already be in the most recently added leader vertex&lt;BR /&gt;
      m_pts.Add(m_tempPoint)&lt;BR /&gt;
&lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
      ' Create a new dummy vertex...&lt;BR /&gt;
      ' can have any initial value&lt;BR /&gt;
&lt;BR /&gt;
      myLeader.AppendVertex(m_tempPoint)&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
   Public Sub RemoveLastVertex()&lt;BR /&gt;
&lt;BR /&gt;
      'Remove dummy vertex&lt;BR /&gt;
      Dim myLeader As Leader = Entity&lt;BR /&gt;
      'myLeader.RemoveLastVertex()&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
   &lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
   Public Sub MyLeaderJig()&lt;BR /&gt;
&lt;BR /&gt;
      'Declarations&lt;BR /&gt;
      '============&lt;BR /&gt;
      Dim doc As Document = Application.DocumentManager.MdiActiveDocument&lt;BR /&gt;
      Dim ed As Editor = doc.Editor&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Begin Sub&lt;BR /&gt;
      '=========&lt;BR /&gt;
      'Get the current UCS and pass it to Jig&lt;BR /&gt;
      Dim ucs As Matrix3d = ed.CurrentUserCoordinateSystem&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'Create Jig object&lt;BR /&gt;
      Dim jig As LeaderJig = New LeaderJig(ucs)&lt;BR /&gt;
&lt;BR /&gt;
      'Loop to set the vertices directly on the polyline&lt;BR /&gt;
      Dim bSuccess As Boolean = True&lt;BR /&gt;
      Dim bComplete As Boolean = False&lt;BR /&gt;
&lt;BR /&gt;
      Do While (bSuccess And Not bComplete)&lt;BR /&gt;
&lt;BR /&gt;
         Dim res As PromptResult = ed.Drag(jig)&lt;BR /&gt;
&lt;BR /&gt;
         'Get results of user input&lt;BR /&gt;
         If res.Status = PromptStatus.OK Then&lt;BR /&gt;
            'New point was added&lt;BR /&gt;
            bSuccess = True&lt;BR /&gt;
            jig.AddLatestVertex()&lt;BR /&gt;
         Else&lt;BR /&gt;
            bSuccess = False&lt;BR /&gt;
         End If&lt;BR /&gt;
&lt;BR /&gt;
         'Null input terminates the command&lt;BR /&gt;
         If res.Status = PromptStatus.None Then&lt;BR /&gt;
            'Clean up polyline before adding it&lt;BR /&gt;
            bComplete = True&lt;BR /&gt;
            jig.RemoveLastVertex()&lt;BR /&gt;
         Else&lt;BR /&gt;
            bComplete = False&lt;BR /&gt;
         End If&lt;BR /&gt;
&lt;BR /&gt;
      Loop&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      'If the jig completed successfully, add the polyline&lt;BR /&gt;
      If bComplete Then&lt;BR /&gt;
&lt;BR /&gt;
         'Begin transaction&lt;BR /&gt;
         Dim db As Database = doc.Database&lt;BR /&gt;
         Dim tr As Transaction = db.TransactionManager.StartTransaction()&lt;BR /&gt;
&lt;BR /&gt;
         Using tr&lt;BR /&gt;
&lt;BR /&gt;
            Dim bt As BlockTable = tr.GetObject(db.BlockTableId, OpenMode.ForRead, False)&lt;BR /&gt;
            Dim btr As BlockTableRecord = tr.GetObject(bt(BlockTableRecord.ModelSpace), OpenMode.ForWrite, False)&lt;BR /&gt;
&lt;BR /&gt;
            'Append entity&lt;BR /&gt;
            btr.AppendEntity(jig.Entity)&lt;BR /&gt;
&lt;BR /&gt;
            tr.AddNewlyCreatedDBObject(jig.Entity, True)&lt;BR /&gt;
            tr.Commit()&lt;BR /&gt;
&lt;BR /&gt;
         End Using 'tr&lt;BR /&gt;
&lt;BR /&gt;
      End If 'bComplete&lt;BR /&gt;
&lt;BR /&gt;
   End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Mon, 31 Mar 2008 19:55:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/need-some-guidance-on-building-a-leaderjig/m-p/2218519#M75058</guid>
      <dc:creator>dwgraphics</dc:creator>
      <dc:date>2008-03-31T19:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guidance on building a LeaderJig</title>
      <link>https://forums.autodesk.com/t5/net-forum/need-some-guidance-on-building-a-leaderjig/m-p/2218520#M75059</link>
      <description>Never mind, I finally figured it out.</description>
      <pubDate>Mon, 31 Mar 2008 23:33:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/need-some-guidance-on-building-a-leaderjig/m-p/2218520#M75059</guid>
      <dc:creator>dwgraphics</dc:creator>
      <dc:date>2008-03-31T23:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guidance on building a LeaderJig</title>
      <link>https://forums.autodesk.com/t5/net-forum/need-some-guidance-on-building-a-leaderjig/m-p/3099862#M75060</link>
      <description>&lt;P&gt;Sorry to ressurect an several year old thread, but what was your solution and can you post it here?&amp;nbsp; I am in the same boat you were in as I only came across how to make a Mleader but have the same issue in trying to make a leader jig.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2011 14:16:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/need-some-guidance-on-building-a-leaderjig/m-p/3099862#M75060</guid>
      <dc:creator>JonathanSommer2580</dc:creator>
      <dc:date>2011-07-21T14:16:48Z</dc:date>
    </item>
  </channel>
</rss>

