<?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: insert coordinates not in the spot specified in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967806#M135573</link>
    <description>&lt;P&gt;Nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; that did the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still not sure why it all stopped working in the first place but this was the last part that needed to be fixed I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2015 00:48:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-30T00:48:17Z</dc:date>
    <item>
      <title>insert coordinates not in the spot specified</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967684#M135568</link>
      <description>&lt;P&gt;Ok this is a really wierd one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the insert is not putting it in the spot specified. &amp;nbsp;The coordinates in the insert is correct but it puts the object in a different spot for the first time but is correct the rest of the time???? &amp;nbsp; It's driving me crazy lol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;projmode is set to 0&lt;/P&gt;&lt;P&gt;osnap os off&amp;nbsp;&lt;/P&gt;&lt;P&gt;grid is off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It just started doing this recently....I think after I upgraded to windows 10. &amp;nbsp;Before that it all worked fine.&lt;/P&gt;&lt;P&gt;I added in the freeze and thaw layers to try and correct it, which worked for the rest of the program.but doesn't seem to work here.&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;This is the part of the program that is still acting up... any ideason what is going on????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		(repeat	ldspnm2
		  (setq	ladsuppt
			 (list Tankofmv
			       (+ (+ TANKTOCYL CALC1) EPL1)
			       ldspstart
			 )
		  )
		  (command "-view" "o" "t")
  (prompt "\n")
  (princ "ladsuppt : ")
  (princ ladsuppt)
  (prompt "\n")
		  (command "layer" "f" "*" "")
		  (command
		    "_insert"
		    "C:/3D Storage Tank Generator/3D files/Ladders/Ladder Supports.DWG"
		    ladsuppt
		    ""
		    ""
		    ""
		   )		  
		  (command "layer" "thaw" "*")
		  (command "explode" "l" "")
		  (setq ldspstart (+ ldspstart ldspspc))
		  (setq CNTR 0)
		  (setq TKCHT1 0)
		  (setq TKCHT2 (nth 0 TCHT))
		  (if (&amp;lt;= TKCHT1 0)
		    (setq TKCHT1 (- TKCHT1 THGT))
		  )
		  (if (&amp;lt; TKCHT2 0)
		    (setq TKCHT2 (- TKCHT2 THGT))
		  )
		  (repeat NC
		    (cond
		      (
		       (and (&amp;lt; TKCHT1 ldspstart) (&amp;gt; TKCHT2 ldspstart))
		       (setq CTHK (nth CNTR TCTT))
		       (setq crsnum CNTR)
		       (setq
			 rpdx1a
			  (- (* TANKTOCYL -1) (+ BTR (/ CTHK 2)))
		       )
		      )
		    )
		    (setq TKCHT1 (+ TKCHT1 (nth CNTR TCHT)))
		    (setq CNTR (+ CNTR 1))
		    (if	(/= (nth CNTR TCHT) nil)
		      (setq TKCHT2 (+ TKCHT2 (nth CNTR TCHT)))
		    )
		  )
		  (setq rpdy1 (* (* THGT 2) -1))
		  (setq rpdy2 (* THGT 2))
		  (setq pltrpd 2)
		  (setq cnt 1)
		  (repeat pltrpd
		    (cond
		      (
		       (= cnt 1)
		       (setq pltlyr "SupTrim3")
		       (setq rpdx1 rpdx1a)
		       (setq sptrm "SupTrim1")
		      )
		      (
		       (= cnt 2)
		       (setq pltlyr "SupTrim4")
		       (setq rpdx1 rpdx1a)
		       (setq sptrm "SupTrim2")
		      )
		    )		    
		    (setq rpdx2 (- rpdx1 0.25))
		    (command "-view" "o" "ba")
		    (command "zoom" "W" winpt1 winpt2)
		    (setq ss   (ssget "X" (list (cons 8 pltlyr)))
			  cntr (1- (sslength ss))
		    )
		    (setq ssent nil)
		    (while
		      (&amp;gt;= cntr 0)
		       (setq
			 ssent (append ssent (list (ssname ss cntr)))
		       )
		       (setq cntr (1- cntr))
		    )
		    (setvar 'clayer pltlyr)
		    (command "extrude" (nth 0 ssent) "" -72)
		    (command "-view" "o" "l")
		    (command "zoom" "W" winpt1 winpt2)
		    (setq PT1 (list rpdx1 rpdy1 (* Tankofmv -1)))
		    (setq PT2 (list rpdx2 rpdy2 (* Tankofmv -1)))
		    (command "layer" "f" "*" "")
		    (command "rectangle" PT1 PT2)
		    (setq
		      PT1
		       (list (* TANKTOCYL -1) rpdy1 (* Tankofmv -1))
		    )
		    (setq
		      PT2
		       (list (* TANKTOCYL -1) rpdy2 (* Tankofmv -1))
		    )
		    (command "revolve" "l" "" PT1 PT2 "" "")
		    (command "layer" "thaw" "*" "")
		    (setq winpt1 (list TDIA (- TDIA (* TDIA 6))))
		    (setq winpt2 (list (- TDIA (* TDIA 2)) TDIA))
		    (setq ss   (ssget "X" (list (cons 8 pltlyr)))
			  cntr (1- (sslength ss))
		    )
		    (setq ssent nil)
		    (while
		      (&amp;gt;= cntr 0)
		       (setq
			 ssent (append ssent (list (ssname ss cntr)))
		       )
		       (setq cntr (1- cntr))
		    )
		    (command "intersect" (nth 0 ssent) (nth 1 ssent) "")
		    (setq ss   (ssget "X" (list (cons 8 pltlyr)))
			  cntr (1- (sslength ss))
		    )
		    (setq ssent nil)
		    (while
		      (&amp;gt;= cntr 0)
		       (setq
			 ssent (append ssent (list (ssname ss cntr)))
		       )
		       (setq cntr (1- cntr))
		    )
		    (setq elist (entget (nth 0 ssent)))
		    (setq
		      elist
		       (subst (cons 8 "Repad") (assoc 8 elist) elist)
		    )
		    (entmod elist)
		    (setq cnt (+ cnt 1))
		    (setvar 'clayer "Pipe2")
		    (setq PT1 (list (+ rpdx1 36) rpdy1 (* Tankofmv -1)))
		    (setq PT2 (list rpdx2 rpdy2 (* Tankofmv -1)))
		    (command "layer" "f" "*" "")
		    (command "rectangle" PT1 PT2)
		    (setq
		      PT1
		       (list (* TANKTOCYL -1) rpdy1 (* Tankofmv -1))
		    )
		    (setq
		      PT2
		       (list (* TANKTOCYL -1) rpdy2 (* Tankofmv -1))
		    )
		    (command "revolve" "l" "" PT1 PT2 "" "")
		    (command "layer" "thaw" "*" "")
		    (setq ss1  (ssget "X" (list (cons 8 sptrm)))
			  cntr (1- (sslength ss1))
		    )
		    (setq ssent1 nil)
		    (while
		      (&amp;gt;= cntr 0)
		       (setq
			 ssent1
			  (append ssent1 (list (ssname ss1 cntr)))
		       )
		       (setq cntr (1- cntr))
		    )
		    (setq ss2  (ssget "X" (list (cons 8 "Pipe2")))
			  cntr (1- (sslength ss2))
		    )
		    (setq ssent2 nil)
		    (while
		      (&amp;gt;= cntr 0)
		       (setq
			 ssent2
			  (append ssent2 (list (ssname ss2 cntr)))
		       )
		       (setq cntr (1- cntr))
		    )
		    (command "subtract"
			     (nth 0 ssent1)
			     ""
			     (nth 0 ssent2)
			     ""
		    )
		    (setq ss1  (ssget "X" (list (cons 8 sptrm)))
			  cntr (1- (sslength ss1))
		    )
		    (setq ssent1 nil)
		    (while
		      (&amp;gt;= cntr 0)
		       (setq
			 ssent1
			  (append ssent1 (list (ssname ss1 cntr)))
		       )
		       (setq cntr (1- cntr))
		    )
		    (setq elist (entget (nth 0 ssent1)))
		    (setq
		      elist
		       (subst (cons 8 "LADSup") (assoc 8 elist) elist)
		    )
		    (entmod elist)
		  )			;***********************************
		)&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Dec 2015 21:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967684#M135568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-29T21:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: insert coordinates not in the spot specified</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967783#M135569</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There seems to be a lot of code there that is not related to the issue...&lt;/P&gt;
&lt;P&gt;and the important code that sets the insertion point is untestable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the value difference between the &lt;STRONG&gt;actual insertion point&lt;/STRONG&gt; and the variable&amp;nbsp;&lt;STRONG&gt;ladsuppt ?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 23:45:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967783#M135569</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2015-12-29T23:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: insert coordinates not in the spot specified</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967791#M135570</link>
      <description>&lt;P&gt;and what is the value for&lt;/P&gt;
&lt;P&gt;ldspnm2&lt;BR /&gt;Tankofmv&lt;BR /&gt;TANKTOCYL&lt;/P&gt;
&lt;P&gt;CALC1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;EPL1&lt;BR /&gt; ldspstart&lt;BR /&gt;ldspspc&lt;/P&gt;
&lt;P&gt;TCHT&lt;/P&gt;
&lt;P&gt;NC&lt;/P&gt;
&lt;P&gt;TCTT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc, etc, etc&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 23:53:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967791#M135570</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2015-12-29T23:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: insert coordinates not in the spot specified</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967797#M135571</link>
      <description>&lt;P&gt;The first time through ladsuppt is (1320.0,-1092.94,-151.0) but it places it at (1305.25, -1086.9375, -35) every other time it goes through it places it in the correct spot.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 00:11:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967797#M135571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T00:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: insert coordinates not in the spot specified</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967804#M135572</link>
      <description>&lt;P&gt;Check OSNAPZ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but personally I would put "_none" as osnap in front of each point inserting with command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(command
		    "_insert"
		    "C:/3D Storage Tank Generator/3D files/Ladders/Ladder Supports.DWG"
		    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"_none"&lt;/STRONG&gt;&lt;/FONT&gt; ladsuppt
		    ""
		    ""
		    ""
		   )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 00:35:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967804#M135572</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-12-30T00:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: insert coordinates not in the spot specified</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967806#M135573</link>
      <description>&lt;P&gt;Nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; that did the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still not sure why it all stopped working in the first place but this was the last part that needed to be fixed I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 00:48:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-coordinates-not-in-the-spot-specified/m-p/5967806#M135573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T00:48:17Z</dc:date>
    </item>
  </channel>
</rss>

