.NET

Reply
Active Contributor
xdbk07
Posts: 42
Registered: ‎11-06-2012
Message 1 of 8 (349 Views)

Add many paths into loader key

349 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
mzakiralam
Posts: 231
Registered: ‎11-09-2012
Message 2 of 8 (330 Views)

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
Board Manager
StephenPreston
Posts: 419
Registered: ‎05-22-2006
Message 3 of 8 (310 Views)

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
xdbk07
Posts: 42
Registered: ‎11-06-2012
Message 4 of 8 (287 Views)

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
jeff
Posts: 337
Registered: ‎05-12-2009
Message 5 of 8 (280 Views)

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
Board Manager
StephenPreston
Posts: 419
Registered: ‎05-22-2006
Message 6 of 8 (263 Views)

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
xdbk07
Posts: 42
Registered: ‎11-06-2012
Message 7 of 8 (237 Views)

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*
Alfred.NESWADBA
Posts: 9,420
Registered: ‎06-29-2007
Message 8 of 8 (224 Views)

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 Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!