'AeccLabelDimensionAnchorType' enum type redefinition

'AeccLabelDimensionAnchorType' enum type redefinition

Anonymous
Not applicable
660 Views
2 Replies
Message 1 of 3

'AeccLabelDimensionAnchorType' enum type redefinition

Anonymous
Not applicable

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.

0 Likes
661 Views
2 Replies
Replies (2)
Message 2 of 3

augusto.goncalves
Alumni
Alumni

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
0 Likes
Message 3 of 3

Anonymous
Not applicable

Problem solved, thank you very much!

0 Likes