Results 1 to 3 of 3

Thread: Error Loading

  1. #1
    Active Member
    Join Date
    2009-08
    Posts
    62
    Login to Give a bone
    0

    Default Error Loading

    Hi, I'm having trouble loading any vb.net app that I create. I always get the same attached error message / details!!!

    I have success with AutoCAD project wizard however this is in XAML and I need a windows app.
    http://through-the-interface.typepad...velopment.html

    The samples in C:\ObjectARX 2010 work fine.

    It create HelloWorld class app I do the following. What am I missing? Please help. Thanks.

    1. Create new vs2008 class project
    2. Add AcDbMgd.dll & AcMgd.dll from C:\ObjectARX 2010\inc-win32
    3. Set the project debug to C:\Program Files\AutoCAD MEP 2010\acad.exe
    4. Start the App


    Code:
    Imports System
    Imports Autodesk.AutoCAD.Runtime
    Imports Autodesk.AutoCAD.ApplicationServices
    Imports Autodesk.AutoCAD.DatabaseServices
    Imports Autodesk.AutoCAD.Geometry
    Imports Autodesk.AutoCAD.EditorInput
    
    <Assembly: ExtensionApplication(GetType(HelloWorld.HelloWorldApp))> 
    <Assembly: CommandClass(GetType(HelloWorld.HelloWorldCommands))> 
    
    Namespace HelloWorld
        Public Class HelloWorldApp
    
            Implements Autodesk.AutoCAD.Runtime.IExtensionApplication
    
            Public Sub Initialize() Implements Autodesk.AutoCAD.Runtime.IExtensionApplication.Initialize
    
            End Sub
    
    
            Public Sub Terminate() Implements Autodesk.AutoCAD.Runtime.IExtensionApplication.Terminate
    
            End Sub
        End Class
    
    
        Public Class HelloWorldCommands
            <Autodesk.AutoCAD.Runtime.CommandMethod("HELLO")> _
            Public Sub HelloCommand()
                Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(vbNewLine + "Hello World!" + vbNewLine)
            End Sub
        End Class
    End Namespace
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Active Member
    Join Date
    2009-08
    Posts
    62
    Login to Give a bone
    0

    Default Re: Error Loading

    Sorted it.
    My Project screen References tab, double-click on acdbmgd.dll to display its
    Properties, and set Copy Local to False

  3. #3
    I could stop if I wanted to kpblc2000's Avatar
    Join Date
    2006-09
    Posts
    212
    Login to Give a bone
    0

    Default Re: Error Loading

    Try to set CopyLocal for AcDbMgd.dll & AcMgd.dll to false

Similar Threads

  1. Error loading Family
    By dgarfield in forum Revit MEP - Families
    Replies: 3
    Last Post: 2012-05-15, 04:13 PM
  2. error when loading gps survey
    By dbutler.144607 in forum AutoCAD Civil 3D - Survey
    Replies: 2
    Last Post: 2009-07-27, 12:44 PM
  3. Error when loading custom linetype - Error reading shape file
    By drafting.82475 in forum AutoCAD Customization
    Replies: 4
    Last Post: 2007-04-19, 07:36 AM
  4. Replies: 8
    Last Post: 2007-01-03, 02:32 PM
  5. Error when using TXT2MTXT command - Error loading file: leaderex.arx
    By Beginner Revit User in forum AutoCAD General
    Replies: 2
    Last Post: 2006-07-12, 02:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •