Custom Dynamo Settings for 2.19 does not load

I have created a custom DynamoSettings.XML files for deployment to the users. We like to copy all the Packages, Scripts, DynamoSettings.xml etc to the users machines.
In the DynamoSettings.xml I have used environment variables like %AppData% and %USERPROFILE% (it seems maybe this is the problem and it does not change to the username when the users starts Dynamo for the first time with the DynamoSettings.xml).
I also have included settings that are only available for Dynamo 3.03, so I can manage just one DynamoSettings.xml instead of multiple (Is this a problem for Dynamo to load the DynamoSettings.xml at all ?)
In Addition I have resorted everything alphabetical in the DynamoSettings.xml, so it has the same order as in our documentation and thus it is easier to manage.

Snippet from our DynamoSettings.xml Documentation:

<?xml version="1.0"?>
<PreferenceSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <BackupFiles>
    <string>%AppData%\Dynamo\Dynamo Revit\backup\backup.DYN</string>
  </BackupFiles>
  <BackupFilesCount>1</BackupFilesCount>
  <BackupInterval>60000</BackupInterval>
  <BackupLocation>%AppData%\Dynamo\Dynamo Revit\backup</BackupLocation>
  <ConnectorType>BEZIER</ConnectorType>
  <ConsoleHeight>0</ConsoleHeight>
  <CustomPackageFolders>
    <string>%BuiltInPackages%</string>
    <string>%AppData%\Dynamo\Dynamo Revit\2.19\packages\</string>
    <string>C:\ProgramData\Autodesk\RVT 2024\Dynamo\2.19\packages</string>
  </CustomPackageFolders>
  <DefaultEnableLegacyPolyCurveBehavior>false</DefaultEnableLegacyPolyCurveBehavior>
  <DefaultNodeAutocompleteSuggestion>MLRecommendation</DefaultNodeAutocompleteSuggestion>
  <DefaultPythonEngine />
  <DefaultRunType>Manual</DefaultRunType>
  <DefaultScaleFactor>0</DefaultScaleFactor>
  <DisableBuiltinPackages>false</DisableBuiltinPackages>
  <DisableCustomPackageLocations>false</DisableCustomPackageLocations>
  <DisableTrustWarnings>true</DisableTrustWarnings>
  <DynamoPlayerFolderGroups>
    <DynamoPlayerFolderGroup>
      <EntryPoint>dplayer</EntryPoint>
      <Folders>
        <DynamoPlayerFolder>
          <Path>%USERPROFILE%\Dokumente\DynamoDateien\DynamoScripts_2.19</Path>
          <DisplayName>DynamoScripts_2.19</DisplayName>
          <Id>1716475747488</Id>
          <IsRemovable>true</IsRemovable>
          <Order>2</Order>
          <IsValid>true</IsValid>
          <IsDefault>false</IsDefault>
        </DynamoPlayerFolder>
        <DynamoPlayerFolder>
          <Path>%USERPROFILE%\Dokumente\DynamoDateien\Ordner1</Path>
          <DisplayName>Ordner1</DisplayName>
          <Id>1717513402769</Id>
          <IsRemovable>true</IsRemovable>
          <Order>2</Order>
          <IsValid>true</IsValid>
          <IsDefault>false</IsDefault>
        </DynamoPlayerFolder>
        <DynamoPlayerFolder>
          <Path>%USERPROFILE%\Dokumente\DynamoDateien\Ordner2</Path>
          <DisplayName>Ordner2</DisplayName>
          <Id>1717513407925</Id>
          <IsRemovable>true</IsRemovable>
          <Order>3</Order>
          <IsValid>true</IsValid>
          <IsDefault>false</IsDefault>
        </DynamoPlayerFolder>
        <DynamoPlayerFolder>
          <Path>%USERPROFILE%\Dokumente\DynamoDateien\Ordner3</Path>
          <DisplayName>Ordner3</DisplayName>
          <Id>1717513412614</Id>
          <IsRemovable>true</IsRemovable>
          <Order>4</Order>
          <IsValid>true</IsValid>
          <IsDefault>true</IsDefault>
        </DynamoPlayerFolder>
      </Folders>
    </DynamoPlayerFolderGroup>
  </DynamoPlayerFolderGroups>
  <EnableNodeAutoComplete>true</EnableNodeAutoComplete>
  <EnableNotificationCenter>false</EnableNotificationCenter>
  <GraphicScaleUnit>Meters</GraphicScaleUnit>
  <GridScaleFactor>1</GridScaleFactor>
  <GroupStyleItemsList>
    <GroupStyleItem>
      <Name>Aktionen</Name>
      <HexColorString>B9F9E1</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>4d68be4a-a04d-4945-9dd5-cdf61079d790</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>Eingaben</Name>
      <HexColorString>FFB8D8</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>883066aa-1fe2-44a4-9bd1-c3df86bfe9f6</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>Ausgaben</Name>
      <HexColorString>FFC999</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>07655dc1-2d65-4fed-8d6a-37235d3e3a8d</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>ĂśberprĂĽfung</Name>
      <HexColorString>A4E1FF</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>bc688959-ce34-4bf5-90f8-6ddd23f80989</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>sdfs</Name>
      <HexColorString>3E99BE</HexColorString>
      <IsDefault>false</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>890cdba0-0839-4b59-a488-20b30875df52</GroupStyleId>
    </GroupStyleItem>
  </GroupStyleItemsList>
  <HideAutocompleteMethodOptions>false</HideAutocompleteMethodOptions>
  <HideNodesBelowSpecificConfidenceLevel>false</HideNodesBelowSpecificConfidenceLevel>
  <IronPythonResolveTargetVersion>2.5.0</IronPythonResolveTargetVersion>
  <IsAnalyticsReportingApproved>false</IsAnalyticsReportingApproved>
  <IsBackgroundGridVisible>true</IsBackgroundGridVisible>
  <BackgroundPreviews>
    <BackgroundPreviewActiveState>
      <Name>IsBackgroundPreviewActive</Name>
      <IsActive>true</IsActive>
    </BackgroundPreviewActiveState>
    <BackgroundPreviewActiveState>
      <Name>IsRevitBackgroundPreviewActive</Name>
      <IsActive>true</IsActive>
    </BackgroundPreviewActiveState>
  </BackgroundPreviews>
  <IsFirstRun>false</IsFirstRun>
  <IsTimeStampIncludedInExportFilePath>true</IsTimeStampIncludedInExportFilePath>
  <LibraryWidth>361</LibraryWidth>
  <LibraryZoomScale>100</LibraryZoomScale>
  <Locale>de-DE</Locale>
  <MaxNumRecentFiles>1</MaxNumRecentFiles>
  <MLRecommendationConfidenceLevel>10</MLRecommendationConfidenceLevel>
  <MLRecommendationNumberOfResults>10</MLRecommendationNumberOfResults>
  <NamespacesToExcludeFromLibrary />
  <NodeSearchTagSizeLimit>300</NodeSearchTagSizeLimit>
  <NumberFormat>f3</NumberFormat>
  <OpenFileInManualExecutionMode>true</OpenFileInManualExecutionMode>
  <PackageDirectoriesToUninstall />
  <PackageDownloadTouAccepted>true</PackageDownloadTouAccepted>
  <PythonScriptZoomScale>100</PythonScriptZoomScale>
  <PythonTemplateFilePath>%AppData%\Dynamo\Dynamo Revit\2.19\pythontemplate\pythontemplate_2.19.py</PythonTemplateFilePath>
  <RecentFiles>
  </RecentFiles>
  <RenderPrecision>128</RenderPrecision>
  <SelectedPackagePathForInstall>%AppData%\Dynamo\Dynamo Revit\2.19</SelectedPackagePathForInstall>
  <ShowCodeBlockLineNumber>true</ShowCodeBlockLineNumber>
  <ShowConnector>true</ShowConnector>
  <ShowConnectorToolTip>true</ShowConnectorToolTip>
  <ShowDetailedLayout>true</ShowDetailedLayout>
  <ShowEdges>false</ShowEdges>
  <ShowPreviewBubbles>true</ShowPreviewBubbles>
  <ShowRunPreview>true</ShowRunPreview>
  <ShowTabsAndSpacesInScriptEditor>true</ShowTabsAndSpacesInScriptEditor>
  <TrustedLocations>
    <string>C:\ProgramData\Autodesk</string>
    <string>C:\Program Files\Autodesk</string>
    <string>%AppData%\Dynamo\Dynamo Revit\2.19\packages\</string>
    <string>%USERPROFILE%\Dokumente\DynamoDateien\DynamoScripts_2.19\</string>
  </TrustedLocations>
  <UseHardwareAcceleration>true</UseHardwareAcceleration>
  <UseHostScaleUnits>false</UseHostScaleUnits>
  <WindowH>768</WindowH>
  <WindowW>1024</WindowW>
  <WindowX>0</WindowX>
  <WindowY>0</WindowY>
</PreferenceSettings>

DynamoSettings.7z (1.9 KB)

I feel like I remember environment variables not working in the settings file when I messed with things a few years ago. The good news is that any required user locations will be added automatically if they do not exist. This should cover everything unless you’re wanting to add additional user specific locations.

2 Likes

ok the environment variables don’t work. Instead I point now everything to "C:\ProgramData\RSE_Dynamo" and it works as expected

<?xml version="1.0"?>
<PreferenceSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <BackupFilesCount>1</BackupFilesCount>
  <BackupInterval>60000</BackupInterval>
  <ConnectorType>BEZIER</ConnectorType>
  <ConsoleHeight>0</ConsoleHeight>
  <CustomPackageFolders>
    <string>%BuiltInPackages%</string>
    <string>C:\ProgramData\RSE_Dynamo\2.19\packages</string>
    <string>C:\ProgramData\Autodesk\RVT 2024\Dynamo\2.19\packages</string>
  </CustomPackageFolders>
  <DefaultEnableLegacyPolyCurveBehavior>false</DefaultEnableLegacyPolyCurveBehavior>
  <DefaultNodeAutocompleteSuggestion>MLRecommendation</DefaultNodeAutocompleteSuggestion>
  <DefaultPythonEngine />
  <DefaultRunType>Manual</DefaultRunType>
  <DefaultScaleFactor>0</DefaultScaleFactor>
  <DisableBuiltinPackages>false</DisableBuiltinPackages>
  <DisableCustomPackageLocations>false</DisableCustomPackageLocations>
  <DisableTrustWarnings>true</DisableTrustWarnings>
  <DynamoPlayerFolderGroups>
    <DynamoPlayerFolderGroup>
      <EntryPoint>dplayer</EntryPoint>
      <Folders>
        <DynamoPlayerFolder>
          <Path>C:\ProgramData\RSE_Dynamo\2.19\scripts\01_Allgemein</Path>
          <DisplayName>01_Allgemein</DisplayName>
          <Id>1716475747488</Id>
          <IsRemovable>true</IsRemovable>
          <Order>2</Order>
          <IsValid>true</IsValid>
          <IsDefault>false</IsDefault>
        </DynamoPlayerFolder>
        <DynamoPlayerFolder>
          <Path>C:\ProgramData\RSE_Dynamo\2.19\scripts\02_ProjektSetup</Path>
          <DisplayName>02_ProjektSetup</DisplayName>
          <Id>1717513402769</Id>
          <IsRemovable>true</IsRemovable>
          <Order>2</Order>
          <IsValid>true</IsValid>
          <IsDefault>false</IsDefault>
        </DynamoPlayerFolder>
        <DynamoPlayerFolder>
          <Path>C:\ProgramData\RSE_Dynamo\2.19\scripts\03_Wettbewerbe</Path>
          <DisplayName>03_Wettbewerbe</DisplayName>
          <Id>1717513407925</Id>
          <IsRemovable>true</IsRemovable>
          <Order>3</Order>
          <IsValid>true</IsValid>
          <IsDefault>false</IsDefault>
        </DynamoPlayerFolder>
        <DynamoPlayerFolder>
          <Path>C:\ProgramData\RSE_Dynamo\2.19\scripts\04_Architektur</Path>
          <DisplayName>04_Architektur</DisplayName>
          <Id>1717513412614</Id>
          <IsRemovable>true</IsRemovable>
          <Order>4</Order>
          <IsValid>true</IsValid>
          <IsDefault>true</IsDefault>
        </DynamoPlayerFolder>
      </Folders>
    </DynamoPlayerFolderGroup>
  </DynamoPlayerFolderGroups>
  <EnableNodeAutoComplete>true</EnableNodeAutoComplete>
  <EnableNotificationCenter>false</EnableNotificationCenter>
  <GraphicScaleUnit>Meters</GraphicScaleUnit>
  <GridScaleFactor>1</GridScaleFactor>
  <GroupStyleItemsList>
    <GroupStyleItem>
      <Name>Aktionen</Name>
      <HexColorString>B9F9E1</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>4d68be4a-a04d-4945-9dd5-cdf61079d790</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>Eingaben</Name>
      <HexColorString>FFB8D8</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>883066aa-1fe2-44a4-9bd1-c3df86bfe9f6</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>Ausgaben</Name>
      <HexColorString>FFC999</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>07655dc1-2d65-4fed-8d6a-37235d3e3a8d</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>ĂśberprĂĽfung</Name>
      <HexColorString>A4E1FF</HexColorString>
      <IsDefault>true</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>bc688959-ce34-4bf5-90f8-6ddd23f80989</GroupStyleId>
    </GroupStyleItem>
    <GroupStyleItem>
      <Name>sdfs</Name>
      <HexColorString>3E99BE</HexColorString>
      <IsDefault>false</IsDefault>
      <FontSize>36</FontSize>
      <GroupStyleId>890cdba0-0839-4b59-a488-20b30875df52</GroupStyleId>
    </GroupStyleItem>
  </GroupStyleItemsList>
  <HideAutocompleteMethodOptions>false</HideAutocompleteMethodOptions>
  <HideNodesBelowSpecificConfidenceLevel>false</HideNodesBelowSpecificConfidenceLevel>
  <IronPythonResolveTargetVersion>2.5.0</IronPythonResolveTargetVersion>
  <IsAnalyticsReportingApproved>false</IsAnalyticsReportingApproved>
  <IsBackgroundGridVisible>true</IsBackgroundGridVisible>
  <BackgroundPreviews>
    <BackgroundPreviewActiveState>
      <Name>IsBackgroundPreviewActive</Name>
      <IsActive>true</IsActive>
    </BackgroundPreviewActiveState>
    <BackgroundPreviewActiveState>
      <Name>IsRevitBackgroundPreviewActive</Name>
      <IsActive>true</IsActive>
    </BackgroundPreviewActiveState>
  </BackgroundPreviews>
  <IsFirstRun>false</IsFirstRun>
  <IsTimeStampIncludedInExportFilePath>true</IsTimeStampIncludedInExportFilePath>
  <LibraryWidth>361</LibraryWidth>
  <LibraryZoomScale>100</LibraryZoomScale>
  <Locale>de-DE</Locale>
  <MaxNumRecentFiles>1</MaxNumRecentFiles>
  <MLRecommendationConfidenceLevel>10</MLRecommendationConfidenceLevel>
  <MLRecommendationNumberOfResults>10</MLRecommendationNumberOfResults>
  <NamespacesToExcludeFromLibrary />
  <NodeSearchTagSizeLimit>300</NodeSearchTagSizeLimit>
  <NumberFormat>f3</NumberFormat>
  <OpenFileInManualExecutionMode>true</OpenFileInManualExecutionMode>
  <PackageDirectoriesToUninstall />
  <PackageDownloadTouAccepted>true</PackageDownloadTouAccepted>
  <PythonScriptZoomScale>100</PythonScriptZoomScale>
  <PythonTemplateFilePath>C:\ProgramData\RSE_Dynamo\3.0\pythontemplate\pythontemplate_2.19.py</PythonTemplateFilePath>
  <RecentFiles>
  </RecentFiles>
  <RenderPrecision>128</RenderPrecision>
  <SelectedPackagePathForInstall>C:\ProgramData\RSE_Dynamo\2.19\packages</SelectedPackagePathForInstall>
  <ShowCodeBlockLineNumber>true</ShowCodeBlockLineNumber>
  <ShowConnector>true</ShowConnector>
  <ShowConnectorToolTip>true</ShowConnectorToolTip>
  <ShowDetailedLayout>true</ShowDetailedLayout>
  <ShowEdges>false</ShowEdges>
  <ShowPreviewBubbles>true</ShowPreviewBubbles>
  <ShowRunPreview>true</ShowRunPreview>
  <ShowTabsAndSpacesInScriptEditor>true</ShowTabsAndSpacesInScriptEditor>
  <TrustedLocations>
    <string>C:\ProgramData\Autodesk</string>
    <string>C:\Program Files\Autodesk</string>
    <string>C:\ProgramData\RSE_Dynamo\</string>
  </TrustedLocations>
  <UseHardwareAcceleration>true</UseHardwareAcceleration>
  <UseHostScaleUnits>false</UseHostScaleUnits>
  <WindowH>768</WindowH>
  <WindowW>1024</WindowW>
  <WindowX>0</WindowX>
  <WindowY>0</WindowY>
</PreferenceSettings>
2 Likes

Is this still a thing for Revit 2025.2/Dynamo 3.2? We would love to host our packages and scripts on the Cloud and simply set the paths for the custom packages and Dynamo Player folders to the %userprofile%\DC\ACCDocs.… folder for simple updates and additions. I’ve tried that syntax and it doesn’t seem to work. Just want to make sure there is not a different way to write those types of paths in the DynamoSettings.xml file.

We have a way to do it now through deployment software to the users’ local default paths but it’s an extra step we have to get IT involved in. And they’re already doing a lot.

Yes.

The time to build a means of copying it to a single directory on the C drive will be minimal, and a cloud mirroring service are problematic as updates won’t push if the files are in use and as soon as Dynamo touches the content it’s locked. My one attempt to do so between two of my own systems wound up getting causing onedrive to enter a horrific loop as it attempted to force updates to two conflicting dlls… there is a reason that other software development platforms (which is what Dynamo is) don’t push packages the way you’re asking.

Alrighty then. Thanks for the reply. Now I can stop thinking about it. We’ll continue on with our original method.

1 Like