<?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/2009/11/02/dimstyle-create/feed/" rel="self" type="application/rss+xml" />
	<link>https://autolisp.ru/2009/11/02/dimstyle-create/</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/2009/11/02/dimstyle-create/comment-page-1/#comment-86319</link>
		<dc:creator><![CDATA[Кулик Алексей aka kpblc]]></dc:creator>
		<pubDate>Mon, 16 Dec 2019 08:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-86319</guid>
		<description><![CDATA[Спасибо &lt;strong&gt;Browning Zed&lt;/strong&gt;, который выполнил вменяемое тестирование на https://forum.dwg.ru/showthread.php?p=1842474 ! В исходный пост внесены корректировки, на мой код в комментариях можно не смотреть.]]></description>
		<content:encoded><![CDATA[<p>Спасибо <strong>Browning Zed</strong>, который выполнил вменяемое тестирование на <a href="https://forum.dwg.ru/showthread.php?p=1842474" rel="nofollow">https://forum.dwg.ru/showthread.php?p=1842474</a> ! В исходный пост внесены корректировки, на мой код в комментариях можно не смотреть.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Кулик Алексей aka kpblc</title>
		<link>https://autolisp.ru/2009/11/02/dimstyle-create/comment-page-1/#comment-86306</link>
		<dc:creator><![CDATA[Кулик Алексей aka kpblc]]></dc:creator>
		<pubDate>Sun, 15 Dec 2019 17:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-86306</guid>
		<description><![CDATA[Слегка пришлось подправить _lispru-get-or-create-dimblock :
[cc lang=&quot;cadlisp&quot;](vl-load-com)

(defun _lispru-get-or-create-dimblock (name / err dimblk)
                                      ;&#124;
*    Получение ename-указателя или создание блока с переданным именем
* Если name попадает под стандартные наименования:
&quot;&quot; &#124;&#124; &quot;_DOT&quot;        &#124;&#124; &quot;_DOTSMALL&quot; &#124;&#124; &quot;_DOTBLANK&quot;    &#124;&#124; &quot;_ORIGIN&quot;      &#124;&#124;
   &#124;&#124; &quot;_ORIGIN2&quot;    &#124;&#124; &quot;_OPEN&quot;     &#124;&#124; &quot;_OPEN90&quot;      &#124;&#124; &quot;_OPEN30&quot;      &#124;&#124;
   &#124;&#124; &quot;_CLOSED&quot;     &#124;&#124; &quot;_SMALL&quot;    &#124;&#124; &quot;_NONE&quot;        &#124;&#124; &quot;_OBLIQUE&quot;     &#124;&#124;
   &#124;&#124; &quot;_BOXFILLED&quot;  &#124;&#124; &quot;_BOXBLANK&quot; &#124;&#124; &quot;_CLOSEDBLANK&quot; &#124;&#124; &quot;_DATUMFILLED&quot; &#124;&#124;
   &#124;&#124; &quot;_DATUMBLANK&quot; &#124;&#124; &quot;_INTEGRAL&quot; &#124;&#124; &quot;_ARCHTICK&quot;

*  То используется механизм через (setvar / getvar). В противном случае получается
* указатель на имеющийся блок с таким именем. Если такого блока нет, он создается
* пустым.
*    Примеры вызова:
(_lispru-get-or-create-dimblock &quot;qwert&quot;)
(_lispru-get-or-create-dimblock &quot;archtick&quot;)
&#124;;
  (cond ((wcmatch (strcase (vl-string-left-trim &quot;_&quot; name))
                  (strcat &quot;\&quot;\&quot;,DOT,DOTSMALL,DOTBLANK,ORIGIN,ORIGIN2,&quot;
                          &quot;OPEN,OPEN90,OPEN30,CLOSED,SMALL,&quot;
                          &quot;NONE,OBLIQUE,BOXFILLED,BOXBLANK,CLOSEDBLANK,&quot;
                          &quot;DATUMFILLED,DATUMBLANK,INTEGRAL,ARCHTICK&quot;
                          ) ;_ end of strcat
                  ) ;_ end of wcmatch
         (if (vl-catch-all-error-p
               (setq err (vl-catch-all-apply
                           (function (lambda ()
                                       (setq dimblk (getvar &quot;dimblk&quot;))
                                       (if (= dimblk &quot;&quot;)
                                         (setq dimblk &quot;.&quot;)
                                         ) ;_ end of if
                                       (setvar &quot;dimblk&quot; (strcat &quot;_&quot; (vl-string-left-trim &quot;_&quot; name)))
                                       (setvar &quot;dimblk&quot; dimblk)
                                       (setq res (tblobjname &quot;block&quot; (strcat &quot;_&quot; (vl-string-left-trim &quot;_&quot; name))))
                                       ) ;_ end of lambda
                                     ) ;_ end of function
                           ) ;_ end of vl-catch-all-apply
                     ) ;_ end of setq
               ) ;_ end of vl-catch-all-error-p
           (setq res (tblobjname &quot;block&quot; (getvar &quot;dimblk&quot;)))
           ) ;_ end of if
         (if res
           (cdr (assoc 330 (entget res)))
           ) ;_ end of if
         )
        ((tblobjname &quot;block&quot; name) (cdr(assoc 330 (entget (tblobjname &quot;block&quot; &quot;_archtick&quot;)))))
        (t
         (vla-add (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
                  (vlax-3d-point &#039;(0. 0. 0.))
                  name
                  ) ;_ end of vla-add
         (cdr (assoc 330 (entget (tblobjname &quot;block&quot; name))))
         )
        ) ;_ end of cond
  ) ;_ end of defun[/cc]
Функция может вернуть nil, если планируется использовать залитую стрелку: у этого блока мне пока не удалось получить указатель. Поэтому при entmake / entmakex придется пройтись по списку и &quot;выкинуть&quot; точечные пары, у которых второй элемент nil. vl-remove-if-not, к примеру, и вперед.]]></description>
		<content:encoded><![CDATA[<p>Слегка пришлось подправить _lispru-get-or-create-dimblock :</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 />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<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;">vl-load-com</span><span style="color: #66cc66;">&#41;</span><br />
<br />
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> _lispru<span style="color: #66cc66;">-</span>get<span style="color: #66cc66;">-</span>or<span style="color: #66cc66;">-</span>create<span style="color: #66cc66;">-</span>dimblock <span style="color: #66cc66;">&#40;</span>name <span style="color: #66cc66;">/</span> err dimblk<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: #808080; font-style: italic;">;|<br />
* &nbsp; &nbsp;Получение ename-указателя или создание блока с переданным именем<br />
* Если name попадает под стандартные наименования:<br />
&quot;&quot; || &quot;_DOT&quot; &nbsp; &nbsp; &nbsp; &nbsp;|| &quot;_DOTSMALL&quot; || &quot;_DOTBLANK&quot; &nbsp; &nbsp;|| &quot;_ORIGIN&quot; &nbsp; &nbsp; &nbsp;||<br />
&nbsp; &nbsp;|| &quot;_ORIGIN2&quot; &nbsp; &nbsp;|| &quot;_OPEN&quot; &nbsp; &nbsp; || &quot;_OPEN90&quot; &nbsp; &nbsp; &nbsp;|| &quot;_OPEN30&quot; &nbsp; &nbsp; &nbsp;||<br />
&nbsp; &nbsp;|| &quot;_CLOSED&quot; &nbsp; &nbsp; || &quot;_SMALL&quot; &nbsp; &nbsp;|| &quot;_NONE&quot; &nbsp; &nbsp; &nbsp; &nbsp;|| &quot;_OBLIQUE&quot; &nbsp; &nbsp; ||<br />
&nbsp; &nbsp;|| &quot;_BOXFILLED&quot; &nbsp;|| &quot;_BOXBLANK&quot; || &quot;_CLOSEDBLANK&quot; || &quot;_DATUMFILLED&quot; ||<br />
&nbsp; &nbsp;|| &quot;_DATUMBLANK&quot; || &quot;_INTEGRAL&quot; || &quot;_ARCHTICK&quot;<br />
<br />
* &nbsp;То используется механизм через (setvar / getvar). В противном случае получается<br />
* указатель на имеющийся блок с таким именем. Если такого блока нет, он создается<br />
* пустым.<br />
* &nbsp; &nbsp;Примеры вызова:<br />
(_lispru-get-or-create-dimblock &quot;qwert&quot;)<br />
(_lispru-get-or-create-dimblock &quot;archtick&quot;)<br />
|;</span><br />
&nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cond</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">wcmatch</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">strcase</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vl-string-left-trim</span> <span style="color: #ff0000;">&quot;_&quot;</span> name<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">strcat</span> <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #ff0000;">&quot;,DOT,DOTSMALL,DOTBLANK,ORIGIN,ORIGIN2,&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;OPEN,OPEN90,OPEN30,CLOSED,SMALL,&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;NONE,OBLIQUE,BOXFILLED,BOXBLANK,CLOSEDBLANK,&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;DATUMFILLED,DATUMBLANK,INTEGRAL,ARCHTICK&quot;</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 strcat</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 wcmatch</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vl-catch-all-error-p</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> err <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;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">function</span> <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; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> dimblk <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">getvar</span> <span style="color: #ff0000;">&quot;dimblk&quot;</span><span style="color: #66cc66;">&#41;</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; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">=</span> dimblk <span style="color: #ff0000;">&quot;&quot;</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; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> dimblk <span style="color: #ff0000;">&quot;.&quot;</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; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of if</span><br />
&nbsp; &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;">setvar</span> <span style="color: #ff0000;">&quot;dimblk&quot;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">strcat</span> <span style="color: #ff0000;">&quot;_&quot;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vl-string-left-trim</span> <span style="color: #ff0000;">&quot;_&quot;</span> name<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</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; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setvar</span> <span style="color: #ff0000;">&quot;dimblk&quot;</span> dimblk<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; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> res <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">tblobjname</span> <span style="color: #ff0000;">&quot;block&quot;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">strcat</span> <span style="color: #ff0000;">&quot;_&quot;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vl-string-left-trim</span> <span style="color: #ff0000;">&quot;_&quot;</span> name<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</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; &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; &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;<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;<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;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of vl-catch-all-error-p</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> res <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">tblobjname</span> <span style="color: #ff0000;">&quot;block&quot;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">getvar</span> <span style="color: #ff0000;">&quot;dimblk&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of if</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> res<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cdr</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">assoc</span> <span style="color: #cc66cc;">330</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">entget</span> res<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of if</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">tblobjname</span> <span style="color: #ff0000;">&quot;block&quot;</span> name<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cdr</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">assoc</span> <span style="color: #cc66cc;">330</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">entget</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">tblobjname</span> <span style="color: #ff0000;">&quot;block&quot;</span> <span style="color: #ff0000;">&quot;_archtick&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">t</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>vla<span style="color: #66cc66;">-</span>add <span style="color: #66cc66;">&#40;</span>vla<span style="color: #66cc66;">-</span>get<span style="color: #66cc66;">-</span>blocks <span style="color: #66cc66;">&#40;</span>vla<span style="color: #66cc66;">-</span>get<span style="color: #66cc66;">-</span>activedocument <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: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">vlax-3d-point</span> '<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>. <span style="color: #cc66cc;">0</span>. <span style="color: #cc66cc;">0</span>.<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name<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 vla-add</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cdr</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">assoc</span> <span style="color: #cc66cc;">330</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">entget</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">tblobjname</span> <span style="color: #ff0000;">&quot;block&quot;</span> name<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;_ end of cond</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>Функция может вернуть nil, если планируется использовать залитую стрелку: у этого блока мне пока не удалось получить указатель. Поэтому при entmake / entmakex придется пройтись по списку и "выкинуть" точечные пары, у которых второй элемент nil. vl-remove-if-not, к примеру, и вперед.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Кулик Алексей aka kpblc</title>
		<link>https://autolisp.ru/2009/11/02/dimstyle-create/comment-page-1/#comment-43864</link>
		<dc:creator><![CDATA[Кулик Алексей aka kpblc]]></dc:creator>
		<pubDate>Fri, 07 Jun 2013 05:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-43864</guid>
		<description><![CDATA[Хорошо, уговорили :)]]></description>
		<content:encoded><![CDATA[<p>Хорошо, уговорили <img src="https://autolisp.ru/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Gontarski</title>
		<link>https://autolisp.ru/2009/11/02/dimstyle-create/comment-page-1/#comment-43863</link>
		<dc:creator><![CDATA[Gontarski]]></dc:creator>
		<pubDate>Fri, 07 Jun 2013 04:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-43863</guid>
		<description><![CDATA[В приведенном выше примере я как раз и настраиваю. Подчеркиваю - НАСТРАИВАЮ СУЩЕСТВУЮЩИЙ размерный стиль!!! Устанавливаю для него новый текстовый стиль с именем &quot;Текстовый_Стиль2&quot;.]]></description>
		<content:encoded><![CDATA[<p>В приведенном выше примере я как раз и настраиваю. Подчеркиваю - НАСТРАИВАЮ СУЩЕСТВУЮЩИЙ размерный стиль!!! Устанавливаю для него новый текстовый стиль с именем "Текстовый_Стиль2".</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Кулик Алексей aka kpblc</title>
		<link>https://autolisp.ru/2009/11/02/dimstyle-create/comment-page-1/#comment-43820</link>
		<dc:creator><![CDATA[Кулик Алексей aka kpblc]]></dc:creator>
		<pubDate>Thu, 06 Jun 2013 07:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-43820</guid>
		<description><![CDATA[Отлично. Повторюсь: задача - настроить размерный стиль. Еще раз подчеркиваю - НАСТРОИТЬ!!! Установить засечки, их размер, установить текстовый стиль, аннотативность и т.п. Причем все (ну или какая-то часть) этих настроек должна отличаться от настроек предыдущего стиля.]]></description>
		<content:encoded><![CDATA[<p>Отлично. Повторюсь: задача - настроить размерный стиль. Еще раз подчеркиваю - НАСТРОИТЬ!!! Установить засечки, их размер, установить текстовый стиль, аннотативность и т.п. Причем все (ну или какая-то часть) этих настроек должна отличаться от настроек предыдущего стиля.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Gontarski</title>
		<link>https://autolisp.ru/2009/11/02/dimstyle-create/comment-page-1/#comment-43763</link>
		<dc:creator><![CDATA[Gontarski]]></dc:creator>
		<pubDate>Tue, 04 Jun 2013 07:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-43763</guid>
		<description><![CDATA[&gt;Я не знаю, почему, но факт остается фактом: ActiveX-методов настройки (не создания, а именно &gt;настройки!) размерного стиля не существует

Это не факт, это Ваше предположение.

&#039;изменение размерных стилей
Public Sub testDimStyle()
    Dim acDimStyle As AcadDimStyle
    Set acDimStyle = ThisDrawing.DimStyles.Item(0)
    
    ThisDrawing.ActiveDimStyle = acDimStyle
    Call ThisDrawing.SetVariable(&quot;DIMTXSTY&quot;, &quot;Текстовый_Стиль2&quot;)
    acDimStyle.copyFrom ThisDrawing

End Sub]]></description>
		<content:encoded><![CDATA[<p>&gt;Я не знаю, почему, но факт остается фактом: ActiveX-методов настройки (не создания, а именно &gt;настройки!) размерного стиля не существует</p>
<p>Это не факт, это Ваше предположение.</p>
<p>'изменение размерных стилей<br />
Public Sub testDimStyle()<br />
    Dim acDimStyle As AcadDimStyle<br />
    Set acDimStyle = ThisDrawing.DimStyles.Item(0)</p>
<p>    ThisDrawing.ActiveDimStyle = acDimStyle<br />
    Call ThisDrawing.SetVariable("DIMTXSTY", "Текстовый_Стиль2")<br />
    acDimStyle.copyFrom ThisDrawing</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Кулик Алексей aka kpblc</title>
		<link>https://autolisp.ru/2009/11/02/dimstyle-create/comment-page-1/#comment-2662</link>
		<dc:creator><![CDATA[Кулик Алексей aka kpblc]]></dc:creator>
		<pubDate>Tue, 29 Jun 2010 09:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-2662</guid>
		<description><![CDATA[Так обратно-то надо вернуть :)
Насчет &quot;перевода&quot; значений системных переменных (убил бы локализаторов!):
Команда: DIMBLK

Новое значение DIMBLK, или . если по умолчанию &lt;&quot;Нет&quot;&gt;:

Команда: (setvar &quot;dimblk&quot;&quot;_ArchTIck&quot;)
&quot;_ArchTIck&quot;

Команда: DIMBLK

Новое значение DIMBLK, или . если по умолчанию &lt;&quot;ДвЗасечка&quot;&gt;:

Почему функция вернула nil - пока не понял, надо разбираться.]]></description>
		<content:encoded><![CDATA[<p>Так обратно-то надо вернуть <img src="https://autolisp.ru/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br />
Насчет "перевода" значений системных переменных (убил бы локализаторов!):<br />
Команда: DIMBLK</p>
<p>Новое значение DIMBLK, или . если по умолчанию < "Нет">:</p>
<p>Команда: (setvar "dimblk""_ArchTIck")<br />
"_ArchTIck"</p>
<p>Команда: DIMBLK</p>
<p>Новое значение DIMBLK, или . если по умолчанию < "ДвЗасечка">:</p>
<p>Почему функция вернула nil - пока не понял, надо разбираться.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Makswell</title>
		<link>https://autolisp.ru/2009/11/02/dimstyle-create/comment-page-1/#comment-2652</link>
		<dc:creator><![CDATA[Makswell]]></dc:creator>
		<pubDate>Tue, 22 Jun 2010 05:27:28 +0000</pubDate>
		<guid isPermaLink="false">http://autolisp.ru/?p=170#comment-2652</guid>
		<description><![CDATA[По функции _lispru-get-or-create-dimblock. Во фрагменте кода не понятно, почему подряд идут 2 setvar&#039;а? В первом как бы получается нет никакого смысла?

(setq dimblk (getvar &quot;dimblk&quot;))
(setvar	&quot;dimblk&quot;
	(strcat &quot;_&quot; (vl-string-left-trim &quot;_&quot; name))
)
(setvar &quot;dimblk&quot; dimblk)

И ещё. В моём русском Автокаде 2008 твой код в частности ведёт себя так:
_$ (_lispru-get-or-create-dimblock &quot;archtick&quot;)
nil
_$ (getvar &quot;dimblk&quot;)
&quot;Засечка&quot;
_$]]></description>
		<content:encoded><![CDATA[<p>По функции _lispru-get-or-create-dimblock. Во фрагменте кода не понятно, почему подряд идут 2 setvar'а? В первом как бы получается нет никакого смысла?</p>
<p>(setq dimblk (getvar "dimblk"))<br />
(setvar	"dimblk"<br />
	(strcat "_" (vl-string-left-trim "_" name))<br />
)<br />
(setvar "dimblk" dimblk)</p>
<p>И ещё. В моём русском Автокаде 2008 твой код в частности ведёт себя так:<br />
_$ (_lispru-get-or-create-dimblock "archtick")<br />
nil<br />
_$ (getvar "dimblk")<br />
"Засечка"<br />
_$</p>
]]></content:encoded>
	</item>
</channel>
</rss>
