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: 

Error when attempting to use surface functions

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
OceanaPolynom
575 Views, 4 Replies

Error when attempting to use surface functions

I want to use VBA to interpolate elevations from an existing surface object. I think that it should look like this:

elevation=oSurface.FindElevationAtXY(xi,yi)

When I run the code I get an error message at this line:

Set AeccApp = ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication")

The error is "problem with loading application"

I have attached 2 jpg files, one showing the code and the error message, the other showing the references that I selected.  I am running C3D 2016 on Windows 7 Professional 64 bit

Thank you

John

 

4 REPLIES 4
Message 2 of 5
Jeff_M
in reply to: OceanaPolynom

Pretty sure you need to include the AeccApplication version:
"AeccXUiLand.AeccApplication.10.5"
Jeff_M, also a frequent Swamper
EESignature
Message 3 of 5
OceanaPolynom
in reply to: Jeff_M

Thanks for your help.  There doesn't seem to be anything else That I can add.  I have attached a third jpg (Unmarked References.jpg) that shows the relevant area of the References window.

Thank you

John

Message 4 of 5
hippe013
in reply to: OceanaPolynom

I believe what @Jeff_M is saying is try: 

Set AeccApp = ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.10.5")
Message 5 of 5

Thanks a lot, this solved the problem.

John

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report