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: 

2006 VBA GetInterface problem

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
147 Views, 3 Replies

2006 VBA GetInterface problem

I have just installed Civil 3D 2006 side-by side with Civil 3D 2005.
I am not capable of obtaining the Civil application object in 2006 VBA.
I have tried both:
Set g_oCivilApp =
ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication")
and:
Set g_oCivilApp =
ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.3.0")
with the same result, a Run-time error message on trying to execute this
line of code.


In Civil 3D 2005 this is successful:
Set g_oCivilApp =
ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.2.0")


I have made this same question via ADN DevHelp Online, but have no answer
yet.
Any suggestions?
Thanks in advance.


Reinaldo Togores
EGI-CAD Research Group
University of Cantabria (Spain)
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Reinaldo,


Your code looks exactly correct. In the 2006 application did you modify the
references to the ones for 2006?


Regards,


Peter Funk
Autodesk, Inc.


"R. Togores" wrote in message
news:4813080@discussion.autodesk.com...
>I have just installed Civil 3D 2006 side-by side with Civil 3D 2005.
> I am not capable of obtaining the Civil application object in 2006 VBA.
> I have tried both:
> Set g_oCivilApp =
> ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication")
> and:
> Set g_oCivilApp =
> ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.3.0")
> with the same result, a Run-time error message on trying to execute this
> line of code.
>
>
> In Civil 3D 2005 this is successful:
> Set g_oCivilApp =
> ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.2.0")
>
>
> I have made this same question via ADN DevHelp Online, but have no answer
> yet.
> Any suggestions?
> Thanks in advance.
>
>
> Reinaldo Togores
> EGI-CAD Research Group
> University of Cantabria (Spain)
Message 3 of 4
Anonymous
in reply to: Anonymous

Hi Peter,
Yes, I modified the references according to the 2006 Developer Help file.
I am presently uninstalling 2005 and will try to reinstall 2006...
I'll let you know if it works.
Thanks,
Reinaldo


; "Inc." escribi� en el
mensaje news:4813175@discussion.autodesk.com...
> Reinaldo,
>
>
> Your code looks exactly correct. In the 2006 application did you modify
> the references to the ones for 2006?
>
>
> Regards,
>
>
> Peter Funk
> Autodesk, Inc.
>
>
> "R. Togores" wrote in message
> news:4813080@discussion.autodesk.com...
>>I have just installed Civil 3D 2006 side-by side with Civil 3D 2005.
>> I am not capable of obtaining the Civil application object in 2006 VBA.
>> I have tried both:
>> Set g_oCivilApp =
>> ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication")
>> and:
>> Set g_oCivilApp =
>> ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.3.0")
>> with the same result, a Run-time error message on trying to execute this
>> line of code.
>>
>>
>> In Civil 3D 2005 this is successful:
>> Set g_oCivilApp =
>> ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.2.0")
>>
>>
>> I have made this same question via ADN DevHelp Online, but have no answer
>> yet.
>> Any suggestions?
>> Thanks in advance.
>>
>>
>> Reinaldo Togores
>> EGI-CAD Research Group
>> University of Cantabria (Spain)
Message 4 of 4
Anonymous
in reply to: Anonymous

Just for the record, I had the same problem with the preview release as
well, Peter. Can you list off the required references for basic C3D VBA
programs, assuming we're just using the C3D objects, please?
--
James Wedding, P.E.
Technology Manager &
Associate
Jones & Boyd, Inc.
Dallas, TX
XP/2 on P4-3.4/1G
LDT2005SP1 & C3D2005SP1






Peter Funk - Auto desk wrote:
> Reinaldo,
>
>
> Your code looks exactly correct. In the 2006 application did you modify the
> references to the ones for 2006?
>
>
> Regards,
>
>
> Peter Funk
> Autodesk, Inc.
>
>
> "R. Togores" wrote in message
> news:4813080@discussion.autodesk.com...
>
>>I have just installed Civil 3D 2006 side-by side with Civil 3D 2005.
>>I am not capable of obtaining the Civil application object in 2006 VBA.
>>I have tried both:
>>Set g_oCivilApp =
>>ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication")
>>and:
>>Set g_oCivilApp =
>>ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.3.0")
>>with the same result, a Run-time error message on trying to execute this
>>line of code.
>>
>>
>>In Civil 3D 2005 this is successful:
>>Set g_oCivilApp =
>>ThisDrawing.Application.GetInterfaceObject("AeccXUiLand.AeccApplication.2.0")
>>
>>
>>I have made this same question via ADN DevHelp Online, but have no answer
>>yet.
>>Any suggestions?
>>Thanks in advance.
>>
>>
>>Reinaldo Togores
>>EGI-CAD Research Group
>>University of Cantabria (Spain)

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

Post to forums  

Rail Community


Autodesk Design & Make Report