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

2006 .net dll appears to run properly on 2006 and 2007

3 REPLIES 3
Reply
Message 1 of 4
civil3d.net
165 Views, 3 Replies

2006 .net dll appears to run properly on 2006 and 2007

it appears .net dll compiled using 2006 will run on 2007.

anyone out there have any experience with running the same dll on different versions of autocad?

thanks in advance
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: civil3d.net

According to AutoDesk's document on ObjectARX, the general rule is that
ObjectARX programs compiled for older version of AutoCAD usually work with
later version of AutoCAD (although not 100% garanteed), while programs
developed and compiled on later version will not run on older version of
AutoAD.

Since .NET dll is also ObjectARX program, I'd expect the one developed on
Acad2006 runs on Acad2007. No supprise here. However, if your .NET dll from
Acad2006 does not run on Acad2007, no supprise either, because .NET API on
Acad2006 was so incomplete and limited.

wrote in message news:5232375@discussion.autodesk.com...
it appears .net dll compiled using 2006 will run on 2007.

anyone out there have any experience with running the same dll on different
versions of autocad?

thanks in advance
Message 3 of 4
Anonymous
in reply to: civil3d.net

"Norman Yuan" wrote

>> According to AutoDesk's document on ObjectARX, the general rule is that
>> ObjectARX programs compiled for older version of AutoCAD usually work with
>> later version of AutoCAD (although not 100% garanteed), while programs
>> developed and compiled on later version will not run on older version of
>> AutoAD.

That's only the case when the releases are binary
compatible, as 2000 through 2002, and 2004 through
2006 are. AutoCAD 2007 is not binary compatible with
earlier releases so no ARX built for previous releases
will work.

.NET DLLs are just windows DLLs and unless they are
dependent on something specific in AutoCAD (such as
acmgd.dll, acdbmgd.dll, and so on), they will load into
any release of AutoCAD that provides a way to do that.
You can also have both .NET 1.1 and .NET 2.0 runtimes
loaded into the same process.

I suspect the OP was able to load the 2006 dll because
it was not referencing a release-dependent assembly,
or he only loaded it, but did not do anything that caused
any of those referenced assemblies to be loaded.

Remember that you can load a .NET assembly, without
loading its referenced assemblies (they are not loaded
until they are actually needed).


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
Message 4 of 4
Anonymous
in reply to: civil3d.net

Thanks for your important correction of my statement. That means, every 3 or
4 years, you most likely need to recompile your ObjectARX/.NET API app, if
you want them to run on latest Acad.

"Tony Tanzillo" wrote in message
news:5232759@discussion.autodesk.com...
"Norman Yuan" wrote

>> According to AutoDesk's document on ObjectARX, the general rule is that
>> ObjectARX programs compiled for older version of AutoCAD usually work
>> with
>> later version of AutoCAD (although not 100% garanteed), while programs
>> developed and compiled on later version will not run on older version of
>> AutoAD.

That's only the case when the releases are binary
compatible, as 2000 through 2002, and 2004 through
2006 are. AutoCAD 2007 is not binary compatible with
earlier releases so no ARX built for previous releases
will work.

.NET DLLs are just windows DLLs and unless they are
dependent on something specific in AutoCAD (such as
acmgd.dll, acdbmgd.dll, and so on), they will load into
any release of AutoCAD that provides a way to do that.
You can also have both .NET 1.1 and .NET 2.0 runtimes
loaded into the same process.

I suspect the OP was able to load the 2006 dll because
it was not referencing a release-dependent assembly,
or he only loaded it, but did not do anything that caused
any of those referenced assemblies to be loaded.

Remember that you can load a .NET assembly, without
loading its referenced assemblies (they are not loaded
until they are actually needed).


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

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