<?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>Комментарии на: Получить оригинальное имя команды</title>
	<atom:link href="https://autolisp.ru/2011/12/22/get-cmd-name-orig/feed/" rel="self" type="application/rss+xml" />
	<link>https://autolisp.ru/2011/12/22/get-cmd-name-orig/</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/2011/12/22/get-cmd-name-orig/comment-page-1/#comment-42749</link>
		<dc:creator><![CDATA[Кулик Алексей aka kpblc]]></dc:creator>
		<pubDate>Sat, 11 May 2013 20:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=684#comment-42749</guid>
		<description><![CDATA[Прекрасно... Задача обратная - находясь в локализованной версии, не зная оригинального имени команды, вычислить его.

P.S. Прикрутить лисп можно, почему нет:
[cc lang=&quot;cadlisp&quot;](defun c:getname (/ str cmd)

  (if (= (vla-get-localeid (vlax-get-acad-object)) 1049)
    (if (and (= (type
                  (setq
                    str
                     (vl-catch-all-apply
                       (function
                         (lambda ()
                           (getstring &quot;\nВведите имя команды &lt;Отмена&gt; : &quot;)
                           ) ;_ end of lambda
                         ) ;_ end of function
                       ) ;_ end of vl-catch-all-apply
                    ) ;_ end of setq
                  ) ;_ end of type
                &#039;str
                ) ;_ end of =
             (= (type (setq cmd (vl-catch-all-apply
                                  (function
                                    (lambda ()
                                      (getcname str)
                                      ) ;_ end of lambda
                                    ) ;_ end of function
                                  ) ;_ end of vl-catch-all-apply
                            ) ;_ end of setq
                      ) ;_ end of type
                &#039;str
                ) ;_ end of =
             ) ;_ end of and
      (princ (strcat &quot;\nВведенное имя команды : &quot;
                     str
                     &quot;\nОригинальное имя команды : &quot;
                     cmd
                     ) ;_ end of strcat
             ) ;_ end of princ
      (princ &quot;\nУказанное имя команды не найдено&quot;)
      ) ;_ end of if
    (princ
      &quot;\nYou can&#039;t get original command name within not Russian version!&quot;
      ) ;_ end of princ
    ) ;_ end of if
  (princ)
  ) ;_ end of defun[/cc]
По старой привычке добавил массу проверок и отловов ошибок :)
P.S. Код особо не проверял.]]></description>
		<content:encoded><![CDATA[<p>Прекрасно... Задача обратная - находясь в локализованной версии, не зная оригинального имени команды, вычислить его.</p>
<p>P.S. Прикрутить лисп можно, почему нет:</p>
<div class="codecolorer-container cadlisp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><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 />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br /></div></td><td><div class="cadlisp 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;">defun</span> c:getname <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">/</span> str cmd<span style="color: #66cc66;">&#41;</span><br />
<br />
&nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span>vla<span style="color: #66cc66;">-</span>get<span style="color: #66cc66;">-</span>localeid <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vlax-get-acad-object</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">1049</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">and</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">type</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; str<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vl-catch-all-apply</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">function</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;">lambda</span> <span style="color: #66cc66;">&#40;</span><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><span style="color: #b1b100;">getstring</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Введите имя команды &lt;Отмена&gt; : &quot;</span><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 lambda</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 function</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 vl-catch-all-apply</span><br />
&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 setq</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of type</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'str<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of =</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">type</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> cmd <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vl-catch-all-apply</span><br />
&nbsp; &nbsp; &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;">function</span><br />
&nbsp; &nbsp; &nbsp; &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;">lambda</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &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;">getcname</span> str<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &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 lambda</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 function</span><br />
&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 vl-catch-all-apply</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 setq</span><br />
&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 type</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'str<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of =</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of and</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">princ</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">strcat</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Введенное имя команды : &quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Оригинальное имя команды : &quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmd<br />
&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 strcat</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of princ</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">princ</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Указанное имя команды не найдено&quot;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of if</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">princ</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>You can't get original command name within not Russian version!&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of princ</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of if</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">princ</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of defun</span></div></td></tr></tbody></table></div>
<p>По старой привычке добавил массу проверок и отловов ошибок <img src="https://autolisp.ru/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br />
P.S. Код особо не проверял.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: tc71</title>
		<link>https://autolisp.ru/2011/12/22/get-cmd-name-orig/comment-page-1/#comment-42684</link>
		<dc:creator><![CDATA[tc71]]></dc:creator>
		<pubDate>Thu, 09 May 2013 19:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=684#comment-42684</guid>
		<description><![CDATA[Есть еще способ
алгоритм: набираем на клаве &quot;_box&quot;, затем жмем Esc, после &quot;Enter&quot;, читаем перевод - &quot;ЯЩИК&quot;)]]></description>
		<content:encoded><![CDATA[<p>Есть еще способ<br />
алгоритм: набираем на клаве "_box", затем жмем Esc, после "Enter", читаем перевод - "ЯЩИК")</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: tc71</title>
		<link>https://autolisp.ru/2011/12/22/get-cmd-name-orig/comment-page-1/#comment-42683</link>
		<dc:creator><![CDATA[tc71]]></dc:creator>
		<pubDate>Thu, 09 May 2013 19:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=684#comment-42683</guid>
		<description><![CDATA[А нельзя ли прикрутить лисп (getcname &quot;nnn&quot;) ; &quot;zzz&quot; с сокращением до пользовательского ввода и на кнопку его повесить.

Т.е. вызов
вбил команду
получил перевод]]></description>
		<content:encoded><![CDATA[<p>А нельзя ли прикрутить лисп (getcname "nnn") ; "zzz" с сокращением до пользовательского ввода и на кнопку его повесить.</p>
<p>Т.е. вызов<br />
вбил команду<br />
получил перевод</p>
]]></content:encoded>
	</item>
</channel>
</rss>
