.NET

Reply
*john m
Message 1 of 5 (133 Views)

Dang!

133 Views, 4 Replies
05-19-2005 03:59 PM
Hello,

I wanted to use VB dotNet to make my forms and also for the various
tools for serializing objects.

But it seems very difficult to get a hold of some basic autocad entities
this way.

For example i want to use file dependencies to see if the user has
already accessed the jobdata.xml file i am working with.

what do i need to set a reference to? i see file dependencies in the
object browser but i can't seem to get them to show up elsewhere.

Can i call dotNet constructs from VBA? Or vice-versa?

Is the 2005 beta easier to use with autocad objects?

thanks for any input

jm
*Albert Szilvasy
Message 2 of 5 (133 Views)

Re: Dang!

05-19-2005 05:40 PM in reply to: *john m
The beauty of .NET is that you can choose the API that you use. You can use
NET API, the COM API and the C++ API within the same function.

If you find the .NET API is more difficult to use compared to the COM API
then I recommend that you simply use the COM API. The only thing that you
are going to miss out is the improved performance that you get from the .NET
API.

There's a ease of use/performance trade off that you need to make:

Performance:
Unmanaged C++ API is better than .NET API is better than COM API

Learning curve/ease of use:
COM API is better than .NET API is better than unmanaged C++ API.

The thing to keep in mind is what I said in the first paragraph. You can mix
and match these within the same function so you never have to commit at the
beginning of the project. You can start out with what you feel most
comfortable with and mix in other APIs as you need.

Albert

"john m" wrote in message
news:4851235@discussion.autodesk.com...
Hello,

I wanted to use VB dotNet to make my forms and also for the various
tools for serializing objects.

But it seems very difficult to get a hold of some basic autocad entities
this way.

For example i want to use file dependencies to see if the user has
already accessed the jobdata.xml file i am working with.

what do i need to set a reference to? i see file dependencies in the
object browser but i can't seem to get them to show up elsewhere.

Can i call dotNet constructs from VBA? Or vice-versa?

Is the 2005 beta easier to use with autocad objects?

thanks for any input

jm
*Tony Tanzillo
Message 3 of 5 (133 Views)

Re: Dang!

05-19-2005 09:27 PM in reply to: *john m
"Albert Szilvasy" wrote

>> If you find the .NET API is more difficult to use compared
>> to the COM API then I recommend that you simply use the
>> COM API. The only thing that you are going to miss out is
>> the improved performance that you get from the .NET API.

But there are a few things that the .NET API offers
which are not available via the COM API.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
*Albert Szilvasy
Message 4 of 5 (133 Views)

Re: Dang!

05-19-2005 10:35 PM in reply to: *john m
True. Hopefully, those are easy to learn. I think the orignal poster was
concerned about the overhead that ObjectIds bring into drawing manipulation.
The COM API for drawing manipulation is pretty complete and easy to use
although somewhat slow.

"Tony Tanzillo" wrote in message
news:4851405@discussion.autodesk.com...
"Albert Szilvasy" wrote

>> If you find the .NET API is more difficult to use compared
>> to the COM API then I recommend that you simply use the
>> COM API. The only thing that you are going to miss out is
>> the improved performance that you get from the .NET API.

But there are a few things that the .NET API offers
which are not available via the COM API.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
*john m
Message 5 of 5 (133 Views)

Re: Dang!

05-20-2005 06:12 AM in reply to: *john m
OH!

see i hadn't thought of that

i will give that a try i think it's a great idea

THANKS!

"Albert Szilvasy" wrote in message
news:4851412@discussion.autodesk.com...
True. Hopefully, those are easy to learn. I think the orignal poster was
concerned about the overhead that ObjectIds bring into drawing manipulation.
The COM API for drawing manipulation is pretty complete and easy to use
although somewhat slow.

"Tony Tanzillo" wrote in message
news:4851405@discussion.autodesk.com...
"Albert Szilvasy" wrote

>> If you find the .NET API is more difficult to use compared
>> to the COM API then I recommend that you simply use the
>> COM API. The only thing that you are going to miss out is
>> the improved performance that you get from the .NET API.

But there are a few things that the .NET API offers
which are not available via the COM API.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.