AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*R. Togores
Message 1 of 4 (86 Views)

2006 VBA GetInterface problem

86 Views, 3 Replies
04-13-2005 12:52 AM
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)
*Peter Funk - Autodesk, Inc.
Message 2 of 4 (86 Views)

Re: 2006 VBA GetInterface problem

04-13-2005 04:13 AM in reply to: *R. Togores
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)
*R. Togores
Message 3 of 4 (86 Views)

Re: 2006 VBA GetInterface problem

04-13-2005 04:47 AM in reply to: *R. Togores
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)
*James Wedding, P.E.
Message 4 of 4 (86 Views)

Re: 2006 VBA GetInterface problem

04-13-2005 06:08 AM in reply to: *R. Togores
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)
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.