Skip to content

Commit 364e628

Browse files
change Common Data Folder to point to the new location for Samples and Templates (#3257)
### Purpose Change Common Data Folder to point to the new location for Samples and Templates in ProgramFiles inside C:\Program Files\Autodesk\Revit Preview Release\AddIns\DynamoForRevit ### Reviewers @Mikhinja
1 parent fd0329c commit 364e628

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.63
1+
0.7.64

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.7.64
2+
* Update common data folder location
3+
14
## 0.7.63
25
* Update Dynamo Core to 4.0.0-beta3076
36
* Update Revit subelement test

src/DynamoRevit/DynamoRevit.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,6 @@ private static RevitDynamoModel InitializeCoreModel(DynamoRevitCommandData comma
603603
var userDataFolder = Path.Combine(Environment.GetFolderPath(
604604
Environment.SpecialFolder.ApplicationData),
605605
"Dynamo", "Dynamo Revit");
606-
var commonDataFolder = Path.Combine(Environment.GetFolderPath(
607-
Environment.SpecialFolder.CommonApplicationData),
608-
"Autodesk", "RVT " + commandData.Application.Application.VersionNumber, "Dynamo");
609606

610607
bool isAutomationMode = CheckJournalForKey(extCommandData, JournalKeys.AutomationModeKey);
611608

@@ -620,7 +617,7 @@ private static RevitDynamoModel InitializeCoreModel(DynamoRevitCommandData comma
620617
DynamoCorePath = corePath,
621618
DynamoHostPath = dynamoRevitRoot,
622619
GeometryFactoryPath = GetGeometryFactoryPath(corePath, loadedLibGVersion),
623-
PathResolver = new RevitPathResolver(userDataFolder, commonDataFolder),
620+
PathResolver = new RevitPathResolver(userDataFolder, corePath),
624621
Context = GetRevitContext(commandData),
625622
SchedulerThread = new RevitSchedulerThread(commandData.Application),
626623
StartInTestMode = isAutomationMode,

test/Libraries/RevitTestServices/RevitSystemTestBase.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,12 @@ protected override void StartDynamo(TestSessionConfiguration testConfig)
240240
var userDataFolder = Path.Combine(Environment.GetFolderPath(
241241
Environment.SpecialFolder.ApplicationData),
242242
"Dynamo", "Dynamo Revit");
243-
var commonDataFolder = Path.Combine(Environment.GetFolderPath(
244-
Environment.SpecialFolder.CommonApplicationData),
245-
"Autodesk", "RVT " + commandData.Application.Application.VersionNumber, "Dynamo");
246243

247244
// Set Path Resolver's user data folder and common data folder with DynamoRevit runtime.
248245
var pathResolverParams = new TestPathResolverParams()
249246
{
250247
UserDataRootFolder = userDataFolder,
251-
CommonDataRootFolder = commonDataFolder
248+
CommonDataRootFolder = DynamoRevitApp.DynamoCorePath
252249
};
253250
RevitTestPathResolver revitTestPathResolver = new RevitTestPathResolver(pathResolverParams);
254251
revitTestPathResolver.InitializePreloadedLibraries();

0 commit comments

Comments
 (0)