AddArc3pt() fails
Posted: Wed Jan 22, 2014 7:43 am
I am unable to use the VBA function AddArc3pt(). Sometimes it works well, and sometimes the arcs are upside-down. Here is a little program that produces the bug (an inverted arc):
Public Sub Bug()
Dim doc As Document
Dim ms As ModelSpace
Dim w1 As Point, w2 As Point, w3 As Point
Dim A As Arc
Set doc = Application.ActiveDocument
Set ms = doc.ModelSpace
Set w1 = Library.CreatePoint(1, 0, 0)
Set w2 = Library.CreatePoint(0, -1, 0)
Set w3 = Library.CreatePoint(-1, 0, 0)
Set A = ms.AddArc3pt(w1, w2, w3)
A.Update
End Sub
It produces the same result as if the y coordinate of the w2 point was inverted.
NB: I am using the lastest version of CMS Intellicad Pro on Windows 7 64 bits.
Thanks for your help!
Public Sub Bug()
Dim doc As Document
Dim ms As ModelSpace
Dim w1 As Point, w2 As Point, w3 As Point
Dim A As Arc
Set doc = Application.ActiveDocument
Set ms = doc.ModelSpace
Set w1 = Library.CreatePoint(1, 0, 0)
Set w2 = Library.CreatePoint(0, -1, 0)
Set w3 = Library.CreatePoint(-1, 0, 0)
Set A = ms.AddArc3pt(w1, w2, w3)
A.Update
End Sub
It produces the same result as if the y coordinate of the w2 point was inverted.
NB: I am using the lastest version of CMS Intellicad Pro on Windows 7 64 bits.
Thanks for your help!