<?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: Section View Surface Display/Plot Order Control / Lisp Command in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12754706#M1938</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69236"&gt;@GTVic&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I get an "unknown command for _front" error when I try to include the specific layer filter.&amp;nbsp; Without this it works ok..?&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 07:01:24 GMT</pubDate>
    <dc:creator>RDunkley</dc:creator>
    <dc:date>2024-05-06T07:01:24Z</dc:date>
    <item>
      <title>Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12742757#M1934</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have found that the Display/Plot order for Section View Surfaces appears to be random. Sometimes the Design surface plots on top of all other linework and others it will sit behind and looks terrible. I know that I can fix this by selecting my Design Surface Section &amp;gt; Select Similar &amp;gt; Display Order&amp;gt; Bring to Front. I would like to make this an automated process but am struggling to get it to work.&lt;/P&gt;&lt;P&gt;I have tested the LayerOrder command with no luck and am also struggling to get any Lisp code to select the surface as they are defined as a 'Section' (Aecc object) but seems to sit as part of a larger group on a layer called 'C-SECTION' with the Design Surface on layer 'C-SECTIONS_Surfaces_Design'.&lt;/P&gt;&lt;P&gt;Ideally some kind of routine would run when the Section Views are regenerated to bring all Design Surface linework (Sections on layer 'C-SECTIONS_Surfaces_Design') to front.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 06:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12742757#M1934</guid>
      <dc:creator>RDunkley</dc:creator>
      <dc:date>2024-04-30T06:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12747063#M1935</link>
      <description>&lt;P&gt;Anyone..? Does anybody else have issues with the Display Order for Section View Surfaces?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 23:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12747063#M1935</guid>
      <dc:creator>RDunkley</dc:creator>
      <dc:date>2024-05-01T23:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12747326#M1936</link>
      <description>&lt;P&gt;Would this work?&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Select only:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;(progn (setq ss11 (ssget "x" '((0 . "AECC_SECTION")))) (sssetfirst nil ss11))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Select and bring to front:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;(command "_.draworder" (ssget "x" '((0 . "AECC_SECTION"))) "" "_front")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I tested it on the Autodesk sample drawing: Plan Production-Section Sheets-Create.dwg&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;picking on one of the design section surfaces in the section views and then using Select Similar picks 182 entities&lt;/LI&gt;&lt;LI&gt;the above LISP picks 273 which is an additional 91 entities&lt;/LI&gt;&lt;LI&gt;the entities show as "Section" in the properties palette&lt;/LI&gt;&lt;LI&gt;they show as AECC_SECTION in the LIST command&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GTVic_0-1714619282300.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1357294iFF07705D7D3791BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GTVic_0-1714619282300.png" alt="GTVic_0-1714619282300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 03:20:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12747326#M1936</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2024-05-02T03:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12748868#M1937</link>
      <description>&lt;P&gt;To add to what&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69236"&gt;@GTVic&lt;/a&gt;&amp;nbsp;suggested, include the specific layer for the Design surface:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;(command "_.draworder" (ssget "x" '((0 . "AECC_SECTION")(8 . "&lt;SPAN&gt;C-SECTIONS_Surfaces_Design")&lt;/SPAN&gt;)) "" "_front")&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 02 May 2024 17:03:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12748868#M1937</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2024-05-02T17:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12754706#M1938</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69236"&gt;@GTVic&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I get an "unknown command for _front" error when I try to include the specific layer filter.&amp;nbsp; Without this it works ok..?&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 07:01:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12754706#M1938</guid>
      <dc:creator>RDunkley</dc:creator>
      <dc:date>2024-05-06T07:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12755826#M1939</link>
      <description>&lt;P&gt;I used copy-paste on that line of lisp I posted and this is what I got:&lt;/P&gt;
&lt;P&gt;Command: _.draworder&lt;BR /&gt;Select objects: 30 found&lt;BR /&gt;Select objects:&lt;BR /&gt;Enter object ordering option [Above objects/Under objects/Front/Back] &amp;lt;Back&amp;gt;: _front&lt;BR /&gt;Command:&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 15:48:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12755826#M1939</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2024-05-06T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12756526#M1940</link>
      <description>&lt;P&gt;The LISP is just sample code and not very robust, it will fail if no surfaces are found and then you could get that error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:sstf ( / ss ft )
  (setq ft '((0 . "AECC_SECTION") (8 . "C-SECTIONS_Surfaces_Design")))
  (if (setq ss (ssget "x" ft))
    (progn (command "_.draworder" ss "" "_front")
           (princ "\nDraw order updated"))
    (princ "\nNo matching surfaces found"))
  (princ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 21:35:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12756526#M1940</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2024-05-06T21:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12756809#M1941</link>
      <description>&lt;P&gt;Hi Jeff, I'm sorry but I couldn't get it to work...&lt;/P&gt;&lt;P&gt;I pasted your code, as described with no luck. Please see attached video to show the error.&lt;/P&gt;&lt;P&gt;Regards.&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6352437418112w990h540r573" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6352437418112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6352437418112w990h540r573');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6352437418112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 01:58:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12756809#M1941</guid>
      <dc:creator>RDunkley</dc:creator>
      <dc:date>2024-05-07T01:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12756819#M1942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69236"&gt;@GTVic&lt;/a&gt;, Your code is working if I either omit the Layer filter or change the Layer filter to "C.-SECTION" (As shown) as this appears to be the 'Parent' layer for the Section. Unfortunately, This will bring all Sections to the front, I need to select only the Design Surface Section which has a different 'Child' layer... "C-SECTIONS_Surfaces_Design" and it doesn't seem to work for that?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:sstf ( / ss ft )
  (setq ft '((0 . "AECC_SECTION") (8 . "C-SECTION")))
  (if (setq ss (ssget "x" ft))
    (progn (command "_.draworder" ss "" "_front")
           (princ "\nDraw order updated"))
    (princ "\nNo matching surfaces found"))
  (princ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Another possible solution might be to include a check for the Design Section Style "ANZ_Surface Design" in the filter..? However I haven't been able to find a reference on how to filter by AEC Style.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;BR /&gt;Ross.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 02:07:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12756819#M1942</guid>
      <dc:creator>RDunkley</dc:creator>
      <dc:date>2024-05-07T02:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12758084#M1943</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1208447"&gt;@RDunkley&lt;/a&gt;&amp;nbsp;so your sections are actually on layer C-SECTIONS not the one being called for in the filter. You had said they are on the layer we used for the filter but that is just the layer specified in the style. The only way to filter based on style would be to open each section in the selectionset and check the style used, creating a new selectionset with only those using the specified style.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 14:27:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12758084#M1943</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2024-05-07T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12758561#M1944</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1208447"&gt;@RDunkley&lt;/a&gt;&amp;nbsp;here is a lisp that looks in the section styles for any that use the specified layer for the segments (note that it will use the last one found! It could be modified to use all found styles), then gets all the sections and checks each one to see if it is using the style found, if found, those are added to a new ss and that ss is used to set the draw order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:sectionstofront ( / CIVAPP CIVDOC DISPLAY ENT HAND I LAYER NEWSS SECTION SS STYLE STYLES)
  (setq layer "C-SECTIONS_Surfaces_Design") ;;set the layer to look for here
  
  (defun getaeccApp (module / *acad* C3D) ;; module must be "Land", "Pipe", "Roadway", or "Survey"
  (vl-load-com)
  (if (and (setq *acad* (vlax-get-acad-object))
	   (setq C3D (strcat "HKEY_LOCAL_MACHINE\\"
			     (if vlax-user-product-key
			       (vlax-user-product-key)
			       (vlax-product-key)
			     )
		     )
		 C3D (vl-registry-read C3D "Release")
		 C3D (substr
		       C3D
		       1
		       (vl-string-search
			 "."
			 C3D
			 (+ (vl-string-search "." C3D) 1)
		       )
		     )
		 C3D (vla-getinterfaceobject
		       (vlax-get-acad-object)
		       (strcat "AeccXUi" module ".Aecc" (if (= (strcase module) "LAND") "" module) "Application." C3D)
		     )
	   )
      )
    C3D
  )
)
  (if (setq ss (ssget "X" '((0 . "AECC_SECTION"))))
    (progn
	  (setq civapp (getaeccapp "Land")
		civdoc (vlax-get civapp 'activedocument)
		styles (vlax-get civdoc 'sectionstyles)
		)
      (vlax-for s styles
	(setq display (vlax-get s 'SegmentDisplayStyleSection))
	(if (eq (vlax-get display 'layer) layer)
	  (setq hand (vlax-get s 'handle))
	  )
	)
      (setq newss (ssadd)
	    i -1)
      (while (setq ent (ssname ss (setq i (1+ i))))
	(setq section (vlax-ename-&amp;gt;vla-object ent))
	(if (= (vlax-get (vlax-get section 'style) 'handle) hand)
	  (ssadd ent newss)
	  )
	)
      (if (&amp;gt; (sslength newss) 0)
	(progn (command "_.draworder" newss "" "_front")
           (princ "\nDraw order updated"))
	)
      (vlax-release-object civapp)
      )
    )
  (princ)
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 17:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12758561#M1944</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2024-05-07T17:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12759065#M1945</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thankyou so much!&lt;/P&gt;&lt;P&gt;Once I realised that I needed to set a Layer Name that is unique to the Section Style I want to bring to the front (to ensure that the Section Style I was using was the only one picked up) it worked great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have the time, or patience, I would appreciate it if you were able to show me how the code could be modified to use all found styles with comments? As I think this would be more robust.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, from your understanding, am I right in assuming that Civil 3D has no in-built way to control the display/plot order of these Sections? It seems quite odd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And finally, Ideally this script would run 'automatically' once set up so the user doesn't need to remember to do it. Do you have any suggestions as to how this could be achieved? Ie. Could it be run as part of the Publish command or on Save or something else, even when Section Styles are set? It seems to run quickly so may not be too noticeable if it happens on a semi-regular basis...&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 23:30:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12759065#M1945</guid>
      <dc:creator>RDunkley</dc:creator>
      <dc:date>2024-05-07T23:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12761630#M1946</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1208447"&gt;@RDunkley&lt;/a&gt;&amp;nbsp;Here is a snippet of the code showing the 2 lines of code that need to be changed to get and filter all styles using the layer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;  (if (setq ss (ssget "X" '((0 . "AECC_SECTION"))))
    (progn
	  (setq civapp (getaeccapp "Land")
		civdoc (vlax-get civapp 'activedocument)
		styles (vlax-get civdoc 'sectionstyles)
		)
      (vlax-for s styles
	(setq display (vlax-get s 'SegmentDisplayStyleSection))
	(if (eq (vlax-get display 'layer) layer)
	  (setq hand (cons (vlax-get s 'handle) hand));;changed
	  )
	)
      (setq newss (ssadd)
	    i -1)
      (while (setq ent (ssname ss (setq i (1+ i))))
	(setq section (vlax-ename-&amp;gt;vla-object ent))
	(if (member (vlax-get (vlax-get section 'style) 'handle) hand);;changed
	  (ssadd ent newss)
	  )
	)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct, no way to set the order directly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may be added to a command which replaces the plot or save command. It's been a while since I've used reactors in lisp to automate the update, not sure if command calls can be used in them. Perhaps&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt;&amp;nbsp; can chime in on that.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 00:00:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12761630#M1946</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2024-05-09T00:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763487#M1947</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;Unfortunately the command function is not allowed in a reactor callback function.&amp;nbsp; Adding the command function to a callback results in AutoCAD rejecting the command. Is there another way to set draworder without using "Command"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; error: AutoCAD command rejected: "DRAWORDER"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 19:21:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763487#M1947</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-05-09T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763586#M1948</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there another way to set draworder without using "Command"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, using &lt;A href="https://www.lee-mac.com/draworderfunctions.html" target="_blank" rel="noopener"&gt;Lee Mac's tools&lt;/A&gt; would be easiest. Or just creating them as there isn't that much to them.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 20:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763586#M1948</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2024-05-09T20:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763672#M1949</link>
      <description>&lt;P&gt;Reference to .NET method for modifying draw order:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.keanw.com/2010/10/changing-the-relative-draw-order-of-autocad-objects-based-on-their-layer.html" target="_blank" rel="noopener"&gt;https://www.keanw.com/2010/10/changing-the-relative-draw-order-of-autocad-objects-based-on-their-layer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference to COM method for modifying draw order:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/vba/vb-net-draw-hatch-send-to-back-programatically/td-p/6618389" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/vba/vb-net-draw-hatch-send-to-back-programatically/td-p/6618389&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is just meant for general reference. The command method is not desirable for many reasons including reliability.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 21:37:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763672#M1949</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2024-05-09T21:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763684#M1950</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lee's style of writing lisp is so clean and elegant. I am always amazed at his work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***EDIT***&lt;/P&gt;&lt;P&gt;Below is an example of creating an object modified reactor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(setq reactor (vlr-object-reactor (list watchedObject) '(( :vlr-modified . OnObjectModified))))

(defun OnObjectModified (obj dat1 dat2)
  (princ "\nObject has been modified.")
  )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 13:51:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12763684#M1950</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-05-13T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Section View Surface Display/Plot Order Control / Lisp Command</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12769634#M1951</link>
      <description>&lt;P&gt;I've edited my previous response and code. The object that is being watched cannot be the object that is being modified and I believe that changing the draw order "modifies" the object, but I haven't tested this out. It seems to me that the surface should be the object that is watched for modification and the sections then get modified through the draw order inside the callback function that is triggered by the reactor. My previous code didn't make that distinction very clear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, it seems to me that it would work to create an object-modified reactor and apply it to the surface. Then in the callback function get your appropriate sections and change the draw order using the Lee Mac functions that&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;posted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 13:59:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/section-view-surface-display-plot-order-control-lisp-command/m-p/12769634#M1951</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-05-13T13:59:35Z</dc:date>
    </item>
  </channel>
</rss>

