.NET

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

Add many paths into loader key

301 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 (282 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: 375
Registered: ‎05-22-2006
Message 3 of 8 (262 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 (239 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: 328
Registered: ‎05-12-2009
Message 5 of 8 (232 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: 375
Registered: ‎05-22-2006
Message 6 of 8 (215 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 (189 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: 8,982
Registered: ‎06-29-2007
Message 8 of 8 (176 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
-------------------------------------------------------------------------
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.