.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to call acutWcMatchEx

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
425 Views, 2 Replies

How to call acutWcMatchEx

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?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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?
Message 3 of 3
Anonymous
in reply to: Anonymous

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost