<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Комментарии на: Палитры инструментов через лисп + xml</title>
	<atom:link href="https://autolisp.ru/2013/05/22/toolpalettes-by-lisp-and-xml/feed/" rel="self" type="application/rss+xml" />
	<link>https://autolisp.ru/2013/05/22/toolpalettes-by-lisp-and-xml/</link>
	<description>LISP для AutoCAD</description>
	<lastBuildDate>Tue, 24 Feb 2026 16:11:05 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>От: Кулик Алексей aka kpblc</title>
		<link>https://autolisp.ru/2013/05/22/toolpalettes-by-lisp-and-xml/comment-page-1/#comment-54295</link>
		<dc:creator><![CDATA[Кулик Алексей aka kpblc]]></dc:creator>
		<pubDate>Thu, 11 Dec 2014 13:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=1132#comment-54295</guid>
		<description><![CDATA[Попробуй применить append - по типу (apply &#039;append (mapcar (function _kpblc-xml-attribute...]]></description>
		<content:encoded><![CDATA[<p>Попробуй применить append - по типу (apply 'append (mapcar (function _kpblc-xml-attribute...</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Михаил</title>
		<link>https://autolisp.ru/2013/05/22/toolpalettes-by-lisp-and-xml/comment-page-1/#comment-54286</link>
		<dc:creator><![CDATA[Михаил]]></dc:creator>
		<pubDate>Thu, 11 Dec 2014 07:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=1132#comment-54286</guid>
		<description><![CDATA[Приведенная у тебя функция почему-то у меня не пошла...
Поскольку мне нужны только ID палитр, применил такую конструкцию:
[cc lang=&quot;lisp&quot;]

(setq list_atr (mapcar
                         (function _kpblc-xml-attribute-get-name-and-value
                         )
                        (mapcar
                           (function _kpblc-xml-nodes-get-child)
                           (_kpblc-xml-nodes-get-child
                             (car (_kpblc-xml-nodes-get-child-by-tag
                                    xml_main
                                    &quot;Palettes&quot;
                                    ) ;_ end of _kpblc-xml-nodes-get-child-by-tag
                             )
                           ) ;_ end of _kpblc-xml-nodes-get-child
                         ) ;_ end of mapcar
                       ) ;_ end of mapcar
);end of setq
[/cc]
Но есть одна странность. Нужные мне данные оказываются во вложенном (двойном) списке:
((((idvalue . {CE1AF905-1E75-49BC-A71A-50A2832C9ED8})) ((href . Palettes\4-1_Оформление_CE1AF905-1E75-49BC-A71A-50A2832C9ED8.atc)) nil nil) ...)
В чем тут дело-не подскажешь? 
Не очень удобно обрабатывать. Да и есть сомнения - будет ли структура всегда такой.]]></description>
		<content:encoded><![CDATA[<p>Приведенная у тебя функция почему-то у меня не пошла...<br />
Поскольку мне нужны только ID палитр, применил такую конструкцию:</p>
<div class="codecolorer-container lisp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="lisp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> list_atr <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">mapcar</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">function</span> _kpblc-xml-attribute-get-name-and-value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">mapcar</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">function</span> _kpblc-xml-nodes-get-child<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>_kpblc-xml-nodes-get-child<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">car</span> <span style="color: #66cc66;">&#40;</span>_kpblc-xml-nodes-get-child-by-tag<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xml_main<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;Palettes&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of _kpblc-xml-nodes-get-child-by-tag</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of _kpblc-xml-nodes-get-child</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of mapcar</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of mapcar</span><br />
<span style="color: #66cc66;">&#41;</span><span style="color: #808080; font-style: italic;">;end of setq</span></div></td></tr></tbody></table></div>
<p>Но есть одна странность. Нужные мне данные оказываются во вложенном (двойном) списке:<br />
((((idvalue . {CE1AF905-1E75-49BC-A71A-50A2832C9ED8})) ((href . Palettes\4-1_Оформление_CE1AF905-1E75-49BC-A71A-50A2832C9ED8.atc)) nil nil) ...)<br />
В чем тут дело-не подскажешь?<br />
Не очень удобно обрабатывать. Да и есть сомнения - будет ли структура всегда такой.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Михаил</title>
		<link>https://autolisp.ru/2013/05/22/toolpalettes-by-lisp-and-xml/comment-page-1/#comment-54228</link>
		<dc:creator><![CDATA[Михаил]]></dc:creator>
		<pubDate>Mon, 08 Dec 2014 10:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=1132#comment-54228</guid>
		<description><![CDATA[Если загрузить lispru-xml-collection.lsp а потом приведенный листинг, то выходит ошибка
; ошибка: no function definition: _KPBLC-DIR-PATH-NO-SPLASH
нельзя ли еще и функции _KPBLC-DIR-PATH... в архив добавить
А то именно _KPBLC-DIR-PATH-NO-SPLASH в исходниках не увидел...
Заранее благодарен]]></description>
		<content:encoded><![CDATA[<p>Если загрузить lispru-xml-collection.lsp а потом приведенный листинг, то выходит ошибка<br />
; ошибка: no function definition: _KPBLC-DIR-PATH-NO-SPLASH<br />
нельзя ли еще и функции _KPBLC-DIR-PATH... в архив добавить<br />
А то именно _KPBLC-DIR-PATH-NO-SPLASH в исходниках не увидел...<br />
Заранее благодарен</p>
]]></content:encoded>
	</item>
</channel>
</rss>
