<?xml version="1.0" encoding="windows-1250" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>CAD F&#243;rum : polyline - length</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : AutoCAD : polyline - length]]></description>
  <pubDate>Sat, 06 Jun 2026 06:39:12 +0000</pubDate>
  <lastBuildDate>Tue, 26 Oct 2010 20:00:44 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum/RSS_post_feed.asp?TID=11726</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD F&#243;rum]]></title>
   <url>https://www.cadforum.cz/forum/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum/</link>
  </image>
  <item>
   <title><![CDATA[polyline - length : Nemus&#237;te ani nic programovat -...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56773&amp;title=polyline-length#56773</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9">Vladimír Michl</a><br /><strong>Předmět:</strong> 11726<br /><strong>Zasláno:</strong> 26.říj.2010 v 20:00<br /><br />Nemusíte ani nic programovat - pro zobrazení délky můžete použít standardní příkaz &#091;CMD&#093;TPOLE&#091;/CMD&#093;, pro celkovou délku pak AddLen nebo prostě výkaz &#091;CMD&#093;EXTRDATA&#091;/CMD&#093;.]]>
   </description>
   <pubDate>Tue, 26 Oct 2010 20:00:44 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56773&amp;title=polyline-length#56773</guid>
  </item> 
  <item>
   <title><![CDATA[polyline - length : Podobn&#253;ch funkc&#237; je n&#283;kolik, bu&#271;...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56765&amp;title=polyline-length#56765</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=270">PepaR</a><br /><strong>Předmět:</strong> 11726<br /><strong>Zasláno:</strong> 26.říj.2010 v 18:50<br /><br /><DIV>Podobných funkcí je několik, buď Vámi uváděný lisp nebo např. <strong>fArea</strong> od Xanadu.</DIV><span style="font-size:10px"><br /><br />Upravil PepaR - 26.říj.2010 v 19:30</span>]]>
   </description>
   <pubDate>Tue, 26 Oct 2010 18:50:55 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56765&amp;title=polyline-length#56765</guid>
  </item> 
  <item>
   <title><![CDATA[polyline - length : tak uz som tento problem vyriesil...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56764&amp;title=polyline-length#56764</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4658">DodoSVK</a><br /><strong>Předmět:</strong> 11726<br /><strong>Zasláno:</strong> 26.říj.2010 v 15:33<br /><br />tak uz som tento problem vyriesil no pre ostatnych ktory budu riesit podobny problem tu je jedno z moznych rieseni...<DIV>&nbsp;</DIV><DIV>je to pomocou lispu a tu je script</DIV><DIV>&nbsp;</DIV><DIV>je to z ineho fora, takze vdaka povodnemu autorovi.</DIV><DIV>&nbsp;</DIV><DIV>;;;=======================&#091; Length.lsp &#093;=========================<BR>;;; Author: Copyright© 2005 Charles Alan Butler <BR>;;; Version: 1.0 July 12, 2005<BR>;;; Purpose: display the length of a selected objects<BR>;;; and a running total<BR>;;; Sub_Routines: -None <BR>;;; Returns: -NA <BR>;;;=============================================== ===============<BR>;|<BR>I know there are many fine "Length" routines around.<BR>This is my version and it allows the user to pick each object &amp; displays<BR>the length &amp; a running total on the command line.<BR>An option at start up lets the user optionally put the result in the drawing.<BR>The text is placed at the user pick point and the current text style &amp; layer are used.<BR>The options for text insert are:<BR>None - No text is inserted, this is the default<BR>Each - Text is inserted after each object is selected<BR>Total - Text is inserted only at the end of all selections &amp; only the total is inserted.<BR><BR>Exit the routine by pressing Enter or picking nothing<BR>Pressing C enter will clear the total<BR>Pressing Enter while placing the text will skip the insert for that object.<BR>|;<BR>(defun c:length (/ en len pt txt ent_allowed total_len typ)<BR>(vl-load-com)<BR>(defun put_txt (txt / pt)<BR>;; Check if the drawing height is set to 0: <BR>(if (setq pt (getpoint "\nPick Text Location..."))<BR>(if (= 0 (cdr (assoc 40<BR>(tblsearch "style"<BR>(getvar "textstyle")))))<BR>(command "text" "non" pt "" "0" txt)<BR>(command "text" "non" pt "0" txt)<BR>) ; endif<BR>(prompt "\n*** Text Insert skipped ***")<BR>)<BR>)<BR><BR>(initget "Each Total None" )<BR>(setq txt_opt (getkword "\nPut text in drawing for &#091;Each/Total/None&#093;. &lt;None&gt;"))<BR>(or txt_opt (setq txt_opt "None"))<BR><BR><BR>(setq ent_allowed '("LINE" "LWPOLYLINE" "POLYLINE" "SPLINE" "ARC" "CIRCLE")<BR>total_len 0<BR>)<BR>(while (or (initget "C")<BR>(setq en (entsel "\nPick object for length, C to clear total."))<BR>)<BR>(if (= "C" en)<BR>(progn<BR>(if (member txt_opt '("Each" "Total"))<BR>(put_txt (strcat "Total "(rtos total_len)))<BR>)<BR>(setq total_len 0) ; clear length total<BR>)<BR>(progn<BR>(setq en (car en))<BR>(if (member (setq typ (cdr (assoc 0 (entget en)))) ent_allowed)<BR>(progn<BR>(setq<BR>len (vlax-curve-getdistatparam en (vlax-curve-getendparam en))<BR>)<BR>(setq total_len (+ len total_len))<BR>(princ (strcat "\n"typ " length = " (rtos len)<BR>" Running total is " (rtos total_len))<BR>)<BR>(if (= txt_opt "Each") (put_txt (rtos len)))<BR>) ; progn<BR>(alert "Not a valid object for length")<BR>)<BR>)<BR>)<BR><BR>)<BR>(and (not (zerop total_len))<BR>(princ (strcat "\nTotal length is " (rtos total_len)))<BR>(if (member txt_opt '("Each" "Total"))<BR>(put_txt (strcat "Total "(rtos total_len)))<BR>)<BR>)<BR>(princ)<BR>)<BR>(prompt "\nGet Length loaded, Enter length to run")<BR>(princ)</DIV>]]>
   </description>
   <pubDate>Tue, 26 Oct 2010 15:33:38 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56764&amp;title=polyline-length#56764</guid>
  </item> 
  <item>
   <title><![CDATA[polyline - length : Dobry den, chcel by som vas, skusenejsich,...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56763&amp;title=polyline-length#56763</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4658">DodoSVK</a><br /><strong>Předmět:</strong> 11726<br /><strong>Zasláno:</strong> 26.říj.2010 v 15:18<br /><br />Dobry den, chcel by som vas, skusenejsich, opat poziadat o pomoc pri rieseni tejto veci:<DIV>&nbsp;</DIV><DIV>Potrebujem casto krat zmerat dlzku polyline. Pokial je len jedna tak to nieje problem. V Properties si pozriem hodnotu length. Pokial ich je viac a potrebujem&nbsp;sucet ich dlzok,&nbsp;tak ich najprv cez pEdit spojim do jednej a potom si pozriem vyslednu hodnotu length. Toto sa vsak da robit len za predpokladu ze tieto samostatne polyline nadvazuju na seba.</DIV><DIV>&nbsp;</DIV><DIV>Ako mozem zistit sucet dlzok viacerych polyline, ktore niesu na seba priamo&nbsp;&nbsp;nadvazujuce a vo vykrese tvoria samostatne useky? </DIV><DIV>&nbsp;</DIV><DIV>Da sa to aj jednoduchsie ako&nbsp;naprogramovat to neako cez&nbsp;lisp?</DIV><DIV>Ak je jedina moznost lisp, vie mi niekto pomoct so scriptom pre takyto lisp?</DIV><DIV>&nbsp;</DIV><DIV>Dakujem za ochotu a rady!</DIV>]]>
   </description>
   <pubDate>Tue, 26 Oct 2010 15:18:46 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=11726&amp;PID=56763&amp;title=polyline-length#56763</guid>
  </item> 
 </channel>
</rss>