<?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 : atributy bloků</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : CAD programov&#225;n&#237; : atributy bloků]]></description>
  <pubDate>Fri, 19 Jun 2026 04:56:37 +0000</pubDate>
  <lastBuildDate>Fri, 27 Jan 2006 08:01:57 +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=2030</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[atributy bloků : Dostal jsem tyti dve funkce a...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=2030&amp;PID=8473&amp;title=atributy-bloku#8473</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=75">pavlacka</a><br /><strong>Předmět:</strong> 2030<br /><strong>Zasláno:</strong> 27.led.2006 v 08:01<br /><br /><P>Dostal jsem tyti dve funkce a s uspechem je pouzivam. Predavam dal.</P><P>Roman Pavlacka</P><P>;---Vrati hodnotu atributu<BR>(defun RetValAtt (EName AttTag / EData rr)<BR>&nbsp; (setq EData (entget EName))&nbsp;&nbsp;;Get initial info<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;loop through all attributes in block<BR>&nbsp; (while<BR>&nbsp;&nbsp;&nbsp; (= "ATTRIB"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (cdr<BR>&nbsp; (assoc&nbsp;'0<BR>&nbsp;&nbsp;(setq EData (entget (entnext (cdr (assoc '-1 EData)))))<BR>&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp; (if (WCMatch (cdr (assoc '2 EData)) AttTag)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq rr (cdr (assoc '1 EData)))<BR>&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp; )<BR>&nbsp; (eval rr)<BR>)</P><P><BR>;---Routine to replace a attribute in a block with a new value<BR>(defun RepAtt (EName AttTag AttVal / EData return)<BR>&nbsp; (setq EData (entget EName))&nbsp;&nbsp;;Get initial info<BR>&nbsp; (setq return nil)&nbsp;&nbsp;&nbsp;;loop through all attributes in block<BR>&nbsp; <BR>&nbsp; (while<BR>&nbsp;&nbsp;&nbsp; (= "ATTRIB"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (cdr<BR>&nbsp; (assoc&nbsp;'0<BR>&nbsp;&nbsp;(setq EData (entget (entnext (cdr (assoc '-1 EData)))))<BR>&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; (if (WCMatch (cdr (assoc '2 EData)) AttTag)<BR>&nbsp;&nbsp; &nbsp;(progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; (entmod (subst (cons '1 AttVal) (assoc '1 EData) Edata))<BR>&nbsp;&nbsp; (setq return 1)&nbsp; <BR>&nbsp;&nbsp; &nbsp;)<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp; )<BR>&nbsp;;return nil<BR>&nbsp;(eval return)<BR>)</P>]]>
   </description>
   <pubDate>Fri, 27 Jan 2006 08:01:57 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=2030&amp;PID=8473&amp;title=atributy-bloku#8473</guid>
  </item> 
  <item>
   <title><![CDATA[atributy bloků : Kdy&#382; z&#237;sl&#225;te data bloku, tak tam...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=2030&amp;PID=8470&amp;title=atributy-bloku#8470</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=15">Kubeczka</a><br /><strong>Předmět:</strong> 2030<br /><strong>Zasláno:</strong> 27.led.2006 v 05:46<br /><br /><P>Když zísláte data bloku, tak tam najdete kód 66, který říká, že následují další entity bloku, mj. také atributy. Přikládám výpis kódu, který umožňuje procházet atributy bloku a vypisuje je.</P><P>&nbsp; (setq e1 (car (entsel)))<BR>&nbsp; (textscr)<BR>&nbsp; (setq ed (entget e1))<BR>&nbsp; (print ed)<BR>&nbsp; (if (= (cdr (assoc 66 ed)) 1)&nbsp;&nbsp; ;navesti "entity nasleduji"<BR>&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (initget (+ 2 4 8) "")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (getkword "\nPress RETURN to continue ...")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq e1 (entnext e1))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq ed (entget e1))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (while (= (cdr (assoc 0 ed)) "ATTRIB")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (print ed)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (initget (+ 2 4 8) "")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (getkword "\nPress RETURN to continue ...")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq e1 (entnext e1))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq ed (entget e1))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (print ed)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (princ)<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp; )<BR></P>]]>
   </description>
   <pubDate>Fri, 27 Jan 2006 05:46:51 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=2030&amp;PID=8470&amp;title=atributy-bloku#8470</guid>
  </item> 
  <item>
   <title><![CDATA[atributy bloků : Dobr&#253; den. Nev&#237;te pros&#237;m jak v...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=2030&amp;PID=8469&amp;title=atributy-bloku#8469</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=1053">pepan33</a><br /><strong>Předmět:</strong> 2030<br /><strong>Zasláno:</strong> 26.led.2006 v 23:49<br /><br /><P>Dobrý den. Nevíte prosím jak v Lispu získat hodnoty atributů bloku pro další zpracování? Pro běžné entity používám příkaz (entget) a dále mohu pracovat s daty entity. U bloků získám pouze základní data, ale hodnoty atributu jsem nenašel ani v rozšířených datech. Kde jsou ve výkresu uloženy?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 26 Jan 2006 23:49:05 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=2030&amp;PID=8469&amp;title=atributy-bloku#8469</guid>
  </item> 
 </channel>
</rss>