<?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 Verify Origin Point in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/verify-origin-point/m-p/8926329#M9440</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the command to know if the Origine Point is really at 0,0,0 before Paste To Original Coordinates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 19:20:49 GMT</pubDate>
    <dc:creator>arpenteur</dc:creator>
    <dc:date>2019-07-23T19:20:49Z</dc:date>
    <item>
      <title>Verify Origin Point</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/verify-origin-point/m-p/8926329#M9440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the command to know if the Origine Point is really at 0,0,0 before Paste To Original Coordinates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 19:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/verify-origin-point/m-p/8926329#M9440</guid>
      <dc:creator>arpenteur</dc:creator>
      <dc:date>2019-07-23T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Verify Origin Point</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/verify-origin-point/m-p/8954586#M9441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When you use _COPYBASE with certain base point, the selected objects are copied in to a temp destination drawing, this temp drawing holds the INSBASE sysvar with given base point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This program attempts to tap that when you perform a _PASTEORG in another drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE style="color: #d1d1d1; background: #000000;"&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;class&lt;/SPAN&gt; EntryPoint &lt;SPAN style="color: #d2cd86;"&gt;:&lt;/SPAN&gt; IExtensionApplication
    &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; Initialize&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;var&lt;/SPAN&gt; ed &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Application&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DocumentManager&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;MdiActiveDocument&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Editor&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;var&lt;/SPAN&gt; curDb &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; HostApplicationServices&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;WorkingDatabase&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;

            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;var&lt;/SPAN&gt; docs &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Application&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DocumentManager&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            docs&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DocumentCreated &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Docs_DocumentCreated&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            docs&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DocumentToBeDestroyed &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Docs_DocumentToBeDestroyed&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;private&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; Docs_DocumentToBeDestroyed&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #e66170; font-weight: bold;"&gt;object&lt;/SPAN&gt; sender&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; DocumentCollectionEventArgs e&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            MyCommands&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DisableDBEvents&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;e&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Document&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Database&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;private&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; Docs_DocumentCreated&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #e66170; font-weight: bold;"&gt;object&lt;/SPAN&gt; sender&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; DocumentCollectionEventArgs e&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            MyCommands&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;EnableDBEvents&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;e&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Document&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Database&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; Terminate&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
           
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
    &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

    &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;class&lt;/SPAN&gt; MyCommands
    &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;

       &lt;SPAN style="color: #9999a9;"&gt;//Utils:&lt;/SPAN&gt;
        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; PrintToCmdLine&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; str&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            Editor ed &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Application&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DocumentManager&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;MdiActiveDocument&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Editor&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            ed&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;WriteMessage&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;str&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; ObjToTypeAndHandleStr&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;DBObject dbObj&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            Debug&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Assert&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;dbObj &lt;SPAN style="color: #d2cd86;"&gt;!&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;

            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; str1 &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; dbObj&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;GetType&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Name&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;return&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Format&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;&amp;lt; {0,-20} {1,4} &amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; str1&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; dbObj&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Handle&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; ObjToTypeAndHandleStr&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;ObjectId objId&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; str&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;

            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;if&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;objId&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;IsNull&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
                str &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;(null)&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;else&lt;/SPAN&gt;
            &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
                &lt;SPAN style="color: #9999a9;"&gt;// open up even if erased&lt;/SPAN&gt;
                Autodesk&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;AutoCAD&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DatabaseServices&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;TransactionManager tm &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; objId&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Database&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;TransactionManager&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;using&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;Autodesk&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;AutoCAD&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DatabaseServices&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Transaction tr &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; tm&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;StartTransaction&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
                &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
                    DBObject tmpObj &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; tr&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;GetObject&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;objId&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; OpenMode&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ForRead&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                    str &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; ObjToTypeAndHandleStr&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;tmpObj&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                    tr&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Commit&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
            &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;return&lt;/SPAN&gt; str&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; PtToStr&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;Point3d pt&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; DistanceUnitFormat unitType&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;int&lt;/SPAN&gt; prec&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; x &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Converter&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DistanceToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;pt&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;X&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; unitType&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; prec&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; y &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Converter&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DistanceToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;pt&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Y&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; unitType&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; prec&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt; z &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Converter&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DistanceToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;pt&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Z&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; unitType&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; prec&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;

            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;return&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Format&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;({0}, {1}, {2})&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; x&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; y&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; z&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; EnableDBEvents&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;Database db&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            db&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;BeginDeepClone &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; CurDb_BeginDeepClone&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            db&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;BeginInsert &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Db_BeginInsert&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; DisableDBEvents&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;Database db&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            db&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;BeginDeepClone &lt;SPAN style="color: #d2cd86;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; CurDb_BeginDeepClone&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            db&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;BeginInsert &lt;SPAN style="color: #d2cd86;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; Db_BeginInsert&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;private&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; Db_BeginInsert&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #e66170; font-weight: bold;"&gt;object&lt;/SPAN&gt; sender&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; BeginInsertEventArgs e&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            Database db &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; e&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;From&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
            PrintToCmdLine&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;Insert origin Point&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt; PtToStr&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;db&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Insbase&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; DistanceUnitFormat&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Current&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #008c00;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
        &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;private&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;void&lt;/SPAN&gt; CurDb_BeginDeepClone&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #e66170; font-weight: bold;"&gt;object&lt;/SPAN&gt; sender&lt;SPAN style="color: #d2cd86;"&gt;,&lt;/SPAN&gt; IdMappingEventArgs e&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
            &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;if&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;e&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;IdMapping&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;DeepCloneContext &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; DeepCloneType&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Explode&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
            &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
                IdMapping idMap &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; e&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;IdMapping&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                System&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Collections&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;IEnumerator iter &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; idMap&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;GetEnumerator&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;while&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;iter&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;MoveNext&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
                &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
                    IdPair pair &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;IdPair&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;iter&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Current&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;

                    &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;try&lt;/SPAN&gt;
                    &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
                        StringBuilder sb &lt;SPAN style="color: #d2cd86;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;new&lt;/SPAN&gt; StringBuilder&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;ObjToTypeAndHandleStr&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;pair&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Key&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                        sb&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Append&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;pair&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Key&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                        sb&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Append&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt; pair&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Value&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                        sb&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Append&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt; pair&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;IsCloned&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                        sb&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Append&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt; pair&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;IsPrimary&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                        sb&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Append&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt; pair&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;IsOwnerTranslated&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                        PrintToCmdLine&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;sb&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;ToString&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;



                    &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
                    &lt;SPAN style="color: #e66170; font-weight: bold;"&gt;catch&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;Autodesk&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;AutoCAD&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Runtime&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Exception ex&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;
                    &lt;SPAN style="color: #b060b0;"&gt;{&lt;/SPAN&gt;
                        PrintToCmdLine&lt;SPAN style="color: #d2cd86;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #00c4c4;"&gt;Couldn't add a pair from the map: &lt;/SPAN&gt;&lt;SPAN style="color: #02d045;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #d2cd86;"&gt;+&lt;/SPAN&gt; ex&lt;SPAN style="color: #d2cd86;"&gt;.&lt;/SPAN&gt;Message&lt;SPAN style="color: #d2cd86;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b060b0;"&gt;;&lt;/SPAN&gt;
                    &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
                &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
            &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
        &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;

    &lt;SPAN style="color: #b060b0;"&gt;}&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Aug 2019 04:17:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/verify-origin-point/m-p/8954586#M9441</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2019-08-08T04:17:18Z</dc:date>
    </item>
  </channel>
</rss>

