<?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: Problem with VB2012 and AutoCAD2015 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5091426#M43696</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;The program was originally created with VB2010 under AutoCAD 2012.&lt;BR /&gt;Now I have opened the program in VB2012 and changed the following:&lt;BR /&gt;References from the&lt;BR /&gt;- AcCoreMgd, AcDbMgd, AcMgd from the directory C: \ ObjectARX 2015&lt;BR /&gt;- Local copy set to False&lt;BR /&gt;-. Net Framework 4.5&lt;BR /&gt;&lt;BR /&gt;VB2012 does not show any errors.&lt;BR /&gt;At startup / debug but not AutoCAD 2015 special launched in 2012 AutoCAD.&lt;BR /&gt;&lt;BR /&gt;Why might that be?&lt;BR /&gt;Is there a solution for this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2014 15:16:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-12T15:16:01Z</dc:date>
    <item>
      <title>Problem with VB2012 and AutoCAD2015</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5084540#M43694</link>
      <description>&lt;P&gt;&lt;SPAN class="hps"&gt;Hi&lt;/SPAN&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Sorry for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my English.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;I have a program&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;VB2010&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AutoCAD2012&lt;/SPAN&gt;&lt;SPAN&gt;) to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;VB2012&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AutoCAD2015&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;taken&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Unfortunately&lt;/SPAN&gt;&lt;SPAN&gt;, when&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I start it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;now&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;netload&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;, nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Admit it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;still&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;features&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;VB2012&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AutoCAD2015&lt;/SPAN&gt;&lt;SPAN&gt;) must be observed&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Thank you for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports System
Imports System.IO
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Windows

Imports Autodesk.AutoCAD.Runtime.RuntimeSystem
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.ApplicationServices.Application
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.Colors
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.GraphicsSystem.View
Imports Autodesk.AutoCAD.Windows
Imports Autodesk.AutoCAD.Runtime

&amp;lt;Assembly: CommandClass(GetType(LB_System_Standrohr.MyCommands))&amp;gt; 

Namespace LB_System_Standrohr

    Public Class MyCommands

        &amp;lt;CommandMethod("LB_Standrohr")&amp;gt;
        Public Sub FormLoad1()


            Dim myDoc As Document = DocumentManager.MdiActiveDocument
            Dim myDB As Database = myDoc.Database

            Using myTrans As Transaction = myDB.TransactionManager.StartTransaction
                Try

                    '--Linientyp laden "VERDECKT" und "STRICHPUNKT"
                    Dim myLineTypTable As LinetypeTable
                    myLineTypTable = myTrans.GetObject(myDB.LinetypeTableId, OpenMode.ForRead)

                    Dim myVERDECKT As String = "VERDECKT"
                    If myLineTypTable.Has(myVERDECKT) = False Then
                        myDB.LoadLineTypeFile(myVERDECKT, "acad.lin")
                    End If

                    Dim mySTRICHPUNKT As String = "STRICHPUNKT"
                    If myLineTypTable.Has(mySTRICHPUNKT) = False Then
                        myDB.LoadLineTypeFile(mySTRICHPUNKT, "acad.lin")
                    End If

            '--Form laden bzw. aufrufen
            Dim FormObj1 As LB_System = New LB_System
            FormObj1.StartPosition = Forms.FormStartPosition.CenterScreen
            FormObj1.ShowDialog()
        End Sub

    End Class

End Namespace&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 05:47:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5084540#M43694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-10T05:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VB2012 and AutoCAD2015</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5084928#M43695</link>
      <description>&lt;P&gt;It seems to be a porting problem, check all of the base things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- AutoCAD 2015 is not binary compatible with previous versions, you have to recompile using NET framework 4.5.0 or 4.5.1 (see application properties)&lt;/P&gt;&lt;P&gt;- you must reference dll from ObjectARX 2015 (AcMgd, AcDbMgd, ecc.). Check reference folders also in project properties.&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, 10 Jun 2014 10:11:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5084928#M43695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-10T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VB2012 and AutoCAD2015</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5091426#M43696</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;The program was originally created with VB2010 under AutoCAD 2012.&lt;BR /&gt;Now I have opened the program in VB2012 and changed the following:&lt;BR /&gt;References from the&lt;BR /&gt;- AcCoreMgd, AcDbMgd, AcMgd from the directory C: \ ObjectARX 2015&lt;BR /&gt;- Local copy set to False&lt;BR /&gt;-. Net Framework 4.5&lt;BR /&gt;&lt;BR /&gt;VB2012 does not show any errors.&lt;BR /&gt;At startup / debug but not AutoCAD 2015 special launched in 2012 AutoCAD.&lt;BR /&gt;&lt;BR /&gt;Why might that be?&lt;BR /&gt;Is there a solution for this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2014 15:16:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5091426#M43696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-12T15:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VB2012 and AutoCAD2015</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5091574#M43697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see some problems:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.- A missing space + underscore after the command attribute&lt;/P&gt;&lt;P&gt;2.-The call to the form LB_System shoud be :&lt;FONT color="#0000FF"&gt;Application.ShowModalDialog(FormObj1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;3.- Not sure if the positioning of the form will work, I usually set the form positioning in the form itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaston Nunez&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2014 15:55:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5091574#M43697</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2014-06-12T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VB2012 and AutoCAD2015</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5091634#M43698</link>
      <description>Not sure what's your last problem... you mean that when you start debugging you don't see AutoCAD 2015 starting automatically? You should check the project properties, debug panel. There you find the program that Visual Studio will start when debugging. If the project worked already with AutoCAD 2012, you should see the previous path, that you may change to 2015. Also, when AutoCAD starts, don't expect that the DLL will be loaded automatically. You must manually execute NETLOAD and pick the dll in the project/bin/debug folder. Alternatively, you may write a little script and add it to the startup parameters of AutoCAD, so that the debug dll will be loaded at every debug launch.</description>
      <pubDate>Thu, 12 Jun 2014 16:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5091634#M43698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-12T16:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with VB2012 and AutoCAD2015</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5099188#M43699</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I have my problem to solve now.&lt;BR /&gt;&lt;BR /&gt;It was up to the ... vbproj.user file.&lt;BR /&gt;Here I have adapted these directories and now it works.&lt;BR /&gt;- &amp;lt;ReferencePath&amp;gt; C: \ ObjectARX 2015 \ inc &amp;lt;/ ReferencePath&amp;gt;&lt;BR /&gt;- &amp;lt;StartProgram&amp;gt; C: \ Program Files \ Autodesk \ AutoCAD 2015 \ acad.exe &amp;lt;/ Start Program&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again for the suggestions.&lt;BR /&gt;&lt;BR /&gt;greeting&lt;BR /&gt;&lt;BR /&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 08:37:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-vb2012-and-autocad2015/m-p/5099188#M43699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-17T08:37:15Z</dc:date>
    </item>
  </channel>
</rss>

