Chris,
From a developer standpoint, the use of INI files seems rather
outdated. However, they have one thing going for them: they are easy to
edit with a standard text editor by someone without experience with XML.
Revit's INI file is used for many other things other than adding
external applications and it can be edited by any Revit user, so from
that standpoint it makes perfect sense to keep it as it is.
Perhaps a better alternative would be a separate XML file just for
initializing external applications. I agree with David: at least we
don't have to hack the registry.
My 2¢,
-Danny
CArps wrote:
> This is an ini file from the samples folder, note the ClassName attribute.
>
> [Revit.ini must be Unicode file, edit with Notepad; if there are no foreign characters it can be ANSI though]
>
> [ExternalCommands]
> ECCount=1
> ECName1="ArchSample1"
> ECDescription1="Retrieves properties from the elements in the project and exports to an Excel file"
> ECClassName1=ArchSample1.Command
> ECAssembly1="C:\Revit API\Samples\ArchSample1\bin\ArchSample1.dll"
>
>
> IMHO this whole mechanism needs to be replaced by something more reasonable. How can they expect two different developers to modify this file for installs or uninstalls?
>
> .INI files are DOS technology, it needs to be upgraded to use an XML file at the very least.
>
> Chris Arps