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

VBA - AeccCorridor from AeccDbCorridor

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

VBA - AeccCorridor from AeccDbCorridor

I've experience in VBA, but little with VBA within Civil3D.  It looks like the API provides everything I'm looking for, with one critical gap: the entities in my file are of type "AeccDbCorridor" (notice the "Db") which doesn't allow me to set them to the type "AeccCorridor" from which I have access to methods to extract feature line points.  If I use a Variant type, I do not have access to this level of information.

 

I assume that "Db" refers to "database" and perhaps it's because this corridor is linked to other files that is of this different type.

 

Any help would be much appreciated!

 

Chris Johnson
Technologist/Visualization Specialist at CH2M HILL

2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: Anonymous

Hi Chris, welcome to the Civil 3D forum! Since you are looking for programming help, I suggest posting API related queries over in the C3D Customization forum: http://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190

 

You should be able to use normal selection methods in VBA to work with the Aecc* objects. Have you had a look at the Sample code? C:\Program Files\Autodesk\AutoCAD Civil 3D 2013\Sample\Civil 3D API\COM\Vba\Corridor

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
Anonymous
in reply to: Jeff_M

Thanks Jeff_M! I got what I was looking for. Sweetcakes.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report