+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Full Member CaveMan's Avatar
    Computer Details
    CaveMan's Computer Details
    Operating System:
    XP - Win7 32 & 64
    Computer:
    64Bit Hybrid
    CPU:
    Intel i7
    RAM:
    12 Gig
    Graphics:
    GeForce GT 220
    Monitor:
    Dual Dell 22"
    Using
    AutoCAD 2011
    Join Date
    Jul 2011
    Location
    South Africa - JHB
    Posts
    40

    Question AutoCAD Adding ribbon tab on startup

    Registered forum members do not see this ad.

    Good Day

    Often when developing a .net application for AutoCAD one can add the "netload" command in the acaddoc.lsp file, and enable load acad.lsp with every drawing.

    However at times this does not function, as in Plant 3D, as there are other commands uploading, if a command is run like this it crashes AutoCAD?
    Code:
    (vmon)
    ;------------
    (command "netload" "C:\\VB.Net\\Development\\Plant3DHelpDesk\\bin\\Debug\\Plant3DHelpDesk.dll")
    (command "hd")
    Is there an alternative method of automatically loading a .Dll application into AutoCAD on startup?

    Any assistance much appreciated.
    Have an Idea it may have something to do with creating an .arx file??

    Regards
    Richard

  2. #2
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,045

    Default

    I stumbled upon this thread while looking for something else, and thought I'd answer your question whilst here....

    To load the .NET assembly at startup, you should use a Registry Loader for pre-2012 versions, as 2012 and newer support the Autoloader mechanism.

    Now, the registry loader will simply load your code (make CommandMethods and LispFunctions available, etc.), in order to invoke a method at load, we use the IExtensonApplication.Initialize() Method with an ExtensionApplication Attribute call prior to one's Namespace. This blog post should help.

    ObjectARX has nothing to do with the loading of .NET assemblies.

    Cheers
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    Full Member CaveMan's Avatar
    Computer Details
    CaveMan's Computer Details
    Operating System:
    XP - Win7 32 & 64
    Computer:
    64Bit Hybrid
    CPU:
    Intel i7
    RAM:
    12 Gig
    Graphics:
    GeForce GT 220
    Monitor:
    Dual Dell 22"
    Using
    AutoCAD 2011
    Join Date
    Jul 2011
    Location
    South Africa - JHB
    Posts
    40

    Default

    Hi There

    Sometimes a simple Thanks on a screen is not enough.
    Much appreciate your response, this was still unresolved on my side and value the information passed on.

    Mate!

    In Appreciation
    Richard

  4. #4
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,045

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by CaveMan View Post
    Mate!
    You're welcome; I'm happy to help.
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. Drawing1 at Autocad startup
    By pvd in forum AutoCAD General
    Replies: 50
    Last Post: 30th Jun 2011, 12:23 pm
  2. AutoCAD 2008 on startup
    By jay3791 in forum AutoCAD General
    Replies: 0
    Last Post: 24th Feb 2011, 05:25 pm
  3. Adding to ribbon
    By cbuckner in forum AutoCAD Beginners' Area
    Replies: 4
    Last Post: 19th Aug 2010, 03:20 pm
  4. Matt Stein (aka Ribbon Man) on the AutoCAD 2009 Ribbon
    By Between the Lines in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 7th Jun 2008, 03:20 am
  5. How to add a lsp file at AutoCAD startup
    By cash in forum AutoLISP, Visual LISP & DCL
    Replies: 11
    Last Post: 21st Aug 2007, 11:30 am

Tags for this Thread

Bookmarks

Posting Permissions

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