<?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/">
<channel>
<title>Forum Bauen und Umwelt - BricsCAD: Text entlang eines Kreisbogens anordnen</title>
<link>https://bauforum.wirklichewelt.de/</link>
<description>Das Bauforum</description>
<language>de</language>
<item>
<title>BricsCAD: Text entlang eines Kreisbogens anordnen</title>
<content:encoded><![CDATA[<p>Ganz tief unten in meinem Archiv habe ich ein uraltes Lisp-Programm gefunden, um „runden Text“ mit AutoCAD oder BricsCAD zu schreiben. Viel Spaß damit!</p>
<p><a href="images/uploaded/ZIP-Archiv_27E9IVVC1.zip" target="_blank"><img src="img/zip.png" alt="[image]"  />ZIP-Archiv_27E9IVVC1.zip</a></p>
<pre class="lisp" style="font-family:monospace;"><ol><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-style: italic;">; Copyright (c) 1988, 2015 by Martin Vogel</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-style: italic;">; Eine Textzeile wird entlang eines</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-style: italic;">; Kreisbogens dargestellt.</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> C<span style="color: #66cc66;">:</span><span style="color: #555;">RUND</span> <span style="color: #66cc66;">&#40;</span>/ s sl m r sw ew bw x th<span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span>setvar <span style="color: #ff0000;">&quot;CMDECHO&quot;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> sl <span style="color: #66cc66;">&#40;</span>strlen <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> s <span style="color: #66cc66;">&#40;</span>getstring <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Text: &quot;</span> t<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> th <span style="color: #66cc66;">&#40;</span>getreal <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Texthoehe: &quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> m <span style="color: #66cc66;">&#40;</span>getpoint <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Mittelpunkt: &quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #808080; font-style: italic;">;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> r <span style="color: #66cc66;">&#40;</span>getdist m <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Radius des Inkreises: &quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> sw <span style="color: #66cc66;">&#40;</span>getangle m <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Startwinkel: &quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> ew <span style="color: #66cc66;">&#40;</span>getangle m <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Endwinkel: &quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #808080; font-style: italic;">; Winkel pro Buchstabe</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> bw <span style="color: #66cc66;">&#40;</span>/ <span style="color: #66cc66;">&#40;</span>- ew sw<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>- sl<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #808080; font-style: italic;">; Index des aktuellen Buchstabens</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> x <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #808080; font-style: italic;">; Wenn Endwinkel kleiner Startwinkel: </span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #808080; font-style: italic;">; Text wird im Gegenuhrzeigersinn geschrieben,</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #808080; font-style: italic;">; dazu Radius um Texthöhe vergrößern.</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&lt;</span> ew sw<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> kw <span style="color: #cc66cc;">90</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">progn</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> kw <span style="color: #cc66cc;">270</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> r <span style="color: #66cc66;">&#40;</span>+ r th<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> sw <span style="color: #66cc66;">&#40;</span>- sw bw<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #808080; font-style: italic;">; Schleife über alle Buchstaben</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">      <span style="color: #66cc66;">&#40;</span>while <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&lt;=</span> x sl<span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #808080; font-style: italic;">; BricsCAD</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #66cc66;">&#40;</span>Command <span style="color: #ff0000;">&quot;TEXT&quot;</span> <span style="color: #ff0000;">&quot;MP&quot;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #808080; font-style: italic;">; AutoCAD</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #808080; font-style: italic;">; (Command &quot;TEXT&quot; &quot;Z&quot;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                 <span style="color: #66cc66;">&#40;</span>polar m <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> sw <span style="color: #66cc66;">&#40;</span>+ sw bw<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> r<span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                 th</div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                 <span style="color: #66cc66;">&#40;</span>- <span style="color: #66cc66;">&#40;</span>/ <span style="color: #66cc66;">&#40;</span>* <span style="color: #cc66cc;">180</span> sw<span style="color: #66cc66;">&#41;</span> PI<span style="color: #66cc66;">&#41;</span> kw<span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                 <span style="color: #66cc66;">&#40;</span>substr s x <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f5f5f5;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> x <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>+ x<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="background:#f9f9f9;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #66cc66;">&#41;</span></div></li></ol></pre>]]></content:encoded>
<link>https://bauforum.wirklichewelt.de/index.php?id=11186</link>
<guid>https://bauforum.wirklichewelt.de/index.php?id=11186</guid>
<pubDate>Thu, 09 Apr 2015 19:40:49 +0000</pubDate>
<category>Software</category><dc:creator>Martin Vogel</dc:creator>
</item>
</channel>
</rss>
