'AeccLabelDimensionAnchorType' enum type redefinition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.