<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: acdbWcs2Ucs in vb.net ? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933105#M78469</link>
    <description>You can use Depends.exe to look up exported functions&lt;BR /&gt;
and their signatures.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Peter Warnez" &lt;PETER&gt; wrote in message news:5541748@discussion.autodesk.com...&lt;BR /&gt;
Tnx a lot&lt;BR /&gt;
Where can I find all that kind of stuff ?&lt;BR /&gt;
If don't understand the way the function works....&lt;BR /&gt;
&lt;BR /&gt;
greetings,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; schreef in bericht &lt;BR /&gt;
news:5541652@discussion.autodesk.com...&lt;BR /&gt;
And sorry about all the embedded hyperlinks in the code&lt;BR /&gt;
(actually it would be great if it lead you to the related&lt;BR /&gt;
MSDN or other docs, rather than to Lutz Roeder's website).&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:5541646@discussion.autodesk.com...&lt;BR /&gt;
Hi. Don't use the declaration I posted in the last message.&lt;BR /&gt;
&lt;BR /&gt;
Autodesk's news server has mangled it.&lt;BR /&gt;
&lt;BR /&gt;
To call the degree of stupidity and ignorance reflected&lt;BR /&gt;
by the design of Autodesk's online discussion groups&lt;BR /&gt;
astonishing, is an understatement.&lt;BR /&gt;
&lt;BR /&gt;
I'll try it one more time:&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
Public Shared Function acdbUcs2Wcs(&lt;OUT&gt; ByRef inPt As Point3d, &lt;OUT&gt; ByRef &lt;BR /&gt;
outPt As Point3d, ByVal vec As Boolean) As BooleanEnd Function&lt;BR /&gt;
   -- http://www.caddzone.com&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Peter Warnez" &lt;PETER&gt; wrote in message &lt;BR /&gt;
news:5541564@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
In C i was using the functions acdbWcs2Ucs to convert from one coordinate&lt;BR /&gt;
system to another.&lt;BR /&gt;
Because I can't find the function in VB i've made following function&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
    Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint&lt;BR /&gt;
As Double(), ByVal vector As Boolean) As Integer&lt;BR /&gt;
    End Function&lt;BR /&gt;
but when i'am using the function Acad crashes.&lt;BR /&gt;
&lt;BR /&gt;
Any idea ?&lt;BR /&gt;
&lt;BR /&gt;
Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in vb ?&lt;BR /&gt;
&lt;BR /&gt;
tnx,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;/DLLIMPORT&gt;&lt;/PETER&gt;&lt;/OUT&gt;&lt;/OUT&gt;&lt;/DLLIMPORT&gt;&lt;/TONY.TANZILLO&gt;&lt;/TONY.TANZILLO&gt;&lt;/PETER&gt;</description>
    <pubDate>Wed, 04 Apr 2007 20:56:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-04-04T20:56:34Z</dc:date>
    <item>
      <title>acdbWcs2Ucs in vb.net ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933099#M78463</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
In C i was using the functions acdbWcs2Ucs to convert from one coordinate &lt;BR /&gt;
system to another.&lt;BR /&gt;
Because I can't find the function in VB i've made following function&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
    Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint &lt;BR /&gt;
As Double(), ByVal vector As Boolean) As Integer&lt;BR /&gt;
    End Function&lt;BR /&gt;
but when i'am using the function Acad crashes.&lt;BR /&gt;
&lt;BR /&gt;
Any idea ?&lt;BR /&gt;
&lt;BR /&gt;
Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in vb ?&lt;BR /&gt;
&lt;BR /&gt;
tnx,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;/DLLIMPORT&gt;</description>
      <pubDate>Wed, 04 Apr 2007 17:39:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933099#M78463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: acdbWcs2Ucs in vb.net ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933100#M78464</link>
      <description>&lt;DLLIMPORT&gt;
    EntryPoint:="?acdbUcs2Wcs@@YA_NQAN0_N@Z",&lt;BR /&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
Public Shared Function acdbUcs2Wcs(&lt;OUT&gt; ByRef inPt As Point3d, &lt;OUT&gt; ByRef outPt As Point3d, ByVal vec As Boolean) As Boolean&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Peter Warnez" &lt;PETER&gt; wrote in message news:5541564@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
In C i was using the functions acdbWcs2Ucs to convert from one coordinate &lt;BR /&gt;
system to another.&lt;BR /&gt;
Because I can't find the function in VB i've made following function&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
    Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint &lt;BR /&gt;
As Double(), ByVal vector As Boolean) As Integer&lt;BR /&gt;
    End Function&lt;BR /&gt;
but when i'am using the function Acad crashes.&lt;BR /&gt;
&lt;BR /&gt;
Any idea ?&lt;BR /&gt;
&lt;BR /&gt;
Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in vb ?&lt;BR /&gt;
&lt;BR /&gt;
tnx,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;/DLLIMPORT&gt;&lt;/PETER&gt;&lt;/OUT&gt;&lt;/OUT&gt;&lt;/DLLIMPORT&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933100#M78464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: acdbWcs2Ucs in vb.net ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933101#M78465</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;Hi. Don't use the declaration I posted in the last &lt;BR /&gt;
message.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;Autodesk's news server has mangled it.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;To call the degree of stupidity and &lt;/FONT&gt;&lt;FONT&gt;&lt;BR /&gt;
size=1&amp;gt;ignorance reflected &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;by the design of Autodesk's online &lt;/FONT&gt;&lt;FONT&gt;&lt;BR /&gt;
size=1&amp;gt;discussion groups&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;astonishing, is an understatement.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;I'll try it one more time:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;TABLE style="MARGIN-BOTTOM: 0px" cellspacing="0" cellpadding="0" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px" valign="top" colspan="2"&gt;&lt;PRE&gt;&amp;lt;&lt;A title="System.Runtime.InteropServices.DllImportAttribute..ctor(ByVal String)" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Runtime.InteropServices.DllImportAttribute/.ctor(String)"&gt;&lt;FONT color="#006018"&gt;DllImport&lt;/FONT&gt;&lt;/A&gt;(&lt;FONT color="#800000"&gt;"acdb17.dll"&lt;/FONT&gt;, &lt;A title="EntryPoint As String" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Runtime.InteropServices.DllImportAttribute/EntryPoint:String"&gt;&lt;FONT color="#006018"&gt;EntryPoint&lt;/FONT&gt;&lt;/A&gt;:=&lt;FONT color="#800000"&gt;"?acdbUcs2Wcs@@YA_NQAN0_N@Z"&lt;/FONT&gt;, &lt;A title="CallingConvention As CallingConvention" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Runtime.InteropServices.DllImportAttribute/CallingConvention:System.Runtime.InteropServices.CallingConvention"&gt;&lt;FONT color="#006018"&gt;CallingConvention&lt;/FONT&gt;&lt;/A&gt;:=&lt;A title="System.Runtime.InteropServices.CallingConvention" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Runtime.InteropServices.CallingConvention"&gt;&lt;FONT color="#006018"&gt;CallingConvention&lt;/FONT&gt;&lt;/A&gt;.&lt;A title="Cdecl As CallingConvention" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Runtime.InteropServices.CallingConvention/Cdecl"&gt;&lt;FONT color="#006018"&gt;Cdecl&lt;/FONT&gt;&lt;/A&gt;)&amp;gt; _&lt;BR /&gt;
&lt;FONT color="#1000a0"&gt;Public&lt;/FONT&gt; &lt;FONT color="#1000a0"&gt;Shared&lt;/FONT&gt; &lt;FONT color="#1000a0"&gt;Function&lt;/FONT&gt; &lt;B&gt;&lt;A class="bold" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Lucy.ApplicationServices:1.0.0.0/Lucy.Core.SafeNativeMethods/acdbUcs2Wcs(Autodesk.AutoCAD.Geometry.Point3d&amp;amp;,Autodesk.AutoCAD.Geometry.Point3d&amp;amp;,Boolean):Boolean"&gt;&lt;FONT color="#000000"&gt;acdbUcs2Wcs&lt;/FONT&gt;&lt;/A&gt;&lt;/B&gt;(&amp;lt;&lt;A title="System.Runtime.InteropServices.OutAttribute..ctor()" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Runtime.InteropServices.OutAttribute/.ctor()"&gt;&lt;FONT color="#006018"&gt;Out&lt;/FONT&gt;&lt;/A&gt;&amp;gt; &lt;FONT color="#1000a0"&gt;ByRef&lt;/FONT&gt; &lt;B&gt;inPt&lt;/B&gt;&lt;FONT color="#1000a0"&gt; As &lt;/FONT&gt;&lt;A title="Autodesk.AutoCAD.Geometry.Point3d" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://acdbmgd:17.0.54.0/Autodesk.AutoCAD.Geometry.Point3d"&gt;&lt;FONT color="#006018"&gt;Point3d&lt;/FONT&gt;&lt;/A&gt;, &amp;lt;&lt;A title="System.Runtime.InteropServices.OutAttribute..ctor()" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Runtime.InteropServices.OutAttribute/.ctor()"&gt;&lt;FONT color="#006018"&gt;Out&lt;/FONT&gt;&lt;/A&gt;&amp;gt; &lt;FONT color="#1000a0"&gt;ByRef&lt;/FONT&gt; &lt;B&gt;outPt&lt;/B&gt;&lt;FONT color="#1000a0"&gt; As &lt;/FONT&gt;&lt;A title="Autodesk.AutoCAD.Geometry.Point3d" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://acdbmgd:17.0.54.0/Autodesk.AutoCAD.Geometry.Point3d"&gt;&lt;FONT color="#006018"&gt;Point3d&lt;/FONT&gt;&lt;/A&gt;, &lt;FONT color="#1000a0"&gt;ByVal&lt;/FONT&gt; &lt;B&gt;vec&lt;/B&gt;&lt;FONT color="#1000a0"&gt; As &lt;/FONT&gt;&lt;A title="System.Boolean" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Boolean"&gt;&lt;FONT color="#006018"&gt;Boolean&lt;/FONT&gt;&lt;/A&gt;)&lt;FONT color="#1000a0"&gt; As &lt;/FONT&gt;&lt;A title="System.Boolean" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Boolean"&gt;&lt;FONT color="#006018"&gt;Boolean&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;End Function&lt;BR /&gt;
&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE style="MARGIN-BOTTOM: 0px" cellspacing="0" cellpadding="0" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px" valign="top" colspan="2"&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;-- &lt;BR /&gt;&lt;/FONT&gt;&lt;A href="http://www.caddzone.com"&gt;&lt;FONT size="1"&gt;http://www.caddzone.com&lt;/FONT&gt;&lt;/A&gt;&lt;/PRE&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;Supporting &lt;BR /&gt;
AutoCAD 2000 through 2008&lt;BR /&gt;&lt;/FONT&gt;&lt;A href="http://www.acadxtabs.com"&gt;&lt;FONT&gt;&lt;BR /&gt;
size=1&amp;gt;http://www.acadxtabs.com&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;"Peter Warnez" &amp;lt;&lt;/FONT&gt;&lt;A&gt;&lt;BR /&gt;
href="mailto:peter@warnez.be"&amp;gt;&lt;FONT size="1"&gt;peter@warnez.be&lt;/FONT&gt;&lt;/A&gt;&lt;FONT&gt;&lt;BR /&gt;
size=1&amp;gt;&amp;gt; wrote in message &lt;/FONT&gt;&lt;A&gt;&lt;BR /&gt;
href="news:5541564@discussion.autodesk.com"&amp;gt;&lt;FONT&gt;&lt;BR /&gt;
size=1&amp;gt;news:5541564@discussion.autodesk.com&lt;/FONT&gt;&lt;/A&gt;&lt;FONT&gt;&lt;BR /&gt;
size=1&amp;gt;...&lt;/FONT&gt;&lt;/DIV&gt;&lt;FONT size="1"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;In C i was using the functions &lt;BR /&gt;
acdbWcs2Ucs to convert from one coordinate &lt;BR /&gt;system to another.&lt;BR /&gt;Because I &lt;BR /&gt;
can't find the function in VB i've made following &lt;BR /&gt;
function&lt;BR /&gt;&lt;BR /&gt;&amp;lt;DllImport("acad.exe", EntryPoint:="acdbUcs2Wcs", &lt;BR /&gt;
&lt;BR /&gt;CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint &lt;BR /&gt;As &lt;BR /&gt;
Double(), ByVal vector As Boolean) As Integer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End &lt;BR /&gt;
Function&lt;BR /&gt;but when i'am using the function Acad crashes.&lt;BR /&gt;&lt;BR /&gt;Any idea &lt;BR /&gt;
?&lt;BR /&gt;&lt;BR /&gt;Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in &lt;BR /&gt;
vb ?&lt;BR /&gt;&lt;BR /&gt;tnx,&lt;BR /&gt;&lt;BR /&gt;Peter&lt;/FONT&gt; 
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:40:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933101#M78465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: acdbWcs2Ucs in vb.net ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933102#M78466</link>
      <description>And sorry about all the embedded hyperlinks in the code&lt;BR /&gt;
(actually it would be great if it lead you to the related &lt;BR /&gt;
MSDN or other docs, rather than to Lutz Roeder's website).&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message news:5541646@discussion.autodesk.com...&lt;BR /&gt;
Hi. Don't use the declaration I posted in the last message.&lt;BR /&gt;
 &lt;BR /&gt;
Autodesk's news server has mangled it.&lt;BR /&gt;
 &lt;BR /&gt;
To call the degree of stupidity and ignorance reflected &lt;BR /&gt;
by the design of Autodesk's online discussion groups&lt;BR /&gt;
astonishing, is an understatement.&lt;BR /&gt;
 &lt;BR /&gt;
I'll try it one more time:&lt;BR /&gt;
 &lt;BR /&gt;
&lt;DLLIMPORT&gt; _&lt;BR /&gt;
Public Shared Function acdbUcs2Wcs(&lt;OUT&gt; ByRef inPt As Point3d, &lt;OUT&gt; ByRef outPt As Point3d, ByVal vec As Boolean) As BooleanEnd Function&lt;BR /&gt;
   -- http://www.caddzone.com &lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Peter Warnez" &lt;PETER&gt; wrote in message news:5541564@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
In C i was using the functions acdbWcs2Ucs to convert from one coordinate &lt;BR /&gt;
system to another.&lt;BR /&gt;
Because I can't find the function in VB i've made following function&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
    Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint &lt;BR /&gt;
As Double(), ByVal vector As Boolean) As Integer&lt;BR /&gt;
    End Function&lt;BR /&gt;
but when i'am using the function Acad crashes.&lt;BR /&gt;
&lt;BR /&gt;
Any idea ?&lt;BR /&gt;
&lt;BR /&gt;
Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in vb ?&lt;BR /&gt;
&lt;BR /&gt;
tnx,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;/DLLIMPORT&gt;&lt;/PETER&gt;&lt;/OUT&gt;&lt;/OUT&gt;&lt;/DLLIMPORT&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:45:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933102#M78466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T18:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: acdbWcs2Ucs in vb.net ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933103#M78467</link>
      <description>Tnx a lot&lt;BR /&gt;
Where can I find all that kind of stuff ?&lt;BR /&gt;
If don't understand the way the function works....&lt;BR /&gt;
&lt;BR /&gt;
greetings,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; schreef in bericht &lt;BR /&gt;
news:5541652@discussion.autodesk.com...&lt;BR /&gt;
And sorry about all the embedded hyperlinks in the code&lt;BR /&gt;
(actually it would be great if it lead you to the related&lt;BR /&gt;
MSDN or other docs, rather than to Lutz Roeder's website).&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:5541646@discussion.autodesk.com...&lt;BR /&gt;
Hi. Don't use the declaration I posted in the last message.&lt;BR /&gt;
&lt;BR /&gt;
Autodesk's news server has mangled it.&lt;BR /&gt;
&lt;BR /&gt;
To call the degree of stupidity and ignorance reflected&lt;BR /&gt;
by the design of Autodesk's online discussion groups&lt;BR /&gt;
astonishing, is an understatement.&lt;BR /&gt;
&lt;BR /&gt;
I'll try it one more time:&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
Public Shared Function acdbUcs2Wcs(&lt;OUT&gt; ByRef inPt As Point3d, &lt;OUT&gt; ByRef &lt;BR /&gt;
outPt As Point3d, ByVal vec As Boolean) As BooleanEnd Function&lt;BR /&gt;
   -- http://www.caddzone.com&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Peter Warnez" &lt;PETER&gt; wrote in message &lt;BR /&gt;
news:5541564@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
In C i was using the functions acdbWcs2Ucs to convert from one coordinate&lt;BR /&gt;
system to another.&lt;BR /&gt;
Because I can't find the function in VB i've made following function&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
    Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint&lt;BR /&gt;
As Double(), ByVal vector As Boolean) As Integer&lt;BR /&gt;
    End Function&lt;BR /&gt;
but when i'am using the function Acad crashes.&lt;BR /&gt;
&lt;BR /&gt;
Any idea ?&lt;BR /&gt;
&lt;BR /&gt;
Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in vb ?&lt;BR /&gt;
&lt;BR /&gt;
tnx,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;/DLLIMPORT&gt;&lt;/PETER&gt;&lt;/OUT&gt;&lt;/OUT&gt;&lt;/DLLIMPORT&gt;&lt;/TONY.TANZILLO&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Wed, 04 Apr 2007 19:39:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933103#M78467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T19:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: acdbWcs2Ucs in vb.net ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933104#M78468</link>
      <description>Read this topic: http://through-the-interface.typepad.com/through_the_interface/2006/07/calling_objecta.html</description>
      <pubDate>Wed, 04 Apr 2007 20:06:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933104#M78468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: acdbWcs2Ucs in vb.net ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933105#M78469</link>
      <description>You can use Depends.exe to look up exported functions&lt;BR /&gt;
and their signatures.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Peter Warnez" &lt;PETER&gt; wrote in message news:5541748@discussion.autodesk.com...&lt;BR /&gt;
Tnx a lot&lt;BR /&gt;
Where can I find all that kind of stuff ?&lt;BR /&gt;
If don't understand the way the function works....&lt;BR /&gt;
&lt;BR /&gt;
greetings,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; schreef in bericht &lt;BR /&gt;
news:5541652@discussion.autodesk.com...&lt;BR /&gt;
And sorry about all the embedded hyperlinks in the code&lt;BR /&gt;
(actually it would be great if it lead you to the related&lt;BR /&gt;
MSDN or other docs, rather than to Lutz Roeder's website).&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:5541646@discussion.autodesk.com...&lt;BR /&gt;
Hi. Don't use the declaration I posted in the last message.&lt;BR /&gt;
&lt;BR /&gt;
Autodesk's news server has mangled it.&lt;BR /&gt;
&lt;BR /&gt;
To call the degree of stupidity and ignorance reflected&lt;BR /&gt;
by the design of Autodesk's online discussion groups&lt;BR /&gt;
astonishing, is an understatement.&lt;BR /&gt;
&lt;BR /&gt;
I'll try it one more time:&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
Public Shared Function acdbUcs2Wcs(&lt;OUT&gt; ByRef inPt As Point3d, &lt;OUT&gt; ByRef &lt;BR /&gt;
outPt As Point3d, ByVal vec As Boolean) As BooleanEnd Function&lt;BR /&gt;
   -- http://www.caddzone.com&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Peter Warnez" &lt;PETER&gt; wrote in message &lt;BR /&gt;
news:5541564@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
In C i was using the functions acdbWcs2Ucs to convert from one coordinate&lt;BR /&gt;
system to another.&lt;BR /&gt;
Because I can't find the function in VB i've made following function&lt;BR /&gt;
&lt;BR /&gt;
&lt;DLLIMPORT&gt;
CallingConvention:=CallingConvention.Cdecl)&amp;gt; _&lt;BR /&gt;
    Public Function acdbUcs2Wcs(ByVal fromPoint As Double(), ByVal toPoint&lt;BR /&gt;
As Double(), ByVal vector As Boolean) As Integer&lt;BR /&gt;
    End Function&lt;BR /&gt;
but when i'am using the function Acad crashes.&lt;BR /&gt;
&lt;BR /&gt;
Any idea ?&lt;BR /&gt;
&lt;BR /&gt;
Or another solution to convert from WCS2UCS, UCS2WCS, DCS2WCS,.... in vb ?&lt;BR /&gt;
&lt;BR /&gt;
tnx,&lt;BR /&gt;
&lt;BR /&gt;
Peter&lt;/DLLIMPORT&gt;&lt;/PETER&gt;&lt;/OUT&gt;&lt;/OUT&gt;&lt;/DLLIMPORT&gt;&lt;/TONY.TANZILLO&gt;&lt;/TONY.TANZILLO&gt;&lt;/PETER&gt;</description>
      <pubDate>Wed, 04 Apr 2007 20:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acdbwcs2ucs-in-vb-net/m-p/1933105#M78469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T20:56:34Z</dc:date>
    </item>
  </channel>
</rss>

