acad 2007 acad 2008 tlb's

acad 2007 acad 2008 tlb's

Anonymous
Not applicable
306 Views
1 Reply
Message 1 of 2

acad 2007 acad 2008 tlb's

Anonymous
Not applicable
Hello, I'm working on a project and I need to import two libraries in the same project group with an unique namespace. They are Autocad 2004 Type library and Autocad 2008 Type library. I've added on of them without problems but when I try to add the second one the program fail and show a message : "A reference to Autocad 2004" could not be added. A reference to this typelibrary already exists. you must to remove the reference to autocad before adding this one"

so I can't add another diferent version, Can you help me?

thanks a lot

I don't speak englis very much... sorry. I'm from Spain

bye
0 Likes
307 Views
1 Reply
Reply (1)
Message 2 of 2

cadMeUp
Collaborator
Collaborator
They are basically the same typelibrary that is why it won't let you do that. 2008 is just a newer version. In your solution you can have multiple projects that each have a different typelibrary but you can't have 2 different versions of the same typelibrary in one project.
Otherwise how would the compiler be able to determine which object, method, and properties you are referencing? The 2004 or the 2008? I believe they are all under the same namespace root and right there you have a clash. This is what I understand from my experience.
0 Likes