Message 1 of 3
PInvoke ObjectARX from .NET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here's a little guide to a procedure that can help a lot for people trying to customize Autocad using .NET:
http://www.quux.biz/Programming/PInvoke.aspx
This explains how to go about using that ObjectARX method that isn't exposed in the managed API. If you've been hanging out in this group for long, you've probably seen Tony Tanzillo solve problems using this trick. Now this article explains how to do it, so you can do it yourself.
And this brings up another useful tip for .NET programmers: remember to look at the ObjectARX documentation. Don't rely on intellisense or the docs for the managed API. There are a lot of things in ObjectARX that are not in the managed API, so if you aren't reading the ObjectARX documentation, you won't know certain access points even exist. The managed API documentation is still easier to use for many things, but when you are trying to find a way to accomplish a new task with the API, remember to look in the ObjectARX documentation for methods that are missing from the managed API.
-- Sinc
http://www.ejsurveying.com
http://www.quux.biz
http://www.sincpac3d.com
http://www.quux.biz/Programming/PInvoke.aspx
This explains how to go about using that ObjectARX method that isn't exposed in the managed API. If you've been hanging out in this group for long, you've probably seen Tony Tanzillo solve problems using this trick. Now this article explains how to do it, so you can do it yourself.
And this brings up another useful tip for .NET programmers: remember to look at the ObjectARX documentation. Don't rely on intellisense or the docs for the managed API. There are a lot of things in ObjectARX that are not in the managed API, so if you aren't reading the ObjectARX documentation, you won't know certain access points even exist. The managed API documentation is still easier to use for many things, but when you are trying to find a way to accomplish a new task with the API, remember to look in the ObjectARX documentation for methods that are missing from the managed API.
-- Sinc
http://www.ejsurveying.com
http://www.quux.biz
http://www.sincpac3d.com
Sinc