<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get civil objects function civil 3d 2015 in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5517417#M9852</link>
    <description>&lt;P&gt;Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spent a good bit of time&amp;nbsp;over the weekend looking for anything in civil 3D Dev. guide on&amp;nbsp;VBA&amp;nbsp; settings to connect to the civil object.&lt;/P&gt;&lt;P&gt;attached are the library connections I was using and the function is the same as posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what about&amp;nbsp;something that reads the surfaces in a dwg.&amp;nbsp; As I said, It would be nice to be able to use some older VBA routines that I didn't convert to dot net. Maybe I should find the time to convert them or see if it's easier to connect with lisp for older routines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'get surface names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If (GetBaseCivilObjects() = False) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Dim surfaceName As String&lt;/P&gt;&lt;P&gt;Dim oAcadObject As AcadObject&lt;/P&gt;&lt;P&gt;Dim osurf As AeccSurface&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Each oAcadObject In ThisDrawing.ModelSpace&lt;/P&gt;&lt;P&gt;If (TypeOf oAcadObject Is AeccSurface) Then&lt;/P&gt;&lt;P&gt;Set osurf = oAcadObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;surfaceName = osurf.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;'print to command line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function GetBaseCivilObjects() As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dim oApp As AcadApplication&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set oApp = ThisDrawing.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ' NOTE - Always specify the version number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Const sAppName = "AeccXUiLand.AeccApplication.10.4"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oCivilApp = oApp.GetInterfaceObject(sAppName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If (g_oCivilApp Is Nothing) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Error creating " &amp;amp; sAppName &amp;amp; ", exit."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetBaseCivilObjects = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oDocument = g_oCivilApp.ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oAeccDatabase = g_oDocument.Database&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GetBaseCivilObjects = True&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2015 20:12:57 GMT</pubDate>
    <dc:creator>jcoon</dc:creator>
    <dc:date>2015-02-23T20:12:57Z</dc:date>
    <item>
      <title>Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5507323#M9848</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I just installed civil 3d 2015 with the VBA 7.1 enabler installed I thought I’d use a few routines I had made several years ago in VBA to speed up the drawing creation when I found out the get civil objects function fails at 10.4.&amp;nbsp;I read in the reference library was for civil 3d 2015 was 10.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a newer a newer way to retrieve the civil objects ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I connected the Autodesk Civil Engineering 10.4 UI Land Object library&lt;/P&gt;&lt;P&gt;And the Autodesk Civil Engineering 10.4 Land Object library as weel as the Autocad 2015 type library&lt;/P&gt;&lt;P&gt;I thought this would be all I needed to use a trusted routine I had used for years in many versions of civil 3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the old function I’ve used for years:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function GetBaseCivilObjects() As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dim oApp As AcadApplication&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set oApp = ThisDrawing.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ' NOTE - Always specify the version number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Const sAppName = "AeccXUiLand.AeccApplication.10.4"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oCivilApp = oApp.GetInterfaceObject(sAppName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If (g_oCivilApp Is Nothing) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Error creating " &amp;amp; sAppName &amp;amp; ", exit."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetBaseCivilObjects = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oDocument = g_oCivilApp.ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oAeccDatabase = g_oDocument.Database&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GetBaseCivilObjects = True&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;</description>
      <pubDate>Sat, 14 Feb 2015 13:20:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5507323#M9848</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-02-14T13:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5510037#M9849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;&lt;EM&gt;AeccXUiLand.AeccApplication.10.4&lt;/EM&gt;&lt;/STRONG&gt;" is the correct ProgID parameter for GetInterfaceObject.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; Is there a newer a newer way to retrieve the civil objects ?&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;As long as you use VBA it's the current method/API, if you want to change to C# or VB.NET you have a bit more options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to remember: there is a special forum for Civil 3D customization &lt;A href="https://forums.autodesk.com/t5/autocad-civil-3d-customization/bd-p/190" target="_self"&gt;&amp;gt;&amp;gt;&amp;gt;there&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 17:47:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5510037#M9849</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-02-17T17:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5510194#M9850</link>
      <description>&lt;P&gt;Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even with the function I attached and with "&lt;STRONG&gt;&lt;EM&gt;AeccXUiLand.AeccApplication.10.4&lt;/EM&gt;&lt;/STRONG&gt;" library attached I still seem to get and error&lt;/P&gt;&lt;P&gt;on programs that I 've run for years without issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These were VBA routines I didn't convert to dot net. I thought with 2015 and the new VBA 7.1 enablier I might be able&amp;nbsp;to&amp;nbsp;use some old rouutine to help finish a project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I keep looking. It's not a big issue as I have not used these routines in some time, as I said I thought I just need to change the function library numbers and i would be go to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help and confirming I had the correct library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 19:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5510194#M9850</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-02-17T19:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5510222#M9851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you want to continue...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; I still seem to get and error&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Which error message/number do you get (at what code-line)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 19:56:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5510222#M9851</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-02-17T19:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5517417#M9852</link>
      <description>&lt;P&gt;Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spent a good bit of time&amp;nbsp;over the weekend looking for anything in civil 3D Dev. guide on&amp;nbsp;VBA&amp;nbsp; settings to connect to the civil object.&lt;/P&gt;&lt;P&gt;attached are the library connections I was using and the function is the same as posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what about&amp;nbsp;something that reads the surfaces in a dwg.&amp;nbsp; As I said, It would be nice to be able to use some older VBA routines that I didn't convert to dot net. Maybe I should find the time to convert them or see if it's easier to connect with lisp for older routines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'get surface names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If (GetBaseCivilObjects() = False) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Dim surfaceName As String&lt;/P&gt;&lt;P&gt;Dim oAcadObject As AcadObject&lt;/P&gt;&lt;P&gt;Dim osurf As AeccSurface&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Each oAcadObject In ThisDrawing.ModelSpace&lt;/P&gt;&lt;P&gt;If (TypeOf oAcadObject Is AeccSurface) Then&lt;/P&gt;&lt;P&gt;Set osurf = oAcadObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;surfaceName = osurf.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;'print to command line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function GetBaseCivilObjects() As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dim oApp As AcadApplication&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set oApp = ThisDrawing.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ' NOTE - Always specify the version number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Const sAppName = "AeccXUiLand.AeccApplication.10.4"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oCivilApp = oApp.GetInterfaceObject(sAppName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If (g_oCivilApp Is Nothing) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Error creating " &amp;amp; sAppName &amp;amp; ", exit."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetBaseCivilObjects = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oDocument = g_oCivilApp.ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set g_oAeccDatabase = g_oDocument.Database&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GetBaseCivilObjects = True&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 20:12:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5517417#M9852</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-02-23T20:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5519475#M9853</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure to see a question in your post. ... or if your code fails then where does it fail and what error message you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; what about&amp;nbsp;something that reads the surfaces in a dwg.&amp;nbsp; &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; As I said, It would be nice to be able to use some older VBA routines&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You can use the older routines, just change the ProgID to the current version of Civil 3D and all should run well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 08:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5519475#M9853</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-02-25T08:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5542765#M9854</link>
      <description>&lt;P&gt;NEED A DIFFERENT LIBRARY? When I load a sample .DVB it tries to reference: Autodesk Civil Engineering 8.0 [land, survey, ui land, ui survey]&lt;/P&gt;&lt;P&gt;I beleive that's the problem but I'm not sure. I think they've depricated help for this so I don't know how to find out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My vanilla AutoCAD 2015 macros still work swimmingly&lt;/P&gt;&lt;P&gt;See image below, notice path in vba ui&amp;nbsp;caption&lt;/P&gt;&lt;P&gt;&lt;IMG alt="civil engineering 8.jpg" src="https://forums.autodesk.com/t5/image/serverpage/image-id/158606iB887D6022774E003/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" title="civil engineering 8.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:08:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5542765#M9854</guid>
      <dc:creator>Dylandavid</dc:creator>
      <dc:date>2015-03-16T15:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543015#M9855</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; When I load a sample .DVB it tries to reference&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Yep, not all samples are updated to fit the current Civil 3D release, so it might be necessary to update the references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 16:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543015#M9855</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-03-16T16:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543077#M9856</link>
      <description>&lt;P&gt;Dylanddavid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That sounds like what I was getting as well. All the Autocad only dvb worked fine. The civil 3d objects even with the updated link to library AeccXUiLand.AeccApplication.10.4&amp;nbsp;I could not get to work. I tought it was something I was doing wrong so I&amp;nbsp;even went into the C3D tutoral samples provided with the software and all the Civil ones have been removed. I guess the VBA only works with vanilla autocad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 17:01:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543077#M9856</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-03-16T17:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543489#M9857</link>
      <description>&lt;P&gt;Alfred&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see that I have the new library selected from vba 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have everything set correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543489#M9857</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-03-16T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543523#M9858</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let's exchange DVB files, because screenshots can't be tried &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have attached a DVB that is working for me on Civil 3D 2015, SP2, German on Windows 8.1 Prof. 64bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:24:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5543523#M9858</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-03-16T21:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5544428#M9859</link>
      <description>&lt;P&gt;Just to back up Alfred's case, with my newly installed Civil 3D 2015 SP2 with Win 7 64-bit Enterprise, the folloing simple code works (that is, the VBA code has no issue creating AeccApplication object (with reference set to "Autodesk,Civil Engineering 10.4 UI Land Object Library"):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option Explicit&lt;/P&gt;
&lt;P&gt;Public Sub CivilTest()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cadApp As AcadApplication&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim civilApp As AeccApplication&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set cadApp = ThisDrawing.Application&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set civilApp = cadApp.GetInterfaceObject("AeccXUiLand.AeccApplication.10.4")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox civilApp.ActiveDocument.FullName&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:06:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5544428#M9859</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2015-03-17T14:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5544500#M9860</link>
      <description>&lt;P&gt;Norman.yuan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wouldn't&amp;nbsp;you know it, &amp;nbsp;I didn't bring my lap[top in today becuase I had a project going out today. maybe I can get it during lunch otherwise I'll have to check tonight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks guys for looking into this. you guys are the best!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5544500#M9860</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-03-17T14:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5546553#M9861</link>
      <description>&lt;P&gt;Alfred, Norman.yuan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well it looks like it might be my machine. It's only a month old..... I have 2015 civil 3d installed with sp1 &amp;amp; 2 installed and I get the same error as before.&lt;/P&gt;&lt;P&gt;I tried both vba routines you posted. no joy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this means that I'm going to select the old vba appys that I liked and convert them to dot net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my machine is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;win 8.1 with AMD a10-5745m apu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error was -2147221005(80041f3)&amp;nbsp;&amp;nbsp; ..... problem in loading application&lt;/P&gt;&lt;P&gt;if anyone knows where or what to lok for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all your help with this. I'll contine to keep looking for a solution. The good side is that the AUTOCAD ONLY apps still work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:28:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5546553#M9861</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-03-18T14:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5546565#M9862</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you might try:&lt;/P&gt;
&lt;P&gt;run a repair installation of your Civil 3D (antivirus off, internet off, as admin)&lt;/P&gt;
&lt;P&gt;start Excel, within that VBA and just try to activate the reference to the C3D lib's, that might do some registration if missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck, - alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:35:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5546565#M9862</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-03-18T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5546606#M9863</link>
      <description>&lt;P&gt;Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds like a plan for lunch. Thanks for the idea&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:50:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5546606#M9863</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-03-18T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5553914#M9864</link>
      <description>&lt;P&gt;MY USER ERROR&lt;/P&gt;&lt;P&gt;Your dvb worked for me. I didn't have the .application set up. Thanks for the example file&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 20:46:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5553914#M9864</guid>
      <dc:creator>Dylandavid</dc:creator>
      <dc:date>2015-03-23T20:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5612927#M9865</link>
      <description>&lt;P&gt;Hello, my name is David and I have recently installed Autocad Civil 3D 2015 and VBA Enabler 7.1 for it to run old VBA Routines that are currently working in 2013 version with the VBA enabler 6.3 for 2013. Everything is installed and when I run the routine it goes through the prompts but once get to certain part where makes custom layer gives me the below error then takes me to my .dvb file. Checked under the references in the VBA editor and 2015 content library is selected. Is there something else that needs to be done, wondering what the problem could be. Thank you for any help you can give.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="ActiveX 2015 WPA error.JPG" alt="ActiveX 2015 WPA error.JPG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/166227i61BA0BCB1F1F7FD1/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 17:06:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5612927#M9865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T17:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5613115#M9866</link>
      <description>&lt;P&gt;UZA1717,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed everything from Alfred posts and still could not get mine to work. I used the samples Alfred and Norman.yuan posted and they just didn't work on my machine. I ended up rewriting them for dot net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I couldn't help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 18:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5613115#M9866</guid>
      <dc:creator>jcoon</dc:creator>
      <dc:date>2015-04-29T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get civil objects function civil 3d 2015</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5622017#M9867</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&amp;gt;&amp;gt; Is there something else that needs to be done&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;We don't see your code, what's the code-lines that bring up that message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2015 20:49:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-civil-objects-function-civil-3d-2015/m-p/5622017#M9867</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2015-05-05T20:49:41Z</dc:date>
    </item>
  </channel>
</rss>

