Results 1 to 2 of 2

Thread: Where should I put all this stuff?

  1. #1
    AUGI Addict DaveP's Avatar
    Join Date
    2002-12
    Location
    St Paul, MN
    Posts
    1,569
    Login to Give a bone
    0

    Default Where should I put all this stuff?

    Is there a recommended folder location to put your Add-ins (Windows 7)?
    I know the .addin files have to go to
    C:\ProgramData\Autodesk\Revit\Addins\2012
    but how about the .dlls?
    I've been dumping them in the
    C:\Program Files\Autodesk\Revit Architecture 2012\Program
    folder, but several programs need a configuration file, or an INI, or some other file that needs to be written to, and users don't have Write access to ..\Program
    Should there be a ..\Add-in folder in the 2012 folder?
    Something under ProgramData?
    It would be nice to group all of the Add-ins under one folder and let people write to that,
    Would make it easier to install, too.

  2. #2
    Member
    Join Date
    2010-06
    Location
    Brisbane, Australia
    Posts
    25
    Login to Give a bone
    0

    Default Re: Where should I put all this stuff?

    This might help: http://blogs.msdn.com/b/cjacks/archi...ram-files.aspx
    I think I've seen a better post about this somewhere but I can't find it right now.

    If you're building an installer to deploy your add-in then I'd install DLLs to somewhere like:
    "C:\Program Files\My Company\My Product"

    and any common user writeable files to:
    "C:\ProgramData\My Company\My Product"

    User specific files would go to:
    "C:\Users\<username>\AppData\Local\My Company\My Product"
    (you may want to change Local to LocalLow or Roaming depending on your needs)

    Be sure to use System.Environment.GetFolderPath() to find the above paths.

    If you want to do xcopy deployment instead of building an installer then I don't see any problems with deploying to an arbitrary folder somewhere (i.e. "C:\My Revit Add-Ins"). The only issue here is with handling user specific files.

    Also note that if your DLLs aren't in the same folder as Revit.exe and they have dependencies on other assemblies then you'll need to handle the AppDomain.AssemblyResolve event to resolve these dependencies at runtime.

Similar Threads

  1. BO218-2: Un-CAD: The IT Stuff Behind the CAD Stuff
    By Autodesk University in forum Business Owner
    Replies: 0
    Last Post: 2014-11-17, 05:38 AM
  2. Stuff Disappearing?
    By dgreen.49364 in forum Revit Architecture - General
    Replies: 20
    Last Post: 2009-02-24, 02:19 PM
  3. Replies: 5
    Last Post: 2006-06-29, 01:20 PM
  4. Tables stuff
    By rgorman in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2005-07-29, 05:52 PM

Posting Permissions

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