<?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 : Automatické prohození hodnot atributů v blocích</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : AutoCAD : Automatické prohození hodnot atributů v blocích]]></description>
  <pubDate>Sun, 10 May 2026 10:06:43 +0000</pubDate>
  <lastBuildDate>Tue, 10 Mar 2020 18:59:23 +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=30152</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[Automatické prohození hodnot atributů v blocích : Skv&#283;l&#233;Funguje jak m&#225;, d&#283;kuji. ]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119514&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119514</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=5651">sumi</a><br /><strong>Předmět:</strong> 30152<br /><strong>Zasláno:</strong> 10.bře.2020 v 18:59<br /><br />Skvělé&nbsp;<img src="https://www.cadforum.cz/forum/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" /><div>Funguje jak má, děkuji.</div>]]>
   </description>
   <pubDate>Tue, 10 Mar 2020 18:59:23 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119514&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119514</guid>
  </item> 
  <item>
   <title><![CDATA[Automatické prohození hodnot atributů v blocích : (defun c:AttSwap ( / ss t1 t2...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119497&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119497</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=1045">johny</a><br /><strong>Předmět:</strong> 30152<br /><strong>Zasláno:</strong> 09.bře.2020 v 17:19<br /><br /><div><font face="Courier New, Courier, mono" size="2">(defun c:AttSwap ( / ss t1 t2 i en v1 v2)</font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; (if (and (setq ss (ssget ":L" '((0 . "INSERT") (66 . 1))))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(setq t1 (getstring "\nTag 1: "))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(setq t2 (getstring "\nTag 2: "))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;)</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; (repeat (setq i (sslength ss))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; (setq en (ssname ss (setq i (1- i))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; (and (setq v1 (LM:getattributevalue&nbsp; en t1))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(setq v2 (LM:getattributevalue&nbsp; en t2))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(LM:setattributevalue&nbsp; en t1 v2)</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(LM:setattributevalue&nbsp; en t2 v1))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; (princ)</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; )</font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2">;; Get Attribute Value&nbsp; -&nbsp; Lee Mac</font></div><div><font face="Courier New, Courier, mono" size="2">;; Returns the value held by the specified tag within the supplied block, if present.</font></div><div><font face="Courier New, Courier, mono" size="2">;; blk - &#091;ent&#093; Block (Insert) Entity Name</font></div><div><font face="Courier New, Courier, mono" size="2">;; tag - &#091;str&#093; Attribute TagString</font></div><div><font face="Courier New, Courier, mono" size="2">;; Returns: &#091;str&#093; Attribute value, else nil if tag is not found.</font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2">(defun LM:getattributevalue ( blk tag / enx )</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; (if (and (setq blk (entnext blk)) (= "ATTRIB" (cdr (assoc 0 (setq enx (entget blk))))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; (if (= (strcase tag) (strcase (cdr (assoc 2 enx))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (cdr (assoc 1 (reverse enx)))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (LM:getattributevalue blk tag))))</font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2">;; Set Attribute Value&nbsp; -&nbsp; Lee Mac</font></div><div><font face="Courier New, Courier, mono" size="2">;; Sets the value of the first attribute with the given tag found within the block, if present.</font></div><div><font face="Courier New, Courier, mono" size="2">;; blk - &#091;ent&#093; Block (Insert) Entity Name</font></div><div><font face="Courier New, Courier, mono" size="2">;; tag - &#091;str&#093; Attribute TagString</font></div><div><font face="Courier New, Courier, mono" size="2">;; val - &#091;str&#093; Attribute Value</font></div><div><font face="Courier New, Courier, mono" size="2">;; Returns: &#091;str&#093; Attribute value if successful, else nil.</font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2">(defun LM:setattributevalue ( blk tag val / enx )</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; (if (and (setq blk (entnext blk)) (= "ATTRIB" (cdr (assoc 0 (setq enx (entget blk))))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; (if (= (strcase tag) (strcase (cdr (assoc 2 enx))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (if (entmod (subst (cons 1 val) (assoc 1 (reverse enx)) enx))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (progn</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (entupd blk)</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; val))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (LM:setattributevalue blk tag val))))</font></div>]]>
   </description>
   <pubDate>Mon, 09 Mar 2020 17:19:03 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119497&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119497</guid>
  </item> 
  <item>
   <title><![CDATA[Automatické prohození hodnot atributů v blocích : Zkuste m&#283; pros&#237;m trochu v&#237;ce popostr&#269;it....]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119496&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119496</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=5651">sumi</a><br /><strong>Předmět:</strong> 30152<br /><strong>Zasláno:</strong> 09.bře.2020 v 15:55<br /><br />Zkuste mě prosím trochu více popostrčit. Jsem úplný začátečník a je to pro začátek velké sousto.]]>
   </description>
   <pubDate>Mon, 09 Mar 2020 15:55:40 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119496&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119496</guid>
  </item> 
  <item>
   <title><![CDATA[Automatické prohození hodnot atributů v blocích : Hmm, m&#225;te docela star&#253; autocad.Pak...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119495&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119495</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=1045">johny</a><br /><strong>Předmět:</strong> 30152<br /><strong>Zasláno:</strong> 09.bře.2020 v 14:53<br /><br />Hmm, máte docela starý autocad.<div>Pak použijte místo get/setpropertyvalue tyto:</div><div><br></div><div><a href="http://www.lee-mac.com/attributefuncti&#111;ns.html" target="_blank" rel="nofollow">http://www.lee-mac.com/attributefunctions.html</a></div><div><br></div><div>Aspon se něco naučíte.</div>]]>
   </description>
   <pubDate>Mon, 09 Mar 2020 14:53:10 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119495&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119495</guid>
  </item> 
  <item>
   <title><![CDATA[Automatické prohození hodnot atributů v blocích : Vrac&#237; chybu &#382;&#225;dn&#225; definice funkceGETPROPERTYVALUE...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119494&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119494</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=5651">sumi</a><br /><strong>Předmět:</strong> 30152<br /><strong>Zasláno:</strong> 09.bře.2020 v 13:32<br /><br />Vrací chybu žádná definice funkce&nbsp;GETPROPERTYVALUE]]>
   </description>
   <pubDate>Mon, 09 Mar 2020 13:32:29 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119494&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119494</guid>
  </item> 
  <item>
   <title><![CDATA[Automatické prohození hodnot atributů v blocích : (defun c:AttSwap ( / ss t1 t2...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119493&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119493</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=1045">johny</a><br /><strong>Předmět:</strong> 30152<br /><strong>Zasláno:</strong> 09.bře.2020 v 13:18<br /><br /><div><font face="Courier New, Courier, mono" size="2">(defun c:AttSwap ( / ss t1 t2 i en v1 v2)</font></div><div><font face="Courier New, Courier, mono" size="2"><br></font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; (if (and (setq ss (ssget ":L" '((0 . "INSERT") (66 . 1))))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(setq t1 (getstring "\nTag 1: "))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(setq t2 (getstring "\nTag 2: "))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;)</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; (repeat (setq i (sslength ss))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; (setq en (ssname ss (setq i (1- i))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; &nbsp; &nbsp; (and (setq v1 (getpropertyvalue en t1))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(setq v2 (getpropertyvalue en t2))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(not (setpropertyvalue en t1 v2))</font></div><div><font face="Courier New, Courier, mono" size="2"><span style="white-space:pre">	</span>&nbsp; &nbsp;(not (setpropertyvalue en t2 v1)))))</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; (princ)</font></div><div><font face="Courier New, Courier, mono" size="2">&nbsp; )</font></div>]]>
   </description>
   <pubDate>Mon, 09 Mar 2020 13:18:18 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119493&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119493</guid>
  </item> 
  <item>
   <title><![CDATA[Automatické prohození hodnot atributů v blocích : Popros&#237;m V&#225;s o radu viz. n&#237;&#382;e.Pot&#345;eboval...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119492&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119492</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=5651">sumi</a><br /><strong>Předmět:</strong> 30152<br /><strong>Zasláno:</strong> 09.bře.2020 v 12:16<br /><br />Poprosím Vás o radu viz. níže.<div>Potřeboval bych automaticky prohodit vyplněné hodnoty atributů v blocích.</div><div>Bloky mají své atributy např. název "A" a "B", potřebuji vyplněné hodnoty "A"=1 "B"=2 prohodit tzn. po vykonání "funkce" bude mít v bloku atribut "A" hodnotu 2 a "B" hodnotu 1.</div><div>Bloky mají různé názvy, tzn.: funkce by neměla brát v potaz název bloku ale najít atribut "A" a atribut "B" v libovolných názvech bloků a hodnoty prohodit (bez ohledu na název bloku).</div><div><br></div><div><img src="uploads/5651/ZMENA_ATR.JPG" height="200" width="500" border="0" /></div><div><br></div><div><div>Něco v tomto smyslu:&nbsp;<a href="http://www.lee-mac.com/attributecolour.html" target="_blank" rel="nofollow">http://www.lee-mac.com/attributecolour.html</a></div><div>Jen to nebude označovat barevně, ale prohodí atribut A s atributem B.</div></div><div><br></div><span style="font-size:10px"><br /><br />Upravil sumi - 09.bře.2020 v 12:34</span>]]>
   </description>
   <pubDate>Mon, 09 Mar 2020 12:16:28 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=30152&amp;PID=119492&amp;title=automaticke-prohozeni-hodnot-atributu-v-blocich#119492</guid>
  </item> 
 </channel>
</rss>