.NET

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

Add many paths into loader key

351 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 (332 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
ADN Support Specialist
StephenPreston
Posts: 429
Registered: ‎05-22-2006
Message 3 of 8 (312 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 (289 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: 338
Registered: ‎05-12-2009
Message 5 of 8 (282 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
ADN Support Specialist
StephenPreston
Posts: 429
Registered: ‎05-22-2006
Message 6 of 8 (265 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 (239 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,607
Registered: ‎06-29-2007
Message 8 of 8 (226 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.