<?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 Betreff: Basic autolisp question in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061357#M103729</link>
    <description>&lt;P&gt;I attached the detail in a notepad&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2018 22:58:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-11T22:58:06Z</dc:date>
    <item>
      <title>Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061331#M103727</link>
      <description>&lt;P&gt;I have a list of pairs in autolisp ((x1&amp;nbsp;x2)(x3 x4)(x6 y5)...)&amp;nbsp;This list contains&amp;nbsp;variable number of argument and I wonder on how can feed&amp;nbsp;all the arguments to the command funct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command "xxxx"&amp;nbsp; pair1 pair2 ... pairfinal)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 22:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061331#M103727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-11T22:42:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061343#M103728</link>
      <description>The answer is depent of the whole command expression, but for normal:&lt;BR /&gt;(Command "point")&lt;BR /&gt;(Foreach pair ofmylist (command pair))&lt;BR /&gt;(Command "")&lt;BR /&gt;&lt;BR /&gt;Which command you try to use in (command expression?</description>
      <pubDate>Mon, 11 Jun 2018 22:47:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061343#M103728</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-06-11T22:47:56Z</dc:date>
    </item>
    <item>
      <title>Betreff: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061357#M103729</link>
      <description>&lt;P&gt;I attached the detail in a notepad&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 22:58:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061357#M103729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-11T22:58:06Z</dc:date>
    </item>
    <item>
      <title>Betreff: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061402#M103730</link>
      <description>Oh select is very special  (simular to the alltime autocad object selection)&lt;BR /&gt;&lt;BR /&gt;Three answeres&lt;BR /&gt;&lt;BR /&gt;(foreach coord ofmylist (command coord))&lt;BR /&gt;&lt;BR /&gt;If your setting is the standard setup (pickauto) it should working.&lt;BR /&gt;&lt;BR /&gt;BUT the autocad object selection is depend of your current view(target and zoomlevel of view),&lt;BR /&gt;So it isn't really sure what "select" will find.&lt;BR /&gt;You should use ZOOM to make sure the objects are near enough (and if SELECTIONOFFSCREEN&amp;nbsp;is off, you can use zoom too for make sure the area is visible. Or set SELECTIONOFFSCREEN&amp;nbsp;on)&lt;BR /&gt;&lt;BR /&gt;Without command, selectionset can create by using ssget and ssadd.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jun 2018 23:32:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061402#M103730</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-06-11T23:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061409#M103731</link>
      <description>&lt;P&gt;It depends on what types the pairs are made of so that suitable responses are fed to the command invoked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, for example, if the pairs are all reals, as in ((X1 Y1)(X2 Y2)... (Xn Yn)), then.&lt;/P&gt;&lt;PRE&gt;(command "_.line")
(mapcar 'command pairs)
(command "")
OR,
(command "_.line")
(mapcar 'command (append pairs '("")))&lt;/PRE&gt;&lt;P&gt;Of course one must beware of running object snaps that might make any supplied point end up at the end or middle of other thingies.&amp;nbsp; Adding "_non" before each point is one way but slightly difficult to program, so it might be best to turn off osnaps before the command and turn them back on after.&lt;/P&gt;&lt;P&gt;Here's one way...&lt;/P&gt;&lt;PRE&gt;Before:
(setvar "osmode" (logior (getvar "osmode") 16384))
After:
(setvar "osmode" (boole 2 (getvar "osmode") 16384))

I hope I don't have them backwards.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 23:39:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8061409#M103731</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2018-06-11T23:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8062291#M103732</link>
      <description>&lt;P&gt;I normally use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(setq oldsnap (getvar 'osmode))
(setvar 'osmode 0)
.....
...
(setvar 'osmode oldsnap)&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 10:43:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8062291#M103732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-12T10:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8062392#M103733</link>
      <description>That deselect all osnap settings, if you don't use a error function for reset osnaps, the user will lost his osmode setting.&lt;BR /&gt;&lt;BR /&gt;Osnaps turning off like john shows it is much better in this case.&lt;BR /&gt;&lt;BR /&gt;(Or the real well method for that, command input without osnaps, set osnapcoord to 1)</description>
      <pubDate>Tue, 12 Jun 2018 11:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8062392#M103733</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-06-12T11:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8064101#M103734</link>
      <description>&lt;P&gt;Sheesh.&amp;nbsp; I never even knew that [osnapcoord] existed.&amp;nbsp; But there it is, even in 2002.&amp;nbsp; But the help speaks only of keyboard entry.&amp;nbsp; What about points computed in AutoLisp or read from a file?&amp;nbsp; I don't think I ever type in coordinates.&amp;nbsp; What about if you point to the direction and enter a distance?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 23:24:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8064101#M103734</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2018-06-12T23:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8064212#M103735</link>
      <description>Look at options/user preferences upper right corner.&lt;BR /&gt;&lt;BR /&gt;Every time when you give input for coordinates..&lt;BR /&gt;No matter how.&lt;BR /&gt;Mouse direction and length&lt;BR /&gt;,30&lt;BR /&gt;Mouseclick&lt;BR /&gt;Every click or input for a pickpoint will be as result a coordinate information for acad.&lt;BR /&gt;In some situation acad is asking for a object, you can click them or select it by 200,400 - in first line both are coordinate information for acad,&lt;BR /&gt;At the same time acad calculate the coordinate point by the current osnap one or more are active.&lt;BR /&gt;&lt;BR /&gt;Coordinates 1 is default.&lt;BR /&gt;Whenever you using the keyboard for input, acad ignore the running osnap(osmode).&lt;BR /&gt;Thats good, because you never want a osnap point when you working with the keyboard, or you will use the temporary snap explicit.&lt;BR /&gt;Ps: osnapcoord set to 0 can be a really bad thing(users who playing in options and change this setting to 0)&lt;BR /&gt;Unexpected results welcome.&lt;BR /&gt;&lt;BR /&gt;But osnapcoord(1) is only for ignoring running osnaps by keyboard input from users,&lt;BR /&gt;it is not for automation inputs like macro script (commands or sendcommand from other APIs)&lt;BR /&gt;When you needed osnaps without input by user? Not so often..&lt;BR /&gt;Osnapcoords 2 includes coordinate inputs from automations (control commands with lisp,scr,macros and so on)&lt;BR /&gt;&lt;BR /&gt;Value 2 should be the default, but it isn't from adesk.&lt;BR /&gt;1 or 2, for normal user work it is the same.&lt;BR /&gt;But you knowing about millions of lisp snippeds and dirty macro/scripts/lisps and blind using users.&lt;BR /&gt;Value 2 should be default and protects users for some gray hairs, but it isn't by adesk.</description>
      <pubDate>Wed, 13 Jun 2018 01:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8064212#M103735</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-06-13T01:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Basic autolisp question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8067060#M103736</link>
      <description>Last answer yesterday it looks like i was very tired.&lt;BR /&gt;Of course it should read&lt;BR /&gt;Default 2 (only keyboard)&lt;BR /&gt;My opinion is it should be 1 (keyboard and automation)&lt;BR /&gt;i am sorry for confusion.</description>
      <pubDate>Thu, 14 Jun 2018 00:47:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/basic-autolisp-question/m-p/8067060#M103736</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-06-14T00:47:17Z</dc:date>
    </item>
  </channel>
</rss>

