<?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 SELECT works interactively and doesn't work from a script in AutoCAD Architecture Customization Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8819076#M1463</link>
    <description>&lt;P&gt;I need to make a closed polyline and extrude it.&lt;/P&gt;&lt;P&gt;In interactive mode, I just make a PLINE and then call EXTRUDE and it just works.&lt;/P&gt;&lt;P&gt;When writing those same commands to a script, the line isn't selected after it's added (closed). So, I'm trying to do everything to actually select the line and nothing is working.&lt;/P&gt;&lt;P&gt;My intuition is that I should wither SELECT or DESELECT-SELECT (I've tried both) the line and then call EXTRUDE or, alternatively, call EXTRUDE and then specify the co-ordinates of the line to extrude.&lt;/P&gt;&lt;P&gt;When I do it interactively, it works just fine. I can provide the co-ordinates to SELECT and it tells me that 1 object is selected, so I can confidently call EXTRUDE.&lt;/P&gt;&lt;P&gt;When running a script, I call SELECT and it doesn't find the object! Instead, even though I'm providing valid co-ordinates, it cannot find anything and asks me to provide a closing bound to search for objects. I've tried both this as well as calling EXTRUDE and specifying the co-ordinates of the line to extrude and it cannot find that line, even though I 100% know the line is there and can select it with SELECT in interactive mode just by typing those same commands that I have in my script.&lt;/P&gt;&lt;P&gt;Can someone help me figure out what's going on here? This is very infuriating.&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 16:34:39 GMT</pubDate>
    <dc:creator>dmitriZTSCC</dc:creator>
    <dc:date>2019-05-28T16:34:39Z</dc:date>
    <item>
      <title>SELECT works interactively and doesn't work from a script</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8819076#M1463</link>
      <description>&lt;P&gt;I need to make a closed polyline and extrude it.&lt;/P&gt;&lt;P&gt;In interactive mode, I just make a PLINE and then call EXTRUDE and it just works.&lt;/P&gt;&lt;P&gt;When writing those same commands to a script, the line isn't selected after it's added (closed). So, I'm trying to do everything to actually select the line and nothing is working.&lt;/P&gt;&lt;P&gt;My intuition is that I should wither SELECT or DESELECT-SELECT (I've tried both) the line and then call EXTRUDE or, alternatively, call EXTRUDE and then specify the co-ordinates of the line to extrude.&lt;/P&gt;&lt;P&gt;When I do it interactively, it works just fine. I can provide the co-ordinates to SELECT and it tells me that 1 object is selected, so I can confidently call EXTRUDE.&lt;/P&gt;&lt;P&gt;When running a script, I call SELECT and it doesn't find the object! Instead, even though I'm providing valid co-ordinates, it cannot find anything and asks me to provide a closing bound to search for objects. I've tried both this as well as calling EXTRUDE and specifying the co-ordinates of the line to extrude and it cannot find that line, even though I 100% know the line is there and can select it with SELECT in interactive mode just by typing those same commands that I have in my script.&lt;/P&gt;&lt;P&gt;Can someone help me figure out what's going on here? This is very infuriating.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:34:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8819076#M1463</guid>
      <dc:creator>dmitriZTSCC</dc:creator>
      <dc:date>2019-05-28T16:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT works interactively and doesn't work from a script</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8819354#M1464</link>
      <description>Post the content of your script here please, let us see what all you are trying to accomplish with it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 May 2019 18:31:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8819354#M1464</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2019-05-28T18:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT works interactively and doesn't work from a script</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8822093#M1465</link>
      <description>&lt;P&gt;When I close a polyline, the command ends, but the polyline is not selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be that as it may, in your script, are you creating the polyline and then immediately calling the EXTRUDE command?&amp;nbsp; If so, at the first prompt (Select objects to extrude...), have your script respond with &lt;STRONG&gt;L&lt;/STRONG&gt;.&amp;nbsp; That will select the last object created, which would be your polyline.&amp;nbsp; Add another ENTER (blank line) to end the selection of objects, then proceed to provide the height, or select one of the command-line options, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 19:52:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8822093#M1465</guid>
      <dc:creator>David_W_Koch</dc:creator>
      <dc:date>2019-05-29T19:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT works interactively and doesn't work from a script</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8822124#M1466</link>
      <description>&lt;P&gt;The attached file works to create a polyline and then extrude it.&amp;nbsp; If this is not what you are trying to do, then, as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37212"&gt;@pendean&lt;/a&gt;&amp;nbsp;requested, sharing your script would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to change the file extension from TXT to SCR for it to work as a script in AutoCAD.&amp;nbsp; I was not allowed to attach the file with the SCR extension.&amp;nbsp; (Make certain that you have the display of file extensions for known file types turned on in Windows - it is turned off by default - so that you do not end up with a file called PLINE-EXTRUDE.scr.txt, which AutoCAD will not recognize as a script file.)&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 20:04:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8822124#M1466</guid>
      <dc:creator>David_W_Koch</dc:creator>
      <dc:date>2019-05-29T20:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT works interactively and doesn't work from a script</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8840230#M1467</link>
      <description>&lt;P&gt;Thanks, this approach appears to work.&lt;/P&gt;&lt;P&gt;It doesn't answer the question of how you would extrude the lines post-hoc (several steps after they've been created), but this approach is good enough for me for the moment.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 10:10:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8840230#M1467</guid>
      <dc:creator>dmitriZTSCC</dc:creator>
      <dc:date>2019-06-08T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT works interactively and doesn't work from a script</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8841425#M1468</link>
      <description>&lt;P&gt;If you are using AutoCAD Architecture, or at the least the full version of AutoCAD (not LT), you can make use of AutoLISP expressions in your script to assign a selection set to a variable that would then be available for use at a later time in the script, after other element have been created.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 00:08:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/select-works-interactively-and-doesn-t-work-from-a-script/m-p/8841425#M1468</guid>
      <dc:creator>David_W_Koch</dc:creator>
      <dc:date>2019-06-10T00:08:33Z</dc:date>
    </item>
  </channel>
</rss>

