Author Topic: Revit.ini files and system variables.  (Read 3068 times)

0 Members and 1 Guest are viewing this topic.

Lonnie

  • Newt
  • Posts: 136
Revit.ini files and system variables.
« on: April 21, 2020, 06:03:25 PM »
I am coming here first.
I am trying to create my deployment with a e-mail address as my username. I've tried several ways but no such luck. Autocad uses the username which is great. All I have to do is append the server name to it. Can anyone help me figure it out?
It's the last line that is giving me fits.

Quote
[Revit.ini]
[Colors]
CustomColor1=000000
CustomColor2=0000ff
CustomColor3=00ffff
CustomColor4=00ff00
CustomColor5=ffff00
CustomColor6=ff0000
CustomColor7=ff00ff
CustomColor8=ffffff
CustomColor9=ffffff
CustomColor10=ffffff
CustomColor11=ffffff
CustomColor12=ffffff
CustomColor13=ffffff
CustomColor14=ffffff
CustomColor15=ffffff
CustomColor16=ffffff
BackgroundColor=0
HiliteColor=12401408
PreHiliteColor=12401408
ErrorColor=33023
[Directories]
ProjectPath=C:\DCAPPS\Revit\2021
ImportLineweightsNameDWG=\\dce\designdata\Cadd\DC REVIT\Shared content\Import_export\DCE-Standard.txt
LookupTableLocation=C:\ProgramData\Autodesk\RVT 2021\Lookup Tables\
RootPathForPointClouds=c:\dcapps\revit\2021
RootPathForPointClouds=C:\DCAPPS\Revit\2021\PointClouds
IESFileLocation=\\dce\designdata\Cadd\DC REVIT\Shared content\IES
LookupTableLocation=C:\DCAPPS\Revit\2021\
ExportToClassIFC=..\..\..\ProgramData\Autodesk\RVT 2021\exportlayers-ifc-IAI.txt
[DirectoriesENU]
FamilyTemplatePath=\\dce\designdata\Cadd\DC REVIT\Shared content\Templates\Family
DataLibraryLocations=Imperial Library=\\dce\designdata\Cadd\DC REVIT, Imperial Detail Library=\\dce\designdata\Cadd\DC REVIT
DefaultTemplate=Mechanical Template=\\dce\designdata\Cadd\DC REVIT\Shared content\Templates\find folder.rvt, Electrical Template=\\dce\designdata\Cadd\DC REVIT\Shared content\Templates\find folder.rvt, Plumbing Template=\\dce\designdata\Cadd\DC REVIT\Shared content\Templates\find folder.rvt, Systems Template=\\dce\designdata\Cadd\DC REVIT\Shared content\Templates\find folder.rvt
[UserInterface]
DisplayRecentFilesPage=1
DisciplineOption=4573
CategoryDisciplineFilter=3
[Language]
Select=ENU
[Applications]
Mechanical=0
Electrical=0
Architectural=1
Structural=0
[InstallationSettings]
Language=ENU
Usage=All
[Partitions]
WorksharingDisplayFrequency=15
[AutoCam]
SteeringWheelShowHUDMessages=1
SteeringWheelShowTooltips=1
SteeringWheelShowToolCursorText=1
BigSteeringWheelSize=1
BigSteeringWheelOpacity=1
MiniSteeringWheelSize=1
MiniSteeringWheelOpacity=1
SteeringWheelInvertVerticalAxis=0
SteeringWheelConstrainWalkAngleToGround=1
SteeringWheelSpeedFactor=30
SteeringWheelEnableIncrementalZoomIn=0
SteeringWheelKeepSceneUpright=1
ViewCubePosition=0
ViewCubeOpacity=2
ViewCubeSize=4
ViewCubeSnapToClosestView=1
ViewCubeFitToView=1
ViewCubeUseAnimatedTransition=1
ViewCubeKeepSceneUpright=1
ShowViewCube=1
NavBarActiveWheel=6
ShowViewCube=1
[Messages]
SuppressForceRasterPrintingWarning=1
SuppressShowButtonMessage=0
[Backups]
SaveReminderMinutes=30
[Spelling]
OptionFlagsSSCE=18
ArchDict=\\dce\designdata\Cadd\DC REVIT\Shared content\Dictionaries\DCE.Dic
CustomDict=\\dce\designdata\Cadd\DC REVIT\Shared content\Dictionaries\custom.Dic
[ACMSettings]
ACMOnNetwork=1
ACMNetworkPort=14931
[Graphics]
ThinLinesEnabled=0
[Macro]
AppSecurity=0
UIDocSecurity=0
[TagOnPlacement]
Rooms=0
[Export]
ExportDwfObjectData=1
ExportDwfRoomData=0
[Partitions]
Username="USERNAME"@company.net


Thanks in advance.

JohnK

  • Administrator
  • Seagull
  • Posts: 10170
Re: Revit.ini files and system variables.
« Reply #1 on: April 21, 2020, 06:55:59 PM »
It's been a few years since I've messed with the Revit.ini installer system but I wrote up a small tutorial at one point on the concepts. There wasn't much interest so I didn't pursue it much further. You can find the little bit I did write up here:
https://www.theswamp.org/index.php?topic=45270.msg550063#msg550063

I would start there because if I remember right you need to do a few things when creating the installer -i.e. it's not as simple as editing one .ini file.

That said, I think you may have to use the %VARIABLE% syntax for the installer .ini setup/file.
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10170
Re: Revit.ini files and system variables.
« Reply #2 on: April 21, 2020, 07:16:43 PM »
BTW, we have a Revit forum (this is the Dynamo forum) so this thread may move. I'll leave a redirect to the new location if I move it.
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

Lonnie

  • Newt
  • Posts: 136
Re: Revit.ini files and system variables.
« Reply #3 on: April 22, 2020, 12:27:17 AM »
Thanks for the reply.
If you could move this string over to the revit forum it would be appreciated. I must have missed that forum somehow..

I will retry the %USERNAME% and see if it will work. It was the first way I tried it so I may have made a mistake.

As far as using the ini when creating the deployment it now works this way. Years ago (rel 16??)y ou had to go into the msi file rip theirs out and add yours now you simply add it here.

The ini file I posted is really stripped. These are just the things we change. It will append to default values. You can also setup different ini information depending on the discipline that is being used. It's really pretty slick for the deployment.

I believe if you are doing singles you can simply edit the revit.ini in the C:\ProgramData\autodesk\RVT 2021\UserDataCache folder. Edit that and then anytime you remove the ini file from the user folder that is where it will steal it from.

« Last Edit: April 22, 2020, 12:46:51 AM by Lonnie »

MickD

  • King Gator
  • Posts: 3520
  • (x-in)->[process]->(y-out)
Re: Revit.ini files and system variables.
« Reply #4 on: April 22, 2020, 12:38:39 AM »
Maybe you have to put in the actual computer user name (%USERNAME%) to tie the installation to the actual user, not make up your own??

Just a thought as I know nothing of what you are doing... :-P
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

"The E in Javascript stands for 'easy'." Florin Pop tweet