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)