<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<title>How to bisect an angle in ZWCAD?</title>
<link>http://www.zwsoft.com/forum/viewthread.php?tid=1093</link>
<description>I usually use this lisp:

(defun getln (PR)
   (setq TYPE &quot;nil&quot;
   PRMPT (strcat &quot;'nPick &quot; PR &quot; line: &quot;))
   (while (/= TYPE &quot;LINE&quot;)
      (if (/= (setq TEMP (entsel PRMPT)) nil)
         (progn
            (setq LN1 (entget (car TEMP))
            TYPE (cdr (assoc 0 LN1)))
            (if (/= TYPE &quot;LINE&quot;)
            (print (strcat &quot;Can't bisect a &quot; TYPE)))
         )
         (print &quot;Invalid point&quot;)
      )
   ) ;end while
) ;end getln()
(defun C:BISECT(/ P1 P2 P3 P4 PIK1 PIK2 LN1 P5 P6 ANGA ANGB ANGC TEMP TYPE)
   (getln &quot;first&quot;)
   (setq P1 (cdr (assoc 10 LN1))
      P2 (cdr (assoc 11 LN1))
      PIK1 (osnap (cadr TEMP) &quot;near&quot;)
   )
   (getln &quot;second&quot;)
   (setq p3 (cdr (assoc 10 LN1))
      P4 (cdr (assoc 11 LN1))
      PIK2 (osnap (cadr TEMP) &quot;near&quot;)
   )
   ; get intersection and angles
   (setq P5 (inters P1 P2 P3 P4 nil)
      ANGA (angle P5 PIK1)
      ANGB (angle P5 PIK2)
   )
   (if (&gt; ANGA ANGB)
      (setq ANGC (+ (/ (+ (- (* 2 pi) ANGA) ANGB) 2) ANGA))
      (setq ANGC (+ (/ (- ANGB ANGA) 2) ANGA))
   )
   ; draw bisector from intersection to length 
   (command &quot;LINE&quot; P5 (polar P5 ANGC (distance P5 PIK1)) &quot;&quot;)       
   (prin1) 
); end bisect.lsp


Thanks







</description>
<author>zw_admin</author>
<pubDate>2008-05-05 05:09:32</pubDate>
<item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1093&amp;pid=10714</link>
<description>
 
Thank you all! We will consider whether to integrate it into ZWCAD. &lt;img src=&quot;http://www.zwcad.org/Forum/smileys/smiley1.gif&quot; height=&quot;17&quot; width=&quot;17&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;Smile&quot; /&gt;
 
</description>
<author>zw_admin</author>
<pubDate>2008-05-06 04:37:48</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1093&amp;pid=10705</link>
<description>
Thanks, donkeykid ;),

I'll try this. Though I like the 'Const Line' method, too.

I think there's also a way using 'cal (transparent 'calculator' command), but I can't remember it. The 'cal command for 'mid 2 points' was also very awkward to use  in Autocad, so I gave it up. Now of course, Autocad has the  'mid 2 points' snap.

Maybe it can be integrated into ZwCad if it works well and there's no problem. Actually, it should be easy enough (for us) to put on the right-click menu - using the 'customise' command.


maker2008-05-06 01:03:19</description>
<author>maker</author>
<pubDate>2008-05-05 23:19:31</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1093&amp;pid=10638</link>
<description>&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-paginati&#111;n: widow-orphan&quot; align=left&gt;&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;A client asked me how to bisect an angle in ZWCAD recently. And I draw a conclusion that there are three methods:
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-paginati&#111;n: widow-orphan&quot; align=left&gt;&lt;?:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
 

&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&lt;/SPAN&gt; 
&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;1, Use Construction Line command&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-paginati&#111;n: widow-orphan&quot; align=left&gt;&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;On Draw toolbar, click the Construction Line button and enter B to select the Bisect option. Then follow the prompt to select the vertex and two sides of the angle. Now you can get the bisector. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
 
&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;
 
2, Use Dimension command&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-paginati&#111;n: widow-orphan&quot; align=left&gt;&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;Firstly is to make an angular dimension for the angle. Then click the Line button on Draw toolbar and select the vertex point as first point of the line. Another point of the line is located at the midpoint of the dimension arc. Now the bisector is available and the angular dimension could be deleted.&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;   &lt;/SPAN&gt;&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
 
&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;
 
3, &lt;?:namespace prefix = st1 ns = &quot;urn:schemas-microsoft-com:office:smarttags&quot; /&gt;&lt;st1:Street w:st=&quot;&#111;n&quot;&gt;&lt;st1:address w:st=&quot;&#111;n&quot;&gt;Use Circle&lt;/st1:address&gt;&lt;/st1:Street&gt; command &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-paginati&#111;n: widow-orphan&quot; align=left&gt;&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;Firstly draw an accessorial circle using the angular vertex as centre to intersect with two sides of the angle. Then trim the arc outside the two sides. After that, draw a line with the angular vertex as starting point, and the midpoint of the arc as another point. Now the bisector comes out.&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;  
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-paginati&#111;n: widow-orphan&quot; align=left&gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
 

&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&lt;/SPAN&gt; 
&lt;SPAN lang=EN-US style=&quot;COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Arial; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-: TH&quot;&gt;&lt;FONT size=3&gt;If you have some experience on using CAD software, please share with us.&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;  &lt;/SPAN&gt;&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt; &lt;img src=&quot;http://www.zwcad.org/Forum/smileys/smiley17.gif&quot; height=&quot;17&quot; width=&quot;17&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;T&#111;ngue&quot; /&gt;&lt;img src=&quot;http://www.zwcad.org/Forum/smileys/smiley17.gif&quot; height=&quot;17&quot; width=&quot;17&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;T&#111;ngue&quot; /&gt;&lt;img src=&quot;http://www.zwcad.org/Forum/smileys/smiley32.gif&quot; height=&quot;17&quot; width=&quot;18&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;Clap&quot; /&gt;&lt;img src=&quot;http://www.zwcad.org/Forum/smileys/smiley32.gif&quot; height=&quot;17&quot; width=&quot;18&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;Clap&quot; /&gt;&lt;img src=&quot;http://www.zwcad.org/Forum/smileys/smiley32.gif&quot; height=&quot;17&quot; width=&quot;18&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;Clap&quot; /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;</description>
<author>zw_admin</author>
<pubDate>2008-04-28 23:27:15</pubDate>
</item>  </channel>
</rss>