<?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: AddSurfaceDrawingObjects lisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7419340#M114327</link>
    <description>&lt;P&gt;Mmmh...that's too bad.&lt;/P&gt;&lt;P&gt;As I do not have Civil 3D I'm not able to further check on this and find a solution, so hopefully someone else can help you out.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2017 06:31:07 GMT</pubDate>
    <dc:creator>DannyNL</dc:creator>
    <dc:date>2017-09-29T06:31:07Z</dc:date>
    <item>
      <title>AddSurfaceDrawingObjects lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7410652#M114324</link>
      <description>&lt;P&gt;I am trying to fins a way to use the "AddSurfaceDrawingObjects" command without the dialogue box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to choose "Blocks" in the object type&amp;nbsp;in the dialogue box from the command line and populate the description with the date, time, and user name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I want to select the previous selection and enter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the lisp below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure there is probably a more elegant way of doing this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun C:XS ()&lt;/P&gt;&lt;P&gt;(c:xe)&lt;BR /&gt;(c:xle)&lt;BR /&gt;(Command "AddSurfaceDrawingObjects" pause "p")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(defun C:XLE (/&lt;BR /&gt;entSelection&lt;BR /&gt;intCount&lt;BR /&gt;objAttribute&lt;BR /&gt;objSelection&lt;BR /&gt;ssSelections&lt;BR /&gt;strTextstring&lt;BR /&gt;)&lt;BR /&gt;(if (setq ssSelections (ssget (list (cons 2 "XLABEL"))))&lt;BR /&gt;(repeat (setq intCount (sslength ssSelections))&lt;BR /&gt;(setq intCount (1- intCount)&lt;BR /&gt;entSelection (ssname ssSelections intCount)&lt;BR /&gt;objSelection (vlax-ename-&amp;gt;vla-object entSelection)&lt;BR /&gt;)&lt;BR /&gt;(foreach objAttribute (vlax-invoke objSelection "getattributes")&lt;BR /&gt;(if (= (vla-get-tagstring objAttribute) "ELEV1")&lt;BR /&gt;(if (/= (setq strTextstring (vla-get-textstring objAttribute)) "")&lt;BR /&gt;(progn&lt;BR /&gt;(setq lstInsertion (vlax-get objSelection "insertionpoint")&lt;BR /&gt;lstInsertion (list (car lstInsertion)&lt;BR /&gt;(cadr lstInsertion)&lt;BR /&gt;(atof strTextString)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(vlax-put objSelection "insertionpoint" lstInsertion)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;(vl-load-com)&lt;/P&gt;&lt;P&gt;(defun c:xe ( / blockname sset); filter all blocks of same name with one click&lt;BR /&gt;(setq blockname (cdr (assoc 2 (entget (car (entsel))))))&lt;BR /&gt;(setq sset (ssget "x" (list (cons 2 blockname))))&lt;BR /&gt;(sssetfirst sset sset)&lt;BR /&gt;(princ (strcat "\nSelected " (itoa (sslength sset)) " instances of block \"" blockname "\"."))&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:04:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7410652#M114324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T18:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: AddSurfaceDrawingObjects lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7412388#M114325</link>
      <description>&lt;P&gt;Not sure what AutoCAD vertical you are using (AutoCAD Vanilla doesn't have the&amp;nbsp;&lt;SPAN&gt;AddSurfaceDrawingObjects command), but usually you can suppress dialogue boxes&amp;nbsp;by prefixing&amp;nbsp;the command with a minus sign (so the command -AddSurfaceDrawingObjects) or by setting the CMDDIA variable to 0.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 08:05:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7412388#M114325</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-09-27T08:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: AddSurfaceDrawingObjects lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7414334#M114326</link>
      <description>&lt;P&gt;I am using Civil 3D 2017.&amp;nbsp;&lt;SPAN&gt;-AddSurfaceDrawingObjects does not work.&lt;/SPAN&gt; I tried&amp;nbsp;the CMDDIA variable, but the dialogue box still pops up to select the drawing object type.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 18:33:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7414334#M114326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-27T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: AddSurfaceDrawingObjects lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7419340#M114327</link>
      <description>&lt;P&gt;Mmmh...that's too bad.&lt;/P&gt;&lt;P&gt;As I do not have Civil 3D I'm not able to further check on this and find a solution, so hopefully someone else can help you out.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 06:31:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/addsurfacedrawingobjects-lisp/m-p/7419340#M114327</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-09-29T06:31:07Z</dc:date>
    </item>
  </channel>
</rss>

