Visio Guy

Visio Discussions => General Visio => Topic started by: phillip.from.oz on May 22, 2017, 05:49:07 AM

Title: How to draw circular arc subtending angle T with radius R?
Post by: phillip.from.oz on May 22, 2017, 05:49:07 AM
Hi,
There was a great solution on "How to draw circular arc subtended angle T with radius R?" posted to this forum back in 2012 (Wapperdude - Jan 06, 2012 @ 13:25) and the solution works great!

However I want concentric circles so with this shape can I see the centre of the circle; at the moment I line it up by "eye".

I'm assuming this shape is a custom shape - is there a way I can debug it/change it; would the code be written in a special macro language?

Thanks for any help!
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: Surrogate on May 22, 2017, 07:20:53 AM
Quote from: phillip.from.oz on May 22, 2017, 05:49:07 AM
great solution on "How to draw circular arc subtended angle T with radius R?" posted to this forum back in 2012 (Wapperdude - Jan 06, 2012 @ 13:25)
Can't find this thread
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: wapperdude on May 22, 2017, 09:28:40 PM
For reference, the link is:  http://visguy.com/vgforum/index.php?topic=3640.msg14211#msg14211 (http://visguy.com/vgforum/index.php?topic=3640.msg14211#msg14211)

For convenience, attached has two "arc" shapes with hide-able origin dot.  I've also added this file to the above link.  Adding the origin dot done via inserting additional geometry section.  There is no code, everything is done thru the shapesheet.  Yes, it is user editable.

Wapperdude
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: phillip.from.oz on May 23, 2017, 02:27:51 AM
Thanks for the work in preparing this solution.

However the dot for the centre although it appears does not indicate the centre.

I'm sorry that I cannot attach the *.vsd file as the reply screen does not support file attachment

I am doing something wrong?
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: wapperdude on May 23, 2017, 03:44:33 AM
Whoa!  My bad.  :o   Here's corrected.   :-[

Where's that quality control inspector???   >:(
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: Yacine on May 23, 2017, 04:47:43 PM
still not correct
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: RudySchneider on May 23, 2017, 06:25:07 PM
Quote from: Yacine on May 23, 2017, 04:47:43 PM
still not correct

Hmmm, time for beta testers...
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: wapperdude on May 23, 2017, 07:22:57 PM
@Yacine:  explain what's incorrect?  The origin dot is at the center of the arc...not the center of the shape.  When all of the dots are aligned, then, all of the arcs rotate around a common point.  Where's the problem?   Is the expectation both???

Oh, ignore Page-1, I did forget to delete it.

Thanks.
Wapperdude
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: Yacine on May 23, 2017, 08:17:04 PM
Dear Wayne, I deeply apologize for the harshness of my short reply. You did ask for a quality control. So I tried to help. ;)
Sorry.

So the dot is not always on the rotation center (PinX and Y) of the shape. This appears specially when the angle is small. I did check it with every shape, presuming you may had corrected only one of them.

I may (should) have checked the smart-shape as well. But it's always delicate to criticise the work of a "senior" contributor. So I limited my contribution to this concise remark.

By the way, I'm having a real hard time: you're the 3dr person I really offended today. I should hide somewhere - deep in the mountains - until this phase passes out.
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: wapperdude on May 23, 2017, 10:31:37 PM
@Yacine:  No offense was taken.  You'll have to reduce your count by one, or try harder.   :o  Sorry if my response implied that.  I was, like you, trying to be cryptic in my answer.  I was surprised about an error existing, since the approach did leverage an existing shape, and I had tried some minimal error checking.

However, your comment did make me re-think the shape, especially in light of making concentric circles.  So, I decided to rework from the ground up.  Now the origin is both at the center of the arc and the center of the shape.  This eases and facilitates concentric alignment.  The shape does accept positive or negative angles.  Did not try negative radius.  I don't think I want to know.

Oh, no, I didn't try a lot of variations, but the math should be correct by design...I hope!   ;D

Cheers.
Wapperdude

Edit: 5/24-- tried really tiny radius, remains centered.  Did not try extremely large, but expect to be ok.  Negative radius should be avoided, think of mirror image...flips the arc and offsets it.
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: wapperdude on May 26, 2017, 02:17:26 AM
OK.  So I don't know when to quit.

Latest update has some cool features.

Wapperdude
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: Yacine on May 26, 2017, 08:48:43 AM
molto bene ;)
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: wapperdude on May 26, 2017, 02:30:14 PM
 :)  Did you move?   ;D  ;D  ;D
Title: Re: How to draw circular arc subtending angle T with radius R?
Post by: Yacine on May 27, 2017, 07:45:45 AM
No, it was just the appreciation to the Maestro ;) ;D .