Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

'AeccLabelDimensionAnchorType' enum type redefinition

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

'AeccLabelDimensionAnchorType' enum type redefinition

Currently I am trying to export data of Corridor, Alignment, Surface and Pipe network, using ActiveX API, the language for programming is C++/COM. Now it's already OK to access corridor, alignment and surface objects, but when I trying to access the pipe object in the same way, it fail , I got a compile error:" 'AeccLabelDimensionAnchorType' enum type redefinition". I  reference to the libraries by:

#import "c:/Program Files/Common Files/Autodesk Shared/acac18enu.tlb" 

#import "c:/Program Files/Common Files/Autodesk Shared/AecXBase65.tlb"

#import "c:/Program Files/Common Files/Autodesk Shared/AecXUIBase65.tlb"

#import "c:/Program Files/Common Files/Autodesk Shared/Civil Engineering 80/AeccXLand.tlb"

#import "c:/Program Files/Common Files/Autodesk Shared/Civil Engineering 80/AeccXUiLand.tlb"

#import "c:/Program Files/Common Files/Autodesk Shared/Civil Engineering 80/AeccXPipe.tlb"

#import "c:/Program Files/Common Files/Autodesk Shared/Civil Engineering 80/AeccXUiPipe.tlb"

And then I found that the enum type 'AeccLabelDimensionAnchorType' is definded in both AeccXLand and AeccXPipe, which cause the problem, is there any idea that I can avoid this problem, thanks a lot!

@ I am using civil 3d 2011.

2 REPLIES 2
Message 2 of 3
augusto.goncalves
in reply to: Anonymous

Hi,

 

After the #import, put an 'exclude'  and it should work...

 

#import "C:/.../AeccXPipe.tlb" exclude("AeccLabelDimensionAnchorType")

 

Regards,

 

Augusto Goncalves

Autodesk Developer Network

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 3
Anonymous
in reply to: augusto.goncalves

Problem solved, thank you very much!

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report