<?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 cutsheets or matchlines auto populate in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12802645#M13407</link>
    <description>&lt;P&gt;I have created a script that does zoom to sheets and set the sheet as needed now i am looking for some help with a script that will populae the cutsheets or matchsheets in paperspace for the sheets that are sitting next to the set sheet in model space. I have created blocks called&amp;nbsp;&lt;SPAN&gt;"MATCHLINE TOP",&amp;nbsp; "MATCHLINE BOTTOM",&amp;nbsp; "MATCHLINE RIGHT",&amp;nbsp; "MATCHLINE LEFT". I am trying to get them to populate correctly where they are needed and if not needed then not to be placed. and help would be greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 16:24:33 GMT</pubDate>
    <dc:creator>djharo71</dc:creator>
    <dc:date>2024-05-28T16:24:33Z</dc:date>
    <item>
      <title>cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12802645#M13407</link>
      <description>&lt;P&gt;I have created a script that does zoom to sheets and set the sheet as needed now i am looking for some help with a script that will populae the cutsheets or matchsheets in paperspace for the sheets that are sitting next to the set sheet in model space. I have created blocks called&amp;nbsp;&lt;SPAN&gt;"MATCHLINE TOP",&amp;nbsp; "MATCHLINE BOTTOM",&amp;nbsp; "MATCHLINE RIGHT",&amp;nbsp; "MATCHLINE LEFT". I am trying to get them to populate correctly where they are needed and if not needed then not to be placed. and help would be greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 16:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12802645#M13407</guid>
      <dc:creator>djharo71</dc:creator>
      <dc:date>2024-05-28T16:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12805712#M13408</link>
      <description>&lt;P&gt;Try this attached code &lt;STRONG&gt;Cutsheets.lsp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It only works if each of the borders overlap each other and not cross over which your original dwg had &lt;STRONG&gt;04&lt;/STRONG&gt; crossing over &lt;STRONG&gt;06&lt;/STRONG&gt;. But once I moved &lt;STRONG&gt;04&lt;/STRONG&gt; on top of &lt;STRONG&gt;06&lt;/STRONG&gt; then the code works.&lt;/P&gt;&lt;P&gt;Your original dwg with &lt;STRONG&gt;04&lt;/STRONG&gt; crossing over &lt;STRONG&gt;06&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1717006333621.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1369151i134D6008A066508D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1717006333621.png" alt="paullimapa_0-1717006333621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attached revised dwg with &lt;STRONG&gt;04&lt;/STRONG&gt; overlapping &lt;STRONG&gt;06&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1717006386162.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1369152iC65C3968C587A5EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1717006386162.png" alt="paullimapa_1-1717006386162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 18:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12805712#M13408</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-29T18:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12805975#M13409</link>
      <description>You are awesome thank you for all the help.&lt;BR /&gt;I need to write one more that will total up all the material for some fiber work if you would be interested my boss will pay you very well. If you are not interested but know a program who would be please let me know. We are doing a lot of fiber networking for internet services and have to have accurate totals for each project. It takes along time to do by hand and there is way to much human error, so we are wanting to automate it to eliminate those problem. If you would like to discuss further feel free to email me at djharo71@gmail.com&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2024 20:13:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12805975#M13409</guid>
      <dc:creator>djharo71</dc:creator>
      <dc:date>2024-05-29T20:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12806050#M13410</link>
      <description>&lt;P&gt;Again post this as a new topic with sample drawings that contain objects that represent the fiber material. Someone may take this challenge up as well....cheers!!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 20:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12806050#M13410</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-29T20:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12806981#M13411</link>
      <description>&lt;P&gt;and another one&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:set_match_lines (/ sheets_sset sheets_list llc ruc sheet_center sheet_half_dims point_1 point_2 point_3 point_4 fence_line
						 	adjacent_sset adjacent_list llc_2 ruc_2 adjacent_sheet_number match_sheet_sset 
						 )
	(setvar 'ctab "model")
	(if (if (setq sheets_sset (ssget "_x" '((0 . "insert") (66 . 1))))
			(setq sheets_list (vl-remove-if-not '(lambda (insert) (= "SHEETS" (vla-get-effectivename (vlax-ename-&amp;gt;vla-object insert))))
												 (vl-remove-if 'listp (mapcar 'cadr (ssnamex sheets_sset)))
							  )
			)
		)
		(foreach sheet sheets_list
			(vla-getboundingbox (vlax-ename-&amp;gt;vla-object sheet) 'llc 'ruc)
			(setq llc (vlax-safearray-&amp;gt;list llc)
				  ruc (vlax-safearray-&amp;gt;list ruc)
				  sheet_center (mapcar '* '(0.5 0.5) (mapcar '+ llc ruc))
				  sheet_half_dims (mapcar '* '(0.5 0.5) (mapcar 'abs (mapcar '- ruc llc)))
				  point_1 (mapcar '+ (list (* -0.05 (car sheet_half_dims)) (* -0.05 (cadr sheet_half_dims))) llc)
				  point_2 (mapcar '+ (list (* -0.05 (car sheet_half_dims)) (* 0.05 (cadr sheet_half_dims))) (list (car llc) (cadr ruc)))
				  point_3 (mapcar '+ (list (* 0.05 (car sheet_half_dims)) (* 0.05 (cadr sheet_half_dims))) ruc)
				  point_4 (mapcar '+ (list (* 0.05 (car sheet_half_dims)) (* -0.05 (cadr sheet_half_dims))) (list (car ruc) (cadr llc)))
			)
		  	(princ "\n\n=====================")
			(princ (strcat "\nAnalyzing sheet: "(getpropertyvalue sheet "sheet_number")))
		  	(princ "\n=====================")
			(foreach side '("top" "bottom" "left" "right")
				(setq fence_line (cond 
						   			((= "top" side) (list point_2 point_3)) 
						   			((= "bottom" side) (list point_1 point_4)) 
						   			((= "left" side) (list sheet_center (polar sheet_center pi (* 1.05 (car sheet_half_dims))))) 
						   			((= "right" side) (list sheet_center (polar sheet_center 0 (* 1.05 (car sheet_half_dims))))) 
								 )
				)
			  	(princ (strcat "\nMatchline " side ": "))
				(cond 
					((and
				      	 (setq adjacent_sset (ssget "_f" fence_line '((0 . "insert") (66 . 1))))
					 	 (setq adjacent_list (vl-remove sheet (vl-remove-if-not '(lambda (insert) (= "SHEETS" (vla-get-effectivename (vlax-ename-&amp;gt;vla-object insert))))
					 			 			   									 (vl-remove-if 'listp (mapcar 'cadr (ssnamex adjacent_sset)))    
					 				    	 				  )
					 		    			 )
						 )
				     )
						(if (or (= "bottom" side) (= "top" side))
						 	(setq adjacent_list (vl-remove-if '(lambda (sheet) (progn (vla-getboundingbox (vlax-ename-&amp;gt;vla-object sheet) 'llc_2 'ruc_2)
															  (or
															      (&amp;gt; (car llc) (car (vlax-safearray-&amp;gt;list ruc_2)))
																  (&amp;lt; (car ruc) (car (vlax-safearray-&amp;gt;list llc_2)))
																  (= (car llc) (car (vlax-safearray-&amp;gt;list ruc_2)))
																  (= (car ruc) (car (vlax-safearray-&amp;gt;list llc_2)))
															  )
												   )
										  	   )
											   adjacent_list
									)
												    
							)
					  	)
						(cond
						  ((null adjacent_list) (setq adjacent_sheet_number ""))  
						  ((= 1 (length adjacent_list)) (setq adjacent_sheet_number (getpropertyvalue (car adjacent_list) "sheet_number")))
						  (t (setq adjacent_sheet_number (apply 'strcat (cdr (apply 'append (mapcar '(lambda (sheet) (list "," (getpropertyvalue sheet "sheet_number"))) adjacent_list))))))
						)
					)
					( t (setq adjacent_sheet_number ""))
				)
			  	(princ adjacent_sheet_number)
				(if (and
						 (setq match_sheet_sset (ssget "_x" (list '(0 . "insert") (cons 2 (strcat (strcat "matchline " side) "," (strcat "matchline_" side))) (cons 410 (getpropertyvalue sheet "sheet_number")))))
						 (= 1 (sslength match_sheet_sset))
					)
						(setpropertyvalue (ssname match_sheet_sset 0) "nextpage" adjacent_sheet_number)
				)
			)
		)
	)
	(princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 May 2024 08:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/12806981#M13411</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-05-30T08:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/13253034#M13412</link>
      <description>&lt;P&gt;hey, so you say you&amp;nbsp;&lt;SPAN&gt;created a script that does zoom to sheets and set the sheet as needed. This mean it will auto and center the sheets into paper space? If so, is this a script?&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 01:55:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/13253034#M13412</guid>
      <dc:creator>bryanwork89</dc:creator>
      <dc:date>2025-01-10T01:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/13253406#M13413</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16387068"&gt;@bryanwork89&lt;/a&gt;&amp;nbsp;have a look at this. One way to make rectangs.&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;</description>
      <pubDate>Fri, 10 Jan 2025 08:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/13253406#M13413</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-01-10T08:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: cutsheets or matchlines auto populate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/13270345#M13414</link>
      <description>&lt;P&gt;you have the lsp for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 20:12:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cutsheets-or-matchlines-auto-populate/m-p/13270345#M13414</guid>
      <dc:creator>bryanwork89</dc:creator>
      <dc:date>2025-01-19T20:12:47Z</dc:date>
    </item>
  </channel>
</rss>

