<?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: Code doesn't work on coworker's computer in Autocad 18 OR 16 in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8745808#M89720</link>
    <description>&lt;P&gt;I should have stated that i disable snapping in the code. I did not paste the whole code just the portion asking for input and then drawing. The lines it creates do not snap to existing entities, they are drawn to specific points in space that are the same every time. The points are not the points that I direct the lines to draw to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the actual code that I have tried to run. This is simplified down to the bare bones and still refuses to draw to the correct points on only one user's computer. I do not know the system variable that is doing this. The first lines draw correctly (c1-4), and the following ones do not (j1-4). When I check the points j1-4, they are calculated correctly.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2019 18:40:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-22T18:40:06Z</dc:date>
    <item>
      <title>Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738251#M89715</link>
      <description>&lt;P&gt;I have a fairly simple program that takes some user input and draws fairly basic shapes, dimensions, adds text etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Every computer I have tested it on works completely fine except for one coworker's. He has both Acad 18 and 16 installed on the computer and it does not work on either of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simplified the program to calculate some basic points that form rectangles from user inputted width and height, and draw Plines to these points and close. The first pline always draws correct, but the second pline never does. When I double check the point values, the points are calculated correctly but it does not draw to them (j1-4).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any idea of a setting that would cause subsequent Plines to not draw to the points that are given to it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I stated earlier, this only has happened on one users computer and it does a similar behavior between different versions of AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;; Set First Clear Opening Point on Click&lt;BR /&gt;(setq c1 (getpoint "\nSelect Insertion Point:"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;Calculate Clear Opening Points&lt;BR /&gt;(setq c2 (polar c1 (dtr 0) width))&lt;BR /&gt;(setq c3 (polar c2 (dtr 90) height))&lt;BR /&gt;(setq c4 (polar c3 (dtr 180) width))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;Calculate Jamb Points&lt;BR /&gt;(setq j1 (polar c1 (dtr 180) 2))&lt;BR /&gt;(setq j2 (polar j1 (dtr 0) (+ width 4)))&lt;BR /&gt;(setq j3 (polar j2 (dtr 90) (+ height 2)))&lt;BR /&gt;(setq j4 (polar j3 (dtr 180) (+ width 4)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;Draw Clear Opening&lt;BR /&gt;(command "._PLINE" c1 c2 c3 c4 "c")&lt;/P&gt;
&lt;P&gt;;Draw Jamb&lt;BR /&gt;(command "._PLINE" j1 j2 j3 j4 "c")&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 20:02:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738251#M89715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-17T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Betreff: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738293#M89716</link>
      <description>&lt;P&gt;You knowing that there is a command that can draw a closed polyline by w&amp;amp;h?&lt;/P&gt;
&lt;P&gt;Rectang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, you are using native autocad commands to create your pline,&lt;/P&gt;
&lt;P&gt;in this case you have to controle the objectsnap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set osnapcoord to 1 in your lisp first,&lt;/P&gt;
&lt;P&gt;or add "_non" in front of every coordinate input in your command sequence.&lt;/P&gt;
&lt;P&gt;Or handle with osmode setting, but think about re-set the original value, also in case of errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 20:20:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738293#M89716</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-04-17T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738423#M89717</link>
      <description>&lt;P&gt;Try this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:test ()
(setq cosmode (getvar "OSMODE"))
(setvar "OSMODE" 0)
(setq width (getreal "\nEnter width: "))
(setq height (getreal "\nEnter height: "))
; Set First Clear Opening Point on Click
(setq c1 (getpoint "\nSelect Insertion Point:"))
 
;Calculate Clear Opening Points
(setq c2 (polar c1 0 width))
(setq c3 (polar c2 (/ pi 2) height))
(setq c4 (polar c3 pi width))
 
;Calculate Jamb Points
(setq j1 (polar c1 pi 2))
(setq j2 (polar j1 0 (+ width 4)))
(setq j3 (polar j2 (/ pi 2) (+ height 2)))
(setq j4 (polar j3 pi (+ width 4)))
 
;Draw Clear Opening
(command "._PLINE" c1 c2 c3 c4 "c")
;Draw Jamb
(command "._PLINE" j1 j2 j3 j4 "c")
(setvar "OSMODE" cosmode)
(princ)
)&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 21:30:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738423#M89717</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2019-04-17T21:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738486#M89718</link>
      <description>Have you tried:&lt;BR /&gt;;Draw Clear Opening&lt;BR /&gt;(command "._PLINE" "_non" c1 "_non" c2 "_non" c3 "_non" c4 "c")&lt;BR /&gt;&lt;BR /&gt;;Draw Jamb&lt;BR /&gt;(command "._PLINE" "_non" j1 "_non" j2 "_non" j3 "_non" j4 "c")&lt;BR /&gt;&lt;BR /&gt;Or:&lt;BR /&gt;before drawing the lines&lt;BR /&gt;(if (&amp;lt; (getvar "OSMODE") 16384) (setvar "OSMODE" (+ (getvar "OSMODE") 16384)))&lt;BR /&gt;after drawing the lines&lt;BR /&gt;(if (&amp;gt; (getvar "OSMODE") 16384) (setvar "OSMODE" (- (getvar "OSMODE") 16384)))&lt;BR /&gt;&lt;BR /&gt;What is this?&lt;BR /&gt;It turns off OSMODE and if an error occurs, the user can simply&lt;BR /&gt;click on the button in the status line to turn back on.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2019 22:07:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8738486#M89718</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2019-04-17T22:07:21Z</dc:date>
    </item>
    <item>
      <title>Betreff: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8745804#M89719</link>
      <description>&lt;P&gt;The code already has snap control built in so this is not it. It is not snapping to existing lines, they are specific points in space that are reproduce-able and the same every time.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 22 Apr 2019 18:28:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8745804#M89719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-22T18:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8745808#M89720</link>
      <description>&lt;P&gt;I should have stated that i disable snapping in the code. I did not paste the whole code just the portion asking for input and then drawing. The lines it creates do not snap to existing entities, they are drawn to specific points in space that are the same every time. The points are not the points that I direct the lines to draw to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the actual code that I have tried to run. This is simplified down to the bare bones and still refuses to draw to the correct points on only one user's computer. I do not know the system variable that is doing this. The first lines draw correctly (c1-4), and the following ones do not (j1-4). When I check the points j1-4, they are calculated correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 18:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8745808#M89720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-22T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8746079#M89721</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just fyi, both plines ARE being created when using your posted LISP...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 294px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/628707iA2856979E2600C4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What units are you using by chance? I use architectural, and from a distance mine APPEARS to be perfectly overlapped (they're not). But when I create a smaller version they are clearly not overlapped..&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Architectural (large distances)" style="width: 328px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/628708i11332511200F5EA2/image-dimensions/328x357?v=v2" width="328" height="357" role="button" title="image.png" alt="Architectural (large distances)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Architectural (large distances)&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Architectural (small distances)" style="width: 314px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/628709iC10F6BCF7EC0A545/image-dimensions/314x322?v=v2" width="314" height="322" role="button" title="image.png" alt="Architectural (small distances)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Architectural (small distances)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 20:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8746079#M89721</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2019-04-22T20:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747769#M89722</link>
      <description>&lt;P&gt;They should not be overlapping as shown below. The issue on my coworker's computer is not that both lines don't get drawn. The inner box always draws correctly with the correct width and correct locations. The second polyline does not draw correctly (and subsequent mtexts, dimensions, etc do not draw correctly). It should draw to points j1-4 but it does not, even though when I look at the j1-4 values they are correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 364px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/628971iE44609538966EFF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 14:57:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747769#M89722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-23T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747845#M89723</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears your code is drawing exactly as you state it to be..&lt;/P&gt;
&lt;P&gt;For J points (assuming default direction is set to EAST, and COUNTERCLOCKWISE direction)..&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/628995iCE152807423244D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the desired end-state you are looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747845#M89723</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2019-04-23T15:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747855#M89724</link>
      <description>&lt;P&gt;I have tested this on over 10 computers and it works correctly on all but one of them. Both Autocad 2018 AND Autocad 2016 are installed on this computer and it does not work in either version. There must be a system variable enabled on his computer that is causing this but I have had no luck after days of research.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:20:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747855#M89724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-23T15:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747875#M89725</link>
      <description>&lt;P&gt;This is what it looks like on the problem computer running the exact same code that I uploaded. The points j1-j4 were calculated correctly and have the correct values stored in these. The second polyline does not draw to these points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 658px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/629000i710887B9F64D764D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:26:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747875#M89725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-23T15:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747880#M89726</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try comparing these 2 between the "good" computers and the "bad" computer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-LT/files/GUID-A432574D-35B6-4D9E-8D8F-4259F2066234-htm.html" target="_blank" rel="noopener"&gt;ANGDIR&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-B7CAB5F3-16BC-4E06-97BC-AAAEC052727E-htm.html" target="_blank" rel="noopener"&gt;ANGBASE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:29:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747880#M89726</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2019-04-23T15:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747915#M89727</link>
      <description>&lt;P&gt;They are both 0 on both machines&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:40:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747915#M89727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-23T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747945#M89728</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you.. turn off your OSNAPS, copy/paste this into your command line, then select a point, and post the results?&lt;/P&gt;
&lt;PRE&gt;(progn
(setq width 4.0 height 4.0)
(setq c1 (getpoint "\nSelect Point: "))
(setq c2 (polar c1 0.0 width))
(setq c3 (polar c2 (* 0.5 pi) height))
(setq c4 (polar c3 pi width))
(setq j1 (polar c1 pi 2.0))
(setq j2 (polar j1 0.0 (+ width 4.0)))
(setq j3 (polar j2 (* 0.5 pi) (+ height 2.0)))
(setq j4 (polar j3 pi (+ width 4.0)))
(command "._PLINE" c1 c2 c3 c4 "c")
(command "._PLINE" j1 j2 j3 j4 "c"))&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:54:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8747945#M89728</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2019-04-23T15:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748161#M89729</link>
      <description>&lt;P&gt;This seemed to work so I changed the code to use radians instead of the dtr function as shown in the attached and it still does not work as expected. Next I hard coded the width and height values and it still didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the difference in the way the code is working vs copy pasting this directly into the command line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 17:26:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748161#M89729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-23T17:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748268#M89730</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using reals instead of integers.. That was the other thing I changed. I have attached it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:12:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748268#M89730</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2019-04-23T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748311#M89731</link>
      <description>&lt;P&gt;Wasn't it either. See image below. This is truly mind boggling.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 641px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/629070i50C4B6F8C15DD8E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:33:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748311#M89731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-23T18:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748335#M89732</link>
      <description>&lt;P&gt;The points j1 through j4 are all what is expected when i type in !j1 etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;j1 = -2,0&lt;/P&gt;
&lt;P&gt;j2 = 44,0&lt;/P&gt;
&lt;P&gt;j3 = 44,86&lt;/P&gt;
&lt;P&gt;j4 = -2,86&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are the points that it ACTUALLY draws to.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dimensions.png" style="width: 641px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/629072i6088BCA7FA286881/image-size/large?v=v2&amp;amp;px=999" role="button" title="dimensions.png" alt="dimensions.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;*j2 and j3 should read w+2 not 2w+2&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:46:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748335#M89732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-23T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748529#M89733</link>
      <description>&lt;P&gt;Maybe try this ( lightly tested and not sure what the result should look like )... removes command calls and POLAR.&lt;/P&gt;
&lt;PRE&gt;(defun c:foo (/ _addlwpolyline a c c1 d height j1 j2 j3 j4 width)
  (defun _addlwpolyline	(layer width ptlst 0or1)
    (entmakex (apply 'append
		     (list (list '(0 . "LWPOLYLINE")
				 (cons 100 "AcDbEntity")
				 (cons 8 layer)
				 (cons 100 "AcDbPolyline")
				 (cons 90 (length ptlst))
				 (cons 43 width)
				 (cons 38 (caddr (trans '(0 0 0) 1 (trans '(0. 0. 1.) 1 0))))
				 (cons 70 0or1)
			   )
			   (mapcar (function (lambda (x) (list 10 (car x) (cadr x)))) ptlst)
			   (list (cons 210 (trans '(0. 0. 1.) 1 0)))
		     )
	      )
    )
  )
  (cond	((setq c1 (getpoint "\nSelect Insertion Point:"))
	 (setq a c1)
	 (setq width 42.0)
	 (setq height 84.0)
	 (setq c (list '(0 0 0) (list width 0 0) (list 0 height 0) (list (- width) 0 0)))
	 (setq d
		(list '(-2 0 0) (list (+ width 4) 0 0) (list 0 (+ height 2) 0) (list (- (+ width 4)) 0 0))
	 )
	 (_addlwpolyline "DOOR" 0 (mapcar '(lambda (x) (setq a (mapcar '+ a x))) c) 1)
	 (_addlwpolyline "DOOR" 0 (mapcar '(lambda (x) (setq c1 (mapcar '+ c1 x))) d) 1)
	)
  )
  (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 20:28:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748529#M89733</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-04-23T20:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Code doesn't work on coworker's computer in Autocad 18 OR 16</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748577#M89734</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my go at it..&lt;/P&gt;
&lt;PRE&gt;(defun c:ENTRANCEELEVATION ( / osm lyr w h pBase pTmp)
&lt;FONT color="#FF9900"&gt;;Store vars&lt;/FONT&gt;
(setq osm (getvar 'OSMODE) lyr (getvar 'CLAYER))
&lt;FONT color="#FF9900"&gt;;Get user input&lt;/FONT&gt;
(initget 7) (setq w (getdist "\nEnter Entrance Width: "))
(initget 7) (setq h (getdist "\nEnter Entrance Height: "))
(initget 1) (setq pBase (getpoint "\nSelect Insertion Point: ")) (princ pBase)
&lt;FONT color="#FF9900"&gt;;Prep for drawing&lt;/FONT&gt;
(setq pTmp (list (+ w (car pBase)) (+ h (cadr pBase))))
(setvar 'OSMODE (logior 16384 osm)) (setvar 'CLAYER "DOOR")
&lt;FONT color="#FF9900"&gt;;Draw&lt;/FONT&gt;
(command "_.RECTANG" pBase pTmp)&lt;FONT color="#33CCCC"&gt;;inner&lt;/FONT&gt;
(setq pBase (list (- (car pBase) 2.0) (cadr pBase))
      pTmp (list (+ 2.0 (car pTmp)) (+ 2.0 (cadr pTmp))))
(command "_.RECTANG" pBase pTmp)&lt;FONT color="#33CCCC"&gt;;outer&lt;/FONT&gt;
&lt;FONT color="#FF9900"&gt;;Restore &amp;amp; Finish&lt;/FONT&gt;
(setvar 'OSMODE osm) (setvar 'CLAYER lyr)
(prompt "Complete...")
(princ)
)&lt;FONT color="#33CCCC"&gt;;defun&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 21:23:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/code-doesn-t-work-on-coworker-s-computer-in-autocad-18-or-16/m-p/8748577#M89734</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2019-04-23T21:23:05Z</dc:date>
    </item>
  </channel>
</rss>

