And sorry about all the embedded hyperlinks in the code
(actually it would be great if it lead you to the related
MSDN or other docs, rather than to Lutz Roeder's website).
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
"Tony Tanzillo"
wrote in message news:5541646@discussion.autodesk.com...
Hi. Don't use the declaration I posted in the last message.
Autodesk's news server has mangled it.
To call the degree of stupidity and ignorance reflected
by the design of Autodesk's online discussion groups
astonishing, is an understatement.
I'll try it one more time:
_
Public Shared Function acdbUcs2Wcs( ByRef inPt As Point3d, ByRef outPt As Point3d, ByVal vec As Boolean) As BooleanEnd Function
-- http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
"Peter Warnez" wrote in message news:5541564@discussion.autodesk.com...
Hi,
In C i was using the functions acdbWcs2Ucs to convert from one coordinate
system to another.
Because I can't find the function in VB i've made following function
CallingConvention:=CallingConvention.Cdecl)> _
Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint
As Double(), ByVal vector As Boolean) As Integer
End Function
but when i'am using the function Acad crashes.
Any idea ?
Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in vb ?
tnx,
Peter