PDA

View Full Version : Revit ini files to switch local and network


GuinnessCAD
2007-11-07, 04:12 PM
-Background: I have created an ini file for a network license of Revit and a local license of Revit. This is so that users can take laptops home to do work. I then run a batch file that will copy the data from network to local. There are 2 icons on the desktop for each Revit one is a "local" icon and the other is a "network" icon. Each of these icons are shortcuts for a batch file that switches "local-revit.ini" profile as the "revit.ini" and loads the local files or switches "networl-revit.ini" profile as the "revit.ini" and loads the network files.

-Problem when I run these batch files it eliminates any user custom settings that are stored in the .ini files. Is there a way to copy the user settings back and forth?

bferrer
2007-11-08, 09:19 PM
Mark,
You can probably have a little batch file fun and create a script that extracts out the custom info and appends it to your standard ini file.

Can you attach the two ini files?

Ben

GuinnessCAD
2007-11-12, 08:29 PM
What I ended up doing was creating a cscript to run within the batch file which finds and replaces text in the revit.inifile. So when I run the Network batch file what the cscript does is looks for the local path and replaces it with the network path, then runs revit, and vice versa for the local copy launch.