.NET

Reply
Active Contributor
42 Posts
0 Kudos
Registered: ‎11-06-2012
Post 1 of 8

Add many paths into loader key

353 Views, 7 Replies
01-02-2014 01:47 AM

Hi everybody,

 

I try to add some paths into registry value as picture:

test.png

Is there any way to do this?

 

Thanks for any help.

Mentor
232 Posts
30 Kudos
Registered: ‎11-09-2012
Post 2 of 8

Re: Add many paths into loader key

01-02-2014 05:05 AM in reply to: xdbk07
I am afraid that multipath is not valid for 'LOADER' key. Better to create individual key for test2.dll
ADN Support Specialist
433 Posts
67 Kudos
Registered: ‎05-22-2006
Post 3 of 8

Re: Add many paths into loader key

01-02-2014 09:44 AM in reply to: xdbk07

The usual way to do this is to create a 'loader DLL' that you set the demand load registry keys for. This loader DLL then takes care of loading any other required modules. For AutoCAD 2012 and above you should also look at the AutoLoader feature as a simple way to define demand load settings for your plugins.

 

 

Cheers,

Stephen Preston
Autodesk Developer Network
Active Contributor
42 Posts
0 Kudos
Registered: ‎11-06-2012
Post 4 of 8

Re: Add many paths into loader key

01-02-2014 05:22 PM in reply to: xdbk07

Thanks for the comments. But I have many dll files, so I don't want to create many keys in registry.

Hi Stephen,

Can you tell more clearly or provide any links to learn?

Valued Mentor
341 Posts
53 Kudos
Registered: ‎05-12-2009
Post 5 of 8

Re: Add many paths into loader key

01-02-2014 07:27 PM in reply to: xdbk07

As Stephen mentioned AutoLoader and a "Loader dll" I use AutoLoader to load a assembly that has no other references other than AutoCAD & BCL.

 

It just knows to find a file in same location that contains paths to network locations which contains another file for instructions.

The instructions tell it to copy, copy if file is newer, delete, include subdirectories, etc..... files inside its .bundle folder,

and load any assemblies, cui, etc... that needs to be loaded.

Also update the file used to find its location if needed to move.

 

 

 

 

 

You can also find your answers @ TheSwamp
ADN Support Specialist
433 Posts
67 Kudos
Registered: ‎05-22-2006
Post 6 of 8

Re: Add many paths into loader key

01-03-2014 10:21 AM in reply to: xdbk07

The handout for this AU class is probably a good starting point - https://events.au.autodesk.com/connect/sessionDetail.ww?SESSION_ID=2142. Otherwise, search for 'Autoloader' on the ADN DevBlog, Kean's Through the Interface blog, this forum, or TheSwamp.

Cheers,

Stephen Preston
Autodesk Developer Network
Active Contributor
42 Posts
0 Kudos
Registered: ‎11-06-2012
Post 7 of 8

Re: Add many paths into loader key

01-05-2014 05:07 PM in reply to: StephenPreston
Thank Stephen, but I cannot access to provided link.
*Expert Elite*
9,817 Posts
1,211 Kudos
Registered: ‎06-29-2007
Post 8 of 8

Re: Add many paths into loader key

01-06-2014 12:25 AM in reply to: xdbk07

Hi,

 

>> but I cannot access to provided link

The point on the end is too much, should be:

https://events.au.autodesk.com/connect/sessionDetail.ww?SESSION_ID=2142

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!