How to call acutWcMatchEx

How to call acutWcMatchEx

Anonymous
Not applicable
539 Views
2 Replies
Message 1 of 3

How to call acutWcMatchEx

Anonymous
Not applicable
Try to make calls to acutWcMatchEx, acutWcMatch or similar functions inside .net, the manual says you can do it.
"Your .NET application can include C++ portions, so you can also use ObjectARX APIs that do not have managed wrappers."

Could someone show me some sample how to call acutWcMatchEx of ObjectARX from inside .net?
0 Likes
540 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
public static class Class1
{

[DllImport( "acdb17.dll",
CallingConvention = CallingConvention.Cdecl,
CharSet = CharSet.Unicode,
EntryPoint = "?acutWcMatchEx@@YA_NPB_W0_N@Z" )
]

extern public static bool acutWcMatchEx( string str, string pat, bool ignoreCase );

}


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5838845@discussion.autodesk.com...
Try to make calls to acutWcMatchEx, acutWcMatch or similar functions inside .net, the manual says you can do it.
"Your .NET application can include C++ portions, so you can also use ObjectARX APIs that do not have managed wrappers."

Could someone show me some sample how to call acutWcMatchEx of ObjectARX from inside .net?
0 Likes
Message 3 of 3

Anonymous
Not applicable
Tony, thank you very much. Your code gave me the last piece I need to assemble a .net library to show/hide layers, including those of a viewport. A lisp can call into it to set layers up in a layout after plot command is called, when no (command) can be used. Thanks.
0 Likes