diff --git a/SDK/Add-In Manager/AddInManager.dll b/SDK/Add-In Manager/AddInManager.dll
new file mode 100644
index 00000000..2bde626b
Binary files /dev/null and b/SDK/Add-In Manager/AddInManager.dll differ
diff --git a/SDK/Add-In Manager/AddInManager.dll.config b/SDK/Add-In Manager/AddInManager.dll.config
new file mode 100644
index 00000000..fd32ced6
--- /dev/null
+++ b/SDK/Add-In Manager/AddInManager.dll.config
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+ Revit Add-In Manager 2021
+
+
+
+
\ No newline at end of file
diff --git a/SDK/Add-In Manager/AddInManagerHelpENU.chm b/SDK/Add-In Manager/AddInManagerHelpENU.chm
new file mode 100644
index 00000000..0a8b35cf
Binary files /dev/null and b/SDK/Add-In Manager/AddInManagerHelpENU.chm differ
diff --git a/SDK/Add-In Manager/Autodesk.AddInManager.addin b/SDK/Add-In Manager/Autodesk.AddInManager.addin
new file mode 100644
index 00000000..18d6a5bd
--- /dev/null
+++ b/SDK/Add-In Manager/Autodesk.AddInManager.addin
@@ -0,0 +1,33 @@
+
+
+
+ [TARGETDIR]AddInManager.dll
+ 8C0A9E25-B7C5-421c-A1AB-702F73FA551F
+ AddInManager.CAddInManager
+ Add-In Manager (Manual Mode)
+ AlwaysVisible
+ Unknown
+ ADSK
+ Autodesk, www.autodesk.com
+
+
+ [TARGETDIR]AddInManager.dll
+ 6FDB8EC7-CCD3-4fc0-ADB7-B459D298FB93
+ AddInManager.CAddInManagerFaceless
+ Add-In Manager (Manual Mode, Faceless)
+ AlwaysVisible
+ Unknown
+ ADSK
+ Autodesk, www.autodesk.com
+
+
+ [TARGETDIR]AddInManager.dll
+ 91A2419C-5FCA-491A-BAA3-29A497EC07C7
+ AddInManager.CAddInManagerReadOnly
+ Add-In Manager (ReadOnly Mode)
+ AlwaysVisible
+ Unknown
+ ADSK
+ Autodesk, www.autodesk.com
+
+
diff --git a/SDK/Add-In Manager/SplitButton_License(BSD).txt b/SDK/Add-In Manager/SplitButton_License(BSD).txt
new file mode 100644
index 00000000..143b59ce
--- /dev/null
+++ b/SDK/Add-In Manager/SplitButton_License(BSD).txt
@@ -0,0 +1,22 @@
+Copyright (c) 2009, wyDay
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/SDK/Revit Platform API Changes and Additions.docx b/SDK/Revit Platform API Changes and Additions.docx
index a88b3956..026906f7 100644
Binary files a/SDK/Revit Platform API Changes and Additions.docx and b/SDK/Revit Platform API Changes and Additions.docx differ
diff --git a/SDK/RevitAPI.chm b/SDK/RevitAPI.chm
index c33c5ab2..41bd4b7b 100644
Binary files a/SDK/RevitAPI.chm and b/SDK/RevitAPI.chm differ
diff --git a/SDK/RevitAPI.chw b/SDK/RevitAPI.chw
new file mode 100644
index 00000000..fd630eea
Binary files /dev/null and b/SDK/RevitAPI.chw differ
diff --git a/SDK/RevitAddInUtility.chm b/SDK/RevitAddInUtility.chm
index e289dd73..308e476b 100644
Binary files a/SDK/RevitAddInUtility.chm and b/SDK/RevitAddInUtility.chm differ
diff --git a/SDK/Samples/APIAppStartup/CS/APIAppStartup.csproj b/SDK/Samples/APIAppStartup/CS/APIAppStartup.csproj
index dc8cff4b..8d924215 100644
--- a/SDK/Samples/APIAppStartup/CS/APIAppStartup.csproj
+++ b/SDK/Samples/APIAppStartup/CS/APIAppStartup.csproj
@@ -10,7 +10,7 @@
Properties
APIAppStartup
APIAppStartup
- v4.7
+ v4.8
diff --git a/SDK/Samples/AddSpaceAndZone/CS/AddSpaceAndZone.csproj b/SDK/Samples/AddSpaceAndZone/CS/AddSpaceAndZone.csproj
index ccd33caf..db2b94cb 100644
--- a/SDK/Samples/AddSpaceAndZone/CS/AddSpaceAndZone.csproj
+++ b/SDK/Samples/AddSpaceAndZone/CS/AddSpaceAndZone.csproj
@@ -10,7 +10,7 @@
Properties
AddSpaceAndZone
AddSpaceAndZone
- v4.7
+ v4.8
diff --git a/SDK/Samples/AllViews/CS/AllViews.csproj b/SDK/Samples/AllViews/CS/AllViews.csproj
index e03c2b3e..65658b36 100644
--- a/SDK/Samples/AllViews/CS/AllViews.csproj
+++ b/SDK/Samples/AllViews/CS/AllViews.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/AnalysisVisualizationFramework/DistanceToSurfaces/CS/DistanceToSurfaces.csproj b/SDK/Samples/AnalysisVisualizationFramework/DistanceToSurfaces/CS/DistanceToSurfaces.csproj
index e162242e..9a5f03cb 100644
--- a/SDK/Samples/AnalysisVisualizationFramework/DistanceToSurfaces/CS/DistanceToSurfaces.csproj
+++ b/SDK/Samples/AnalysisVisualizationFramework/DistanceToSurfaces/CS/DistanceToSurfaces.csproj
@@ -10,7 +10,7 @@
Properties
DistanceToSurfaces
DistanceToSurfaces
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/AnalysisVisualizationFramework/MultithreadedCalculation/CS/MultithreadedCalculation.csproj b/SDK/Samples/AnalysisVisualizationFramework/MultithreadedCalculation/CS/MultithreadedCalculation.csproj
index e78271bc..83e8e502 100644
--- a/SDK/Samples/AnalysisVisualizationFramework/MultithreadedCalculation/CS/MultithreadedCalculation.csproj
+++ b/SDK/Samples/AnalysisVisualizationFramework/MultithreadedCalculation/CS/MultithreadedCalculation.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.MultithreadedCalculation.CS
MultithreadedCalculation
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/AnalysisVisualizationFramework/SpatialFieldGradient/CS/SpatialFieldGradient.csproj b/SDK/Samples/AnalysisVisualizationFramework/SpatialFieldGradient/CS/SpatialFieldGradient.csproj
index 83f09011..e2d7a68a 100644
--- a/SDK/Samples/AnalysisVisualizationFramework/SpatialFieldGradient/CS/SpatialFieldGradient.csproj
+++ b/SDK/Samples/AnalysisVisualizationFramework/SpatialFieldGradient/CS/SpatialFieldGradient.csproj
@@ -10,7 +10,7 @@
Properties
SpatialFieldGradient
SpatialFieldGradient
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/AnalyticalSupportData_Info/CS/AnalyticalSupportData_Info.csproj b/SDK/Samples/AnalyticalSupportData_Info/CS/AnalyticalSupportData_Info.csproj
index ac6eadac..00eaad3a 100644
--- a/SDK/Samples/AnalyticalSupportData_Info/CS/AnalyticalSupportData_Info.csproj
+++ b/SDK/Samples/AnalyticalSupportData_Info/CS/AnalyticalSupportData_Info.csproj
@@ -10,7 +10,7 @@
Properties
AnalyticalSupportData_Info
AnalyticalSupportData_Info
- v4.7
+ v4.8
diff --git a/SDK/Samples/AppearanceAssetEditing/CS/AppearanceAssetEditing.csproj b/SDK/Samples/AppearanceAssetEditing/CS/AppearanceAssetEditing.csproj
index 7dc11e0d..2d9cb7e5 100644
--- a/SDK/Samples/AppearanceAssetEditing/CS/AppearanceAssetEditing.csproj
+++ b/SDK/Samples/AppearanceAssetEditing/CS/AppearanceAssetEditing.csproj
@@ -1,10 +1,5 @@
-
-
- None
-
-
Debug
AnyCPU
@@ -17,7 +12,7 @@
AppearanceAssetEditing
- v4.7
+ v4.8
@@ -29,8 +24,7 @@
prompt
4
true
-
-
+ bin\Debug\AppearanceAssetEditing.XML
pdbonly
diff --git a/SDK/Samples/ArchSample/VB.NET/ArchSample.vbproj b/SDK/Samples/ArchSample/VB.NET/ArchSample.vbproj
index a784fad5..e43dfe6c 100644
--- a/SDK/Samples/ArchSample/VB.NET/ArchSample.vbproj
+++ b/SDK/Samples/ArchSample/VB.NET/ArchSample.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/AreaReinCurve/CS/AreaReinCurve.csproj b/SDK/Samples/AreaReinCurve/CS/AreaReinCurve.csproj
index d7b60e5a..4bdc60d0 100644
--- a/SDK/Samples/AreaReinCurve/CS/AreaReinCurve.csproj
+++ b/SDK/Samples/AreaReinCurve/CS/AreaReinCurve.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/AreaReinParameters/CS/AreaReinParameters.csproj b/SDK/Samples/AreaReinParameters/CS/AreaReinParameters.csproj
index 94f19379..94526d4b 100644
--- a/SDK/Samples/AreaReinParameters/CS/AreaReinParameters.csproj
+++ b/SDK/Samples/AreaReinParameters/CS/AreaReinParameters.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/AttachedDetailGroup/CS/AttachedDetailGroup.csproj b/SDK/Samples/AttachedDetailGroup/CS/AttachedDetailGroup.csproj
index 004f5bc4..2b2f97a2 100644
--- a/SDK/Samples/AttachedDetailGroup/CS/AttachedDetailGroup.csproj
+++ b/SDK/Samples/AttachedDetailGroup/CS/AttachedDetailGroup.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
AttachedDetailGroup
- v4.7
+ v4.8
@@ -92,4 +86,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/AutoRoute/CS/AutoRoute.csproj b/SDK/Samples/AutoRoute/CS/AutoRoute.csproj
index 66e8968e..9bfa210d 100644
--- a/SDK/Samples/AutoRoute/CS/AutoRoute.csproj
+++ b/SDK/Samples/AutoRoute/CS/AutoRoute.csproj
@@ -10,7 +10,7 @@
Properties
AutoRoute
AutoRoute
- v4.7
+ v4.8
diff --git a/SDK/Samples/AutoTagRooms/CS/AutoTagRooms.csproj b/SDK/Samples/AutoTagRooms/CS/AutoTagRooms.csproj
index 16a09777..eee39b70 100644
--- a/SDK/Samples/AutoTagRooms/CS/AutoTagRooms.csproj
+++ b/SDK/Samples/AutoTagRooms/CS/AutoTagRooms.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/AvoidObstruction/CS/AvoidObstruction.csproj b/SDK/Samples/AvoidObstruction/CS/AvoidObstruction.csproj
index cb69fdcf..cc51836a 100644
--- a/SDK/Samples/AvoidObstruction/CS/AvoidObstruction.csproj
+++ b/SDK/Samples/AvoidObstruction/CS/AvoidObstruction.csproj
@@ -9,7 +9,7 @@
false
AvoidObstruction
AvoidObstruction
- v4.7
+ v4.8
diff --git a/SDK/Samples/BeamAndSlabNewParameter/CS/BeamAndSlabNewParameter.csproj b/SDK/Samples/BeamAndSlabNewParameter/CS/BeamAndSlabNewParameter.csproj
index 79cfa53d..d4838acd 100644
--- a/SDK/Samples/BeamAndSlabNewParameter/CS/BeamAndSlabNewParameter.csproj
+++ b/SDK/Samples/BeamAndSlabNewParameter/CS/BeamAndSlabNewParameter.csproj
@@ -27,7 +27,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/BoundaryConditions/CS/BoundaryConditions.csproj b/SDK/Samples/BoundaryConditions/CS/BoundaryConditions.csproj
index 5ea30d83..267f2a7d 100644
--- a/SDK/Samples/BoundaryConditions/CS/BoundaryConditions.csproj
+++ b/SDK/Samples/BoundaryConditions/CS/BoundaryConditions.csproj
@@ -20,7 +20,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/BrowseBindings/VB.NET/BrowseBindings.vbproj b/SDK/Samples/BrowseBindings/VB.NET/BrowseBindings.vbproj
index eb9336d8..6d7be87a 100644
--- a/SDK/Samples/BrowseBindings/VB.NET/BrowseBindings.vbproj
+++ b/SDK/Samples/BrowseBindings/VB.NET/BrowseBindings.vbproj
@@ -44,7 +44,7 @@
1.0.0.%2a
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/CapitalizeAllTextNotes/CS/CapitalizeAllTextNotes.csproj b/SDK/Samples/CapitalizeAllTextNotes/CS/CapitalizeAllTextNotes.csproj
index 6dc23cf3..3d7bf008 100644
--- a/SDK/Samples/CapitalizeAllTextNotes/CS/CapitalizeAllTextNotes.csproj
+++ b/SDK/Samples/CapitalizeAllTextNotes/CS/CapitalizeAllTextNotes.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
CapitalizeAllTextNotes
- v4.7
+ v4.8
@@ -92,4 +86,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/CompoundStructure/CS/CompoundStructure.csproj b/SDK/Samples/CompoundStructure/CS/CompoundStructure.csproj
index 956bf72c..c3195b17 100644
--- a/SDK/Samples/CompoundStructure/CS/CompoundStructure.csproj
+++ b/SDK/Samples/CompoundStructure/CS/CompoundStructure.csproj
@@ -10,7 +10,7 @@
Properties
CompoundStructure
CompoundStructure
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/CreateBeamSystem/CS/CreateBeamSystem.csproj b/SDK/Samples/CreateBeamSystem/CS/CreateBeamSystem.csproj
index 91625473..03bab312 100644
--- a/SDK/Samples/CreateBeamSystem/CS/CreateBeamSystem.csproj
+++ b/SDK/Samples/CreateBeamSystem/CS/CreateBeamSystem.csproj
@@ -20,7 +20,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateBeamsColumnsBraces/CS/CreateBeamsColumnsBraces.csproj b/SDK/Samples/CreateBeamsColumnsBraces/CS/CreateBeamsColumnsBraces.csproj
index 212f4faf..15ffbc8e 100644
--- a/SDK/Samples/CreateBeamsColumnsBraces/CS/CreateBeamsColumnsBraces.csproj
+++ b/SDK/Samples/CreateBeamsColumnsBraces/CS/CreateBeamsColumnsBraces.csproj
@@ -27,7 +27,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateBeamsColumnsBraces/VB.NET/CreateBeamsColumnsBraces.vbproj b/SDK/Samples/CreateBeamsColumnsBraces/VB.NET/CreateBeamsColumnsBraces.vbproj
index 546e7e1c..e22913cf 100644
--- a/SDK/Samples/CreateBeamsColumnsBraces/VB.NET/CreateBeamsColumnsBraces.vbproj
+++ b/SDK/Samples/CreateBeamsColumnsBraces/VB.NET/CreateBeamsColumnsBraces.vbproj
@@ -30,7 +30,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateComplexAreaRein/CS/CreateComplexAreaRein.csproj b/SDK/Samples/CreateComplexAreaRein/CS/CreateComplexAreaRein.csproj
index 5ceb3df7..a559f549 100644
--- a/SDK/Samples/CreateComplexAreaRein/CS/CreateComplexAreaRein.csproj
+++ b/SDK/Samples/CreateComplexAreaRein/CS/CreateComplexAreaRein.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateDimensions/CS/CreateDimensions.csproj b/SDK/Samples/CreateDimensions/CS/CreateDimensions.csproj
index 831aa4c7..2e7a34bb 100644
--- a/SDK/Samples/CreateDimensions/CS/CreateDimensions.csproj
+++ b/SDK/Samples/CreateDimensions/CS/CreateDimensions.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateFillPattern/CS/CreateFillPattern.csproj b/SDK/Samples/CreateFillPattern/CS/CreateFillPattern.csproj
index 077b6f50..d0214b31 100644
--- a/SDK/Samples/CreateFillPattern/CS/CreateFillPattern.csproj
+++ b/SDK/Samples/CreateFillPattern/CS/CreateFillPattern.csproj
@@ -12,7 +12,7 @@
CreateFillPattern
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateFillPattern/CS/FillPatternForm.cs b/SDK/Samples/CreateFillPattern/CS/FillPatternForm.cs
index a83bc47a..c74bb1f5 100644
--- a/SDK/Samples/CreateFillPattern/CS/FillPatternForm.cs
+++ b/SDK/Samples/CreateFillPattern/CS/FillPatternForm.cs
@@ -37,113 +37,123 @@ using RvtView = Autodesk.Revit.DB.View;
namespace Revit.SDK.Samples.CreateFillPattern.CS
{
- ///
- ///
- ///
- public partial class PatternForm : System.Windows.Forms.Form
- {
- ///
- /// Current UI document
- ///
- UIDocument docUI;
- ///
- /// Current revit document
- ///
- Document doc;
+ ///
+ ///
+ ///
+ public partial class PatternForm : System.Windows.Forms.Form
+ {
+ ///
+ /// Current UI document
+ ///
+ UIDocument docUI;
+ ///
+ /// Current revit document
+ ///
+ Document doc;
- ///
- /// Constructor
- ///
- public PatternForm(ExternalCommandData commandData)
- {
- docUI = commandData.Application.ActiveUIDocument;
- doc = commandData.Application.ActiveUIDocument.Document;
- InitializeComponent();
+ ///
+ /// Constructor
+ ///
+ public PatternForm(ExternalCommandData commandData)
+ {
+ docUI = commandData.Application.ActiveUIDocument;
+ doc = commandData.Application.ActiveUIDocument.Document;
+ InitializeComponent();
- IniTreeView();
- }
+ IniTreeView();
+ }
- ///
- /// Select all elements in current document with specified element type filter
- ///
- /// Target element type
- /// List of the elements
- private List GetAllElements()
- {
- ElementClassFilter elementFilter = new ElementClassFilter(typeof(T));
- FilteredElementCollector collector = new FilteredElementCollector(doc);
- collector = collector.WherePasses(elementFilter);
- return collector.Cast().ToList();
- }
+ ///
+ /// Select all elements in current document with specified element type filter
+ ///
+ /// Target element type
+ /// List of the elements
+ private List GetAllElements()
+ {
+ ElementClassFilter elementFilter = new ElementClassFilter(typeof(T));
+ FilteredElementCollector collector = new FilteredElementCollector(doc);
+ collector = collector.WherePasses(elementFilter);
+ return collector.Cast().ToList();
+ }
- ///
- /// Close the window after close button is clicked
- ///
- /// This object
- /// A object contains the event data
- private void buttonCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
+ ///
+ /// Close the window after close button is clicked
+ ///
+ /// This object
+ /// A object contains the event data
+ private void buttonCancel_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
- ///
- /// Initial nodes of treeviews
- ///
- private void IniTreeView()
- {
- this.treeViewLinePattern.Nodes.Clear();
- TreeNode iniNode2 = new TreeNode("LinePatterns");
- treeViewLinePattern.Nodes.Add(iniNode2);
+ ///
+ /// Initial nodes of treeviews
+ ///
+ private void IniTreeView()
+ {
+ this.treeViewLinePattern.Nodes.Clear();
+ TreeNode iniNode2 = new TreeNode("LinePatterns");
+ treeViewLinePattern.Nodes.Add(iniNode2);
- List lstLinePatterns = GetAllElements();
- for (int i = 0; i < lstLinePatterns.Count; i++)
- {
- TreeNode node = new TreeNode(lstLinePatterns[i].Name);
- node.Name = lstLinePatterns[i].Id.IntegerValue.ToString();
- iniNode2.Nodes.Add(node);
- }
+ List lstLinePatterns = GetAllElements();
+ for (int i = 0; i < lstLinePatterns.Count; i++)
+ {
+ TreeNode node = new TreeNode(lstLinePatterns[i].Name);
+ node.Name = lstLinePatterns[i].Id.IntegerValue.ToString();
+ iniNode2.Nodes.Add(node);
+ }
- this.treeViewFillPattern.Nodes.Clear();
- TreeNode iniNode1 = new TreeNode("FillPatterns");
- treeViewFillPattern.Nodes.Add(iniNode1);
+ this.treeViewFillPattern.Nodes.Clear();
+ TreeNode iniNode1 = new TreeNode("FillPatterns");
+ treeViewFillPattern.Nodes.Add(iniNode1);
- List lstFillPatterns = GetAllElements();
- for (int i = 0; i < lstFillPatterns.Count; i++)
- {
- TreeNode node = new TreeNode(lstFillPatterns[i].Name);
- node.Name = i.ToString();
- iniNode1.Nodes.Add(node);
- }
- }
+ List lstFillPatterns = GetAllElements();
+ for (int i = 0; i < lstFillPatterns.Count; i++)
+ {
+ TreeNode node = new TreeNode(lstFillPatterns[i].Name);
+ node.Name = i.ToString();
+ iniNode1.Nodes.Add(node);
+ }
+ }
- ///
- /// Create a fillpattern element
- ///
- /// The fillpattern name
- /// Created fillpattern element
- private FillPatternElement CreateFacePattern(string patternName)
- {
+ ///
+ /// Create a fillpattern element
+ ///
+ /// The fillpattern name
+ /// Created fillpattern element
+ private FillPatternElement GetOrCreateFacePattern(string patternName)
+ {
+ FillPatternTarget target = FillPatternTarget.Model;
+ FillPatternElement fillPatternElement = FillPatternElement.GetFillPatternElementByName(doc, target, patternName);
+
+ if (fillPatternElement == null)
+ {
//Create a fillpattern with specified angle and spacing
- FillPattern fillPattern = new FillPattern(patternName, FillPatternTarget.Model,
+ FillPattern fillPattern = new FillPattern(patternName, target,
FillPatternHostOrientation.ToView, 0.5, 0.5, 0.5);
Transaction trans = new Transaction(doc);
trans.Start("Create a fillpattern element");
- FillPatternElement fillPatternElement = FillPatternElement.Create(doc, fillPattern);
+ fillPatternElement = FillPatternElement.Create(doc, fillPattern);
trans.Commit();
- return fillPatternElement;
- }
+ }
+ return fillPatternElement;
+ }
- ///
- /// Create a complex fillpattern element
- ///
- /// The fillpattern name
- /// Created fillpattern element
- private FillPatternElement CreateComplexFacePattern(string patternName)
- {
- FillPatternElement fillPatternElement = null;
+ ///
+ /// Create a complex fillpattern element
+ ///
+ /// The fillpattern name
+ /// Created fillpattern element
+ private FillPatternElement GetOrCreateComplexFacePattern(string patternName)
+ {
+ FillPatternTarget target = FillPatternTarget.Model;
+ FillPatternElement fillPatternElement = FillPatternElement.GetFillPatternElementByName(doc, target, patternName);
+
+ if (fillPatternElement == null)
+ {
// Create the fill pattern
- FillPattern fillPattern = new FillPattern("API-created", FillPatternTarget.Model,
+ FillPattern fillPattern = new FillPattern(patternName, target,
FillPatternHostOrientation.ToHost);
// Add grids
@@ -165,304 +175,306 @@ namespace Revit.SDK.Samples.CreateFillPattern.CS
fillPatternElement = FillPatternElement.Create(doc, fillPattern);
t.Commit();
- return fillPatternElement;
- }
+ }
- ///
- /// Create a fillgrid
- ///
- ///
- ///
- ///
- ///
- ///
- ///
- private FillGrid CreateGrid(UV origin, double offset, double angle,
- double shift, params double[] segments)
- {
- FillGrid fillGrid = new FillGrid();
- // The arguments: origin, offset (vertical distance between lines),
- // angle, shift (delta between location of start point per line)
- // The last two arguments are the segments: e.g. 1.0 units on,
- // 0.1 units off (units are Revit units (ft))
- fillGrid.Origin = origin;
- fillGrid.Offset = offset;
- fillGrid.Angle = angle;
- fillGrid.Shift = shift;
- List segmentsList = new List();
- foreach (double d in segments)
- {
- segmentsList.Add(d);
- }
- fillGrid.SetSegments(segmentsList);
+ return fillPatternElement;
+ }
- return fillGrid;
- }
+ ///
+ /// Create a fillgrid
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ private FillGrid CreateGrid(UV origin, double offset, double angle,
+ double shift, params double[] segments)
+ {
+ FillGrid fillGrid = new FillGrid();
+ // The arguments: origin, offset (vertical distance between lines),
+ // angle, shift (delta between location of start point per line)
+ // The last two arguments are the segments: e.g. 1.0 units on,
+ // 0.1 units off (units are Revit units (ft))
+ fillGrid.Origin = origin;
+ fillGrid.Offset = offset;
+ fillGrid.Angle = angle;
+ fillGrid.Shift = shift;
+ List segmentsList = new List();
+ foreach (double d in segments)
+ {
+ segmentsList.Add(d);
+ }
+ fillGrid.SetSegments(segmentsList);
+
+ return fillGrid;
+ }
- ///
- /// Create a linepattern element
- ///
- /// The linepattern name
- /// Created linepattern element
- private LinePatternElement CreateLinePatternElement(string patternName)
- {
- //Create list of segments which define the line pattern
- List lstSegments = new List();
- lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Dot, 0.0));
- lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Space, 0.02));
- lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Dash, 0.03));
- lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Space, 0.02));
+ ///
+ /// Create a linepattern element
+ ///
+ /// The linepattern name
+ /// Created linepattern element
+ private LinePatternElement CreateLinePatternElement(string patternName)
+ {
+ //Create list of segments which define the line pattern
+ List lstSegments = new List();
+ lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Dot, 0.0));
+ lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Space, 0.02));
+ lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Dash, 0.03));
+ lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Space, 0.02));
- LinePattern linePattern = new LinePattern(patternName);
- linePattern.SetSegments(lstSegments);
+ LinePattern linePattern = new LinePattern(patternName);
+ linePattern.SetSegments(lstSegments);
- Transaction trans = new Transaction(doc);
- trans.Start("Create a linepattern element");
- LinePatternElement linePatternElement = LinePatternElement.Create(doc, linePattern);
- trans.Commit();
- return linePatternElement;
- }
+ Transaction trans = new Transaction(doc);
+ trans.Start("Create a linepattern element");
+ LinePatternElement linePatternElement = LinePatternElement.Create(doc, linePattern);
+ trans.Commit();
+ return linePatternElement;
+ }
- ///
- /// Create a fillpattern element and apply it to target material
- ///
- /// This object
- /// A object contains the event data
- private void buttonCreateFillPattern_Click(object sender, EventArgs e)
- {
- Wall targetWall = GetSelectedWall();
- if (targetWall == null)
- {
- TaskDialog.Show("Create Fill Pattern",
- "Before applying FillPattern to a wall's surfaces, you must firstly select a wall.");
- this.Close();
- return;
- }
-
- FillPatternElement mySurfacePattern = CreateFacePattern("MySurfacePattern");
- Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
- Transaction trans = new Transaction(doc);
- trans.Start("Apply fillpattern to surface");
- targetMaterial.SurfaceForegroundPatternId = mySurfacePattern.Id;
- trans.Commit();
+ ///
+ /// Create a fillpattern element and apply it to target material
+ ///
+ /// This object
+ /// A object contains the event data
+ private void buttonCreateFillPattern_Click(object sender, EventArgs e)
+ {
+ Wall targetWall = GetSelectedWall();
+ if (targetWall == null)
+ {
+ TaskDialog.Show("Create Fill Pattern",
+ "Before applying a FillPattern to a wall's surfaces, you must first select a wall.");
this.Close();
- }
+ return;
+ }
- ///
- /// Create a linepattern element and apply it to grids
- ///
- /// This object
- /// A object contains the event data
- private void buttonCreateLinePattern_Click(object sender, EventArgs e)
- {
- List lstGridTypeIds = new List();
- GetSelectedGridTypeIds(lstGridTypeIds);
- if (lstGridTypeIds.Count == 0)
- {
- TaskDialog.Show("Apply To Grids",
- "Before applying LinePattern to Grids, you must firstly select at least one grid.");
- this.Close();
- return;
- }
+ FillPatternElement mySurfacePattern = GetOrCreateFacePattern("MySurfacePattern");
+ Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
+ Transaction trans = new Transaction(doc);
+ trans.Start("Apply fillpattern to surface");
+ targetMaterial.SurfaceForegroundPatternId = mySurfacePattern.Id;
+ trans.Commit();
+ this.Close();
+ }
- LinePatternElement myLinePatternElement = CreateLinePatternElement("MyLinePattern");
- foreach (ElementId typeId in lstGridTypeIds)
- {
- Element gridType = doc.GetElement(typeId);
- //set the parameter value of End Segment Pattern
- SetParameter("End Segment Pattern", myLinePatternElement.Id, gridType);
- }
+ ///
+ /// Create a linepattern element and apply it to grids
+ ///
+ /// This object
+ /// A object contains the event data
+ private void buttonCreateLinePattern_Click(object sender, EventArgs e)
+ {
+ List lstGridTypeIds = new List();
+ GetSelectedGridTypeIds(lstGridTypeIds);
+ if (lstGridTypeIds.Count == 0)
+ {
+ TaskDialog.Show("Apply To Grids",
+ "Before applying a LinePattern to Grids, you must first select at least one grid.");
this.Close();
- }
+ return;
+ }
- ///
- /// Set a parameter value of a target element
- ///
- /// The parameter name
- /// Id value of the parameter
- /// Target element
- private void SetParameter(string paramName, ElementId eid, Element elem)
- {
- foreach (Parameter param in elem.Parameters)
+ LinePatternElement myLinePatternElement = CreateLinePatternElement("MyLinePattern");
+ foreach (ElementId typeId in lstGridTypeIds)
+ {
+ Element gridType = doc.GetElement(typeId);
+ //set the parameter value of End Segment Pattern
+ SetParameter("End Segment Pattern", myLinePatternElement.Id, gridType);
+ }
+ this.Close();
+ }
+
+ ///
+ /// Set a parameter value of a target element
+ ///
+ /// The parameter name
+ /// Id value of the parameter
+ /// Target element
+ private void SetParameter(string paramName, ElementId eid, Element elem)
+ {
+ foreach (Parameter param in elem.Parameters)
+ {
+ if (param.Definition.Name == paramName)
{
- if (param.Definition.Name == paramName)
- {
- Transaction trans = new Transaction(doc);
- trans.Start("Set parameter value");
- param.Set(eid);
- trans.Commit();
- break;
- }
+ Transaction trans = new Transaction(doc);
+ trans.Start("Set parameter value");
+ param.Set(eid);
+ trans.Commit();
+ break;
}
- }
-
- ///
- /// Apply fillpattern to surface
- ///
- /// This object
- /// A object contains the event data
- private void buttonApplyToSurface_Click(object sender, EventArgs e)
- {
- Wall targetWall = GetSelectedWall();
- if (targetWall == null)
- {
- TaskDialog.Show("Apply To Surface",
- "Before applying FillPattern to a wall's surfaces, you must firstly select a wall.");
- this.Close();
- return;
- }
-
- if (treeViewFillPattern.SelectedNode == null || treeViewFillPattern.SelectedNode.Parent == null)
- {
- TaskDialog.Show("Apply To Surface",
- "Before applying FillPattern to a wall's surfaces, you must firstly select one FillPattern.");
- return;
- }
-
- List lstPatterns = GetAllElements();
- int patternIndex = int.Parse(treeViewFillPattern.SelectedNode.Name);
- Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
- Transaction trans = new Transaction(doc);
- trans.Start("Apply fillpattern to surface");
- targetMaterial.SurfaceForegroundPatternId = lstPatterns[patternIndex].Id;
- trans.Commit();
+ }
+ }
+ ///
+ /// Apply fillpattern to surface
+ ///
+ /// This object
+ /// A object contains the event data
+ private void buttonApplyToSurface_Click(object sender, EventArgs e)
+ {
+ Wall targetWall = GetSelectedWall();
+ if (targetWall == null)
+ {
+ TaskDialog.Show("Apply To Surface",
+ "Before applying a FillPattern to a wall's surfaces, you must first select a wall.");
this.Close();
- }
+ return;
+ }
- ///
- /// Get a selected wall
- ///
- /// Selected wall
- private Wall GetSelectedWall()
- {
- Wall wall = null;
- foreach (ElementId elemId in docUI.Selection.GetElementIds())
- {
- Element elem = doc.GetElement(elemId);
- wall = elem as Wall;
- if (wall != null)
- return wall;
- }
- return wall;
- }
+ if (treeViewFillPattern.SelectedNode == null || treeViewFillPattern.SelectedNode.Parent == null)
+ {
+ TaskDialog.Show("Apply To Surface",
+ "Before applying a FillPattern to a wall's surfaces, you must first select one FillPattern.");
+ return;
+ }
- ///
- /// Apply fillpatterns to cutting surface
- ///
- /// This object
- /// A object contains the event data
- private void buttonApplyToCutSurface_Click(object sender, EventArgs e)
- {
- Wall targetWall = GetSelectedWall();
- if (targetWall == null)
- {
- TaskDialog.Show("Apply To CutSurface",
- "Before applying FillPattern to a wall's cutting surfaces, you must firstly select a wall.");
- this.Close();
- return;
- }
+ List lstPatterns = GetAllElements();
+ int patternIndex = int.Parse(treeViewFillPattern.SelectedNode.Name);
+ Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
+ Transaction trans = new Transaction(doc);
+ trans.Start("Apply fillpattern to surface");
+ targetMaterial.SurfaceForegroundPatternId = lstPatterns[patternIndex].Id;
+ trans.Commit();
- if (treeViewFillPattern.SelectedNode == null || treeViewFillPattern.SelectedNode.Parent == null)
- {
- TaskDialog.Show("Apply To CutSurface",
- "Before applying FillPattern to a wall's cutting surfaces, you must firstly select one FillPattern.");
- return;
- }
+ this.Close();
+ }
- List lstPatterns = GetAllElements();
- int patternIndex = int.Parse(treeViewFillPattern.SelectedNode.Name);
- Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
-
- Transaction trans = new Transaction(doc);
- trans.Start("Apply fillpattern to cutting surface");
- targetMaterial.CutForegroundPatternId = lstPatterns[patternIndex].Id;
- trans.Commit();
+ ///
+ /// Get a selected wall
+ ///
+ /// Selected wall
+ private Wall GetSelectedWall()
+ {
+ Wall wall = null;
+ foreach (ElementId elemId in docUI.Selection.GetElementIds())
+ {
+ Element elem = doc.GetElement(elemId);
+ wall = elem as Wall;
+ if (wall != null)
+ return wall;
+ }
+ return wall;
+ }
+ ///
+ /// Apply fillpatterns to cutting surface
+ ///
+ /// This object
+ /// A object contains the event data
+ private void buttonApplyToCutSurface_Click(object sender, EventArgs e)
+ {
+ Wall targetWall = GetSelectedWall();
+ if (targetWall == null)
+ {
+ TaskDialog.Show("Apply To CutSurface",
+ "Before applying a FillPattern to a wall's cut surfaces, you must first select a wall.");
this.Close();
- }
+ return;
+ }
- ///
- /// Apply linepattern to grids
- ///
- /// This object
- /// A object contains the event data
- private void buttonApplyToGrids_Click(object sender, EventArgs e)
- {
- List lstGridTypeIds = new List();
- GetSelectedGridTypeIds(lstGridTypeIds);
- if (lstGridTypeIds.Count == 0)
- {
- TaskDialog.Show("Apply To Grids",
- "Before applying LinePattern to Grids, you must firstly select at least one grid.");
- this.Close();
- return;
- }
+ if (treeViewFillPattern.SelectedNode == null || treeViewFillPattern.SelectedNode.Parent == null)
+ {
+ TaskDialog.Show("Apply To CutSurface",
+ "Before applying a FillPattern to a wall's cutting surfaces, you must first select a FillPattern.");
+ return;
+ }
- if (treeViewLinePattern.SelectedNode == null || treeViewLinePattern.Parent == null)
- {
- TaskDialog.Show("Apply To Grids",
- "Before applying LinePattern to Grids, you must firstly select a LinePattern.");
- return;
- }
- ElementId eid = new ElementId(int.Parse(treeViewLinePattern.SelectedNode.Name));
- foreach (ElementId typeId in lstGridTypeIds)
- {
- Element gridType = doc.GetElement(typeId);
- //set the parameter value of End Segment Pattern
- SetParameter("End Segment Pattern", eid, gridType);
- }
+ List lstPatterns = GetAllElements();
+ int patternIndex = int.Parse(treeViewFillPattern.SelectedNode.Name);
+ Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
+
+ Transaction trans = new Transaction(doc);
+ trans.Start("Apply fillpattern to cutting surface");
+ targetMaterial.CutForegroundPatternId = lstPatterns[patternIndex].Id;
+ trans.Commit();
+
+ this.Close();
+ }
+
+ ///
+ /// Apply linepattern to grids
+ ///
+ /// This object
+ /// A object contains the event data
+ private void buttonApplyToGrids_Click(object sender, EventArgs e)
+ {
+ List lstGridTypeIds = new List();
+ GetSelectedGridTypeIds(lstGridTypeIds);
+ if (lstGridTypeIds.Count == 0)
+ {
+ TaskDialog.Show("Apply To Grids",
+ "Before applying a LinePattern to Grids, you must first select at least one grid.");
this.Close();
- }
+ return;
+ }
- ///
- /// Get selected GridType Ids
- ///
- /// Selected GridType Ids
- private void GetSelectedGridTypeIds(List lstGridTypeIds)
- {
- foreach (ElementId elemId in docUI.Selection.GetElementIds())
- {
- Element elem = doc.GetElement(elemId);
- Grid grid = elem as Grid;
- if (grid != null)
- {
- ElementId gridTypeId = grid.GetTypeId();
- if (!lstGridTypeIds.Contains(gridTypeId))
- lstGridTypeIds.Add(gridTypeId);
- }
- }
- }
+ if (treeViewLinePattern.SelectedNode == null || treeViewLinePattern.Parent == null)
+ {
+ TaskDialog.Show("Apply To Grids",
+ "Before applying a LinePattern to Grids, you must first select a LinePattern.");
+ return;
+ }
+ ElementId eid = new ElementId(int.Parse(treeViewLinePattern.SelectedNode.Name));
+ foreach (ElementId typeId in lstGridTypeIds)
+ {
+ Element gridType = doc.GetElement(typeId);
+ //set the parameter value of End Segment Pattern
+ SetParameter("End Segment Pattern", eid, gridType);
+ }
+ this.Close();
+ }
- ///
- /// To create a brick-like patternss
- ///
- /// This object
- /// A object contains the event data
- private void buttonCreateComplexFillPattern_Click(object sender, EventArgs e)
- {
- Wall targetWall = GetSelectedWall();
- if (targetWall == null)
+ ///
+ /// Get selected GridType Ids
+ ///
+ /// Selected GridType Ids
+ private void GetSelectedGridTypeIds(List lstGridTypeIds)
+ {
+ foreach (ElementId elemId in docUI.Selection.GetElementIds())
+ {
+ Element elem = doc.GetElement(elemId);
+ Grid grid = elem as Grid;
+ if (grid != null)
{
- TaskDialog.Show("Create Fill Pattern",
- "Before applying FillPattern to a wall's surfaces, you must firstly select a wall.");
- this.Close();
- return;
+ ElementId gridTypeId = grid.GetTypeId();
+ if (!lstGridTypeIds.Contains(gridTypeId))
+ lstGridTypeIds.Add(gridTypeId);
}
+ }
+ }
- FillPatternElement mySurfacePattern = CreateComplexFacePattern("MyComplexPattern");
- Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
- Transaction trans = new Transaction(doc);
- trans.Start("Apply complex fillpattern to surface");
- targetMaterial.SurfaceForegroundPatternId = mySurfacePattern.Id;
- trans.Commit();
+ ///
+ /// To create a brick-like patternss
+ ///
+ /// This object
+ /// A object contains the event data
+ private void buttonCreateComplexFillPattern_Click(object sender, EventArgs e)
+ {
+ Wall targetWall = GetSelectedWall();
+ if (targetWall == null)
+ {
+ TaskDialog.Show("Create Fill Pattern",
+ "Before applying a FillPattern to a wall's surfaces, you must first select a wall.");
this.Close();
- }
+ return;
+ }
- private void PatternForm_Load(object sender, EventArgs e)
- {
+ FillPatternElement mySurfacePattern = GetOrCreateComplexFacePattern("MyComplexPattern");
+ Material targetMaterial = doc.GetElement(targetWall.GetMaterialIds(false).First()) as Material;
+ Transaction trans = new Transaction(doc);
+ trans.Start("Apply complex fillpattern to surface");
+ targetMaterial.SurfaceForegroundPatternId = mySurfacePattern.Id;
+ trans.Commit();
+ this.Close();
+ }
- }
- }
+ private void PatternForm_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
}
diff --git a/SDK/Samples/CreateShared/VB.NET/CreateShared.vbproj b/SDK/Samples/CreateShared/VB.NET/CreateShared.vbproj
index 4531b039..ffb9b547 100644
--- a/SDK/Samples/CreateShared/VB.NET/CreateShared.vbproj
+++ b/SDK/Samples/CreateShared/VB.NET/CreateShared.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateSimpleAreaRein/CS/CreateSimpleAreaRein.csproj b/SDK/Samples/CreateSimpleAreaRein/CS/CreateSimpleAreaRein.csproj
index eb28bca0..82dd203d 100644
--- a/SDK/Samples/CreateSimpleAreaRein/CS/CreateSimpleAreaRein.csproj
+++ b/SDK/Samples/CreateSimpleAreaRein/CS/CreateSimpleAreaRein.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateTrianglesTopography/CS/CreateTrianglesTopography.csproj b/SDK/Samples/CreateTrianglesTopography/CS/CreateTrianglesTopography.csproj
index b5d2c06b..a32eb6b0 100644
--- a/SDK/Samples/CreateTrianglesTopography/CS/CreateTrianglesTopography.csproj
+++ b/SDK/Samples/CreateTrianglesTopography/CS/CreateTrianglesTopography.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
CreateTrianglesTopography
- v4.7
+ v4.8
true
@@ -80,4 +74,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/CreateViewSection/CS/CreateViewSection.csproj b/SDK/Samples/CreateViewSection/CS/CreateViewSection.csproj
index b77aa119..55535882 100644
--- a/SDK/Samples/CreateViewSection/CS/CreateViewSection.csproj
+++ b/SDK/Samples/CreateViewSection/CS/CreateViewSection.csproj
@@ -31,7 +31,7 @@
1.0.0.%2a
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateWallinBeamProfile/CS/CreateWallinBeamProfile.csproj b/SDK/Samples/CreateWallinBeamProfile/CS/CreateWallinBeamProfile.csproj
index a4e39bd1..571c2c44 100644
--- a/SDK/Samples/CreateWallinBeamProfile/CS/CreateWallinBeamProfile.csproj
+++ b/SDK/Samples/CreateWallinBeamProfile/CS/CreateWallinBeamProfile.csproj
@@ -10,7 +10,7 @@
Properties
CreateWallinBeamProfile
CreateWallinBeamProfile
- v4.7
+ v4.8
diff --git a/SDK/Samples/CreateWallsUnderBeams/CS/CreateWallsUnderBeams.csproj b/SDK/Samples/CreateWallsUnderBeams/CS/CreateWallsUnderBeams.csproj
index 525079fc..53e50d61 100644
--- a/SDK/Samples/CreateWallsUnderBeams/CS/CreateWallsUnderBeams.csproj
+++ b/SDK/Samples/CreateWallsUnderBeams/CS/CreateWallsUnderBeams.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/CurtainSystem/CS/CurtainSystem.csproj b/SDK/Samples/CurtainSystem/CS/CurtainSystem.csproj
index 61c15732..04cc69b2 100644
--- a/SDK/Samples/CurtainSystem/CS/CurtainSystem.csproj
+++ b/SDK/Samples/CurtainSystem/CS/CurtainSystem.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.CurtainSystem.CS
CurtainSystem
- v4.7
+ v4.8
diff --git a/SDK/Samples/CurtainWallGrid/CS/CurtainWallGrid.csproj b/SDK/Samples/CurtainWallGrid/CS/CurtainWallGrid.csproj
index 4a6a2714..ceb3c2f4 100644
--- a/SDK/Samples/CurtainWallGrid/CS/CurtainWallGrid.csproj
+++ b/SDK/Samples/CurtainWallGrid/CS/CurtainWallGrid.csproj
@@ -10,7 +10,7 @@
Properties
CurtainWallGrid
CurtainWallGrid
- v4.7
+ v4.8
diff --git a/SDK/Samples/CurtainWallGrid/CS/GridDrawing.cs b/SDK/Samples/CurtainWallGrid/CS/GridDrawing.cs
index f92803eb..5e3764ff 100644
--- a/SDK/Samples/CurtainWallGrid/CS/GridDrawing.cs
+++ b/SDK/Samples/CurtainWallGrid/CS/GridDrawing.cs
@@ -623,11 +623,10 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
Vector4 vec = new Vector4(xyz);
vec = m_coordinates.RestoreMatrix.Transform(vec);
offset = vec.Z - m_geometry.LineToBeMoved.FullCurve.GetEndPoint(0).Z;
- offset = Unit.CovertFromAPI(m_myDocument.LengthUnitType, offset);
+ offset = Unit.CovertFromAPI(m_myDocument.LengthUnit, offset);
// showing the move offset
- m_drawObject.Text = "Offset: " + Math.Round(offset, 1) +
- Revit.SDK.Samples.CurtainWallGrid.CS.Properties.Resources.ResourceManager.GetString(m_myDocument.LengthUnitType.ToString());
+ m_drawObject.Text = "Offset: " + Math.Round(offset, 1) + Unit.GetUnitLabel(m_myDocument.LengthUnit);
m_drawObject.TextPosition = mousePosition;
m_drawObject.TextPen = redPen;
return;
@@ -653,11 +652,10 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
Vector4 vec = new Vector4(xyz);
vec = m_coordinates.RestoreMatrix.Transform(vec);
offset = vec.X - m_geometry.LineToBeMoved.FullCurve.GetEndPoint(0).X;
- offset = Unit.CovertFromAPI(m_myDocument.LengthUnitType, offset);
+ offset = Unit.CovertFromAPI(m_myDocument.LengthUnit, offset);
// showing the move offset
- m_drawObject.Text = "Offset: " + Math.Round(offset, 1) +
- Revit.SDK.Samples.CurtainWallGrid.CS.Properties.Resources.ResourceManager.GetString(m_myDocument.LengthUnitType.ToString());
+ m_drawObject.Text = "Offset: " + Math.Round(offset, 1) + Unit.GetUnitLabel(m_myDocument.LengthUnit);
m_drawObject.TextPosition = mousePosition;
m_drawObject.TextPen = redPen;
}
diff --git a/SDK/Samples/CurtainWallGrid/CS/MyDocument.cs b/SDK/Samples/CurtainWallGrid/CS/MyDocument.cs
index e5280cd6..7dec9c3f 100644
--- a/SDK/Samples/CurtainWallGrid/CS/MyDocument.cs
+++ b/SDK/Samples/CurtainWallGrid/CS/MyDocument.cs
@@ -102,7 +102,7 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
LineOperation m_activeOperation;
// the length unit type for the active Revit document
- DisplayUnitType m_LengthUnitType;
+ ForgeTypeId m_LengthUnit;
// store the message of the sample
private KeyValuePair m_message;
@@ -199,11 +199,11 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
}
}
- public DisplayUnitType LengthUnitType
+ public ForgeTypeId LengthUnit
{
get
{
- return m_LengthUnitType;
+ return m_LengthUnit;
}
}
@@ -271,16 +271,16 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
///
private void GetLengthUnitType()
{
- UnitType unitType = UnitType.UT_Length;
+ ForgeTypeId specTypeId = SpecTypeId.Length;
Units projectUnit = m_document.GetUnits();
try
{
- Autodesk.Revit.DB.FormatOptions formatOption = projectUnit.GetFormatOptions(unitType);
- m_LengthUnitType = formatOption.DisplayUnits;
+ Autodesk.Revit.DB.FormatOptions formatOption = projectUnit.GetFormatOptions(specTypeId);
+ m_LengthUnit = formatOption.GetUnitTypeId();
}
catch (System.Exception /*e*/)
{
- m_LengthUnitType = DisplayUnitType.DUT_DECIMAL_FEET;
+ m_LengthUnit = UnitTypeId.Feet;
}
}
diff --git a/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.Designer.cs b/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.Designer.cs
index 23d10e82..4e27a89b 100644
--- a/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.Designer.cs
+++ b/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.Designer.cs
@@ -8,8 +8,7 @@
//
//------------------------------------------------------------------------------
-namespace Revit.SDK.Samples.CurtainWallGrid.CS.Properties
-{
+namespace CurtainWallGrid.Properties {
using System;
@@ -20,7 +19,7 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS.Properties
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
@@ -60,77 +59,5 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS.Properties
resourceCulture = value;
}
}
-
- ///
- /// Looks up a localized string similar to cm.
- ///
- internal static string DUT_CENTIMETERS {
- get {
- return ResourceManager.GetString("DUT_CENTIMETERS", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to '.
- ///
- internal static string DUT_DECIMAL_FEET {
- get {
- return ResourceManager.GetString("DUT_DECIMAL_FEET", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to ".
- ///
- internal static string DUT_DECIMAL_INCHES {
- get {
- return ResourceManager.GetString("DUT_DECIMAL_INCHES", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to '.
- ///
- internal static string DUT_FEET_FRACTIONAL_INCHES {
- get {
- return ResourceManager.GetString("DUT_FEET_FRACTIONAL_INCHES", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to ".
- ///
- internal static string DUT_FRACTIONAL_INCHES {
- get {
- return ResourceManager.GetString("DUT_FRACTIONAL_INCHES", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to m.
- ///
- internal static string DUT_METERS {
- get {
- return ResourceManager.GetString("DUT_METERS", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to m.
- ///
- internal static string DUT_METERS_CENTIMETERS {
- get {
- return ResourceManager.GetString("DUT_METERS_CENTIMETERS", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to mm.
- ///
- internal static string DUT_MILLIMETERS {
- get {
- return ResourceManager.GetString("DUT_MILLIMETERS", resourceCulture);
- }
- }
}
}
diff --git a/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.resx b/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.resx
index c27a0144..29dcb1b3 100644
--- a/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.resx
+++ b/SDK/Samples/CurtainWallGrid/CS/Properties/Resources.resx
@@ -112,33 +112,9 @@
2.0
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- cm
-
-
- '
-
-
- "
-
-
- '
-
-
- "
-
-
- m
-
-
- m
-
-
- mm
-
\ No newline at end of file
diff --git a/SDK/Samples/CurtainWallGrid/CS/Unit.cs b/SDK/Samples/CurtainWallGrid/CS/Unit.cs
index a5e07e75..c799ef30 100644
--- a/SDK/Samples/CurtainWallGrid/CS/Unit.cs
+++ b/SDK/Samples/CurtainWallGrid/CS/Unit.cs
@@ -38,10 +38,10 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
{
#region Methods
///
- /// Convert the value get from RevitAPI to the value indicated by DisplayUnitType
+ /// Convert the value get from RevitAPI to the value indicated by ForgeTypeId
///
///
- /// DisplayUnitType indicates unit of target value
+ /// ForgeTypeId indicates unit of target value
///
///
/// value get from RevitAPI
@@ -49,51 +49,65 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
///
/// Target value
///
- public static double CovertFromAPI(DisplayUnitType to, double value)
+ public static double CovertFromAPI(ForgeTypeId to, double value)
{
return value *= ImperialDutRatio(to);
}
///
- /// Convert a value indicated by DisplayUnitType to the value used by RevitAPI
+ /// Convert a value indicated by ForgeTypeId to the value used by RevitAPI
///
///
/// Value to be converted
///
///
- /// DisplayUnitType indicates the unit of the value to be converted
+ /// ForgeTypeId indicates the unit of the value to be converted
///
///
/// Target value
///
- public static double CovertToAPI(double value, DisplayUnitType from)
+ public static double CovertToAPI(double value, ForgeTypeId from)
{
return value /= ImperialDutRatio(from);
}
///
- /// Get ratio between value in RevitAPI and value to display indicated by DisplayUnitType
+ /// Get ratio between value in RevitAPI and value to display indicated by ForgeTypeId
///
///
- /// DisplayUnitType indicates display unit type
+ /// ForgeTypeId indicates display unit type
///
///
/// Ratio
///
- private static double ImperialDutRatio(DisplayUnitType dut)
+ private static double ImperialDutRatio(ForgeTypeId unitTypeId)
{
- switch (dut)
- {
- case DisplayUnitType.DUT_DECIMAL_FEET: return 1;
- case DisplayUnitType.DUT_FEET_FRACTIONAL_INCHES: return 1;
- case DisplayUnitType.DUT_DECIMAL_INCHES: return 12;
- case DisplayUnitType.DUT_FRACTIONAL_INCHES: return 12;
- case DisplayUnitType.DUT_METERS: return 0.3048;
- case DisplayUnitType.DUT_CENTIMETERS: return 30.48;
- case DisplayUnitType.DUT_MILLIMETERS: return 304.8;
- case DisplayUnitType.DUT_METERS_CENTIMETERS: return 0.3048;
- default: return 1;
- }
+ if (unitTypeId == UnitTypeId.Feet) return 1;
+ if (unitTypeId == UnitTypeId.FeetFractionalInches) return 1;
+ if (unitTypeId == UnitTypeId.Inches) return 12;
+ if (unitTypeId == UnitTypeId.FractionalInches) return 12;
+ if (unitTypeId == UnitTypeId.Meters) return 0.3048;
+ if (unitTypeId == UnitTypeId.Centimeters) return 30.48;
+ if (unitTypeId == UnitTypeId.Millimeters) return 304.8;
+ if (unitTypeId == UnitTypeId.MetersCentimeters) return 0.3048;
+ return 1;
+ }
+
+ public static string GetUnitLabel(ForgeTypeId unitTypeId)
+ {
+ Dictionary unitLabels = new Dictionary {
+ { UnitTypeId.Centimeters, "cm" },
+ { UnitTypeId.Feet, "'" },
+ { UnitTypeId.Inches, "\"" },
+ { UnitTypeId.FeetFractionalInches, "'" },
+ { UnitTypeId.FractionalInches, "\"" },
+ { UnitTypeId.Meters, "m" },
+ { UnitTypeId.MetersCentimeters, "m" },
+ { UnitTypeId.Millimeters, "mm" }
+ };
+ if (unitLabels.ContainsKey(unitTypeId))
+ return unitLabels[unitTypeId];
+ return string.Empty;
}
#endregion
}
diff --git a/SDK/Samples/CurtainWallGrid/CS/WallDrawing.cs b/SDK/Samples/CurtainWallGrid/CS/WallDrawing.cs
index b8bfbdd2..ae55b858 100644
--- a/SDK/Samples/CurtainWallGrid/CS/WallDrawing.cs
+++ b/SDK/Samples/CurtainWallGrid/CS/WallDrawing.cs
@@ -279,12 +279,13 @@ namespace Revit.SDK.Samples.CurtainWallGrid.CS
private void WriteCoordinate(Graphics graphics, Pen pen)
{
PointD assistPointD = ConvertToPointD(m_wallLine2D.AssistantPoint);
- double x = Unit.CovertFromAPI(m_myDocument.LengthUnitType, assistPointD.X);
- double y = Unit.CovertFromAPI(m_myDocument.LengthUnitType, assistPointD.Y);
+ double x = Unit.CovertFromAPI(m_myDocument.LengthUnit, assistPointD.X);
+ double y = Unit.CovertFromAPI(m_myDocument.LengthUnit, assistPointD.Y);
string xCoorString = Convert.ToString(Math.Round(x, 1));
string yCoorString = Convert.ToString(Math.Round(y, 1));
- string unitType = Revit.SDK.Samples.CurtainWallGrid.CS.Properties.Resources.ResourceManager.GetString(m_myDocument.LengthUnitType.ToString());
+
+ string unitType = Unit.GetUnitLabel(m_myDocument.LengthUnit);
String coordinate = "(" + xCoorString + unitType + "," + yCoorString + unitType + ")";
graphics.DrawString(coordinate, m_coordinateFont, Brushes.Blue,
new PointF(m_wallLine2D.AssistantPoint.X + 2, m_wallLine2D.AssistantPoint.Y + 2));
diff --git a/SDK/Samples/CurvedBeam/CS/CurvedBeam.csproj b/SDK/Samples/CurvedBeam/CS/CurvedBeam.csproj
index 0d1708f7..2d64d2fe 100644
--- a/SDK/Samples/CurvedBeam/CS/CurvedBeam.csproj
+++ b/SDK/Samples/CurvedBeam/CS/CurvedBeam.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.CurvedBeam.CS
CurvedBeam
- v4.7
+ v4.8
diff --git a/SDK/Samples/CustomExporter/Custom2DExporter/CS/Custom2DExporter.csproj b/SDK/Samples/CustomExporter/Custom2DExporter/CS/Custom2DExporter.csproj
index 4ec62549..b1df80da 100644
--- a/SDK/Samples/CustomExporter/Custom2DExporter/CS/Custom2DExporter.csproj
+++ b/SDK/Samples/CustomExporter/Custom2DExporter/CS/Custom2DExporter.csproj
@@ -12,7 +12,7 @@
Custom2DExporter
- v4.7
+ v4.8
true
diff --git a/SDK/Samples/DatumsModification/CS/DatumsModification.csproj b/SDK/Samples/DatumsModification/CS/DatumsModification.csproj
index 15cba00b..9dbd42e5 100644
--- a/SDK/Samples/DatumsModification/CS/DatumsModification.csproj
+++ b/SDK/Samples/DatumsModification/CS/DatumsModification.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
DatumsModification
- v4.7
+ v4.8
@@ -133,4 +127,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/DeckProperties/CS/DeckProperties.csproj b/SDK/Samples/DeckProperties/CS/DeckProperties.csproj
index 535eb13f..b9b958cf 100644
--- a/SDK/Samples/DeckProperties/CS/DeckProperties.csproj
+++ b/SDK/Samples/DeckProperties/CS/DeckProperties.csproj
@@ -10,7 +10,7 @@
Properties
DeckProperties
DeckProperties
- v4.7
+ v4.8
diff --git a/SDK/Samples/DeleteDimensions/CS/DeleteDimensions.csproj b/SDK/Samples/DeleteDimensions/CS/DeleteDimensions.csproj
index 2e0caaac..e52506e7 100644
--- a/SDK/Samples/DeleteDimensions/CS/DeleteDimensions.csproj
+++ b/SDK/Samples/DeleteDimensions/CS/DeleteDimensions.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/DeleteObject/CS/DeleteObject.csproj b/SDK/Samples/DeleteObject/CS/DeleteObject.csproj
index 0b55ecbf..a2b91b91 100644
--- a/SDK/Samples/DeleteObject/CS/DeleteObject.csproj
+++ b/SDK/Samples/DeleteObject/CS/DeleteObject.csproj
@@ -27,7 +27,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/DeleteObject/VB.NET/DeleteObject.vbproj b/SDK/Samples/DeleteObject/VB.NET/DeleteObject.vbproj
index 4541271f..59bbffa9 100644
--- a/SDK/Samples/DeleteObject/VB.NET/DeleteObject.vbproj
+++ b/SDK/Samples/DeleteObject/VB.NET/DeleteObject.vbproj
@@ -30,7 +30,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/DesignOptionReader/VB.NET/DesignOptionReader.vbproj b/SDK/Samples/DesignOptionReader/VB.NET/DesignOptionReader.vbproj
index 8088f3e6..15732f7f 100644
--- a/SDK/Samples/DesignOptionReader/VB.NET/DesignOptionReader.vbproj
+++ b/SDK/Samples/DesignOptionReader/VB.NET/DesignOptionReader.vbproj
@@ -44,7 +44,7 @@
1.0.0.%2a
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/DimensionLeaderEnd/CS/DimensionLeaderEnd.csproj b/SDK/Samples/DimensionLeaderEnd/CS/DimensionLeaderEnd.csproj
index 20835ca1..39e1e626 100644
--- a/SDK/Samples/DimensionLeaderEnd/CS/DimensionLeaderEnd.csproj
+++ b/SDK/Samples/DimensionLeaderEnd/CS/DimensionLeaderEnd.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
DimensionLeaderEnd
- v4.7
+ v4.8
@@ -92,4 +86,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/DirectionCalculation/CS/DirectionCalculation.csproj b/SDK/Samples/DirectionCalculation/CS/DirectionCalculation.csproj
index 355815c0..27de9ceb 100644
--- a/SDK/Samples/DirectionCalculation/CS/DirectionCalculation.csproj
+++ b/SDK/Samples/DirectionCalculation/CS/DirectionCalculation.csproj
@@ -30,7 +30,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/DisableCommand/CS/DisableCommand.csproj b/SDK/Samples/DisableCommand/CS/DisableCommand.csproj
index 2696fc82..b865dc24 100644
--- a/SDK/Samples/DisableCommand/CS/DisableCommand.csproj
+++ b/SDK/Samples/DisableCommand/CS/DisableCommand.csproj
@@ -12,7 +12,7 @@
DisableCommand
- v4.7
+ v4.8
diff --git a/SDK/Samples/DisplacementElementAnimation/CS/DisplacementElementAnimation.csproj b/SDK/Samples/DisplacementElementAnimation/CS/DisplacementElementAnimation.csproj
index ff7b28bc..047e117c 100644
--- a/SDK/Samples/DisplacementElementAnimation/CS/DisplacementElementAnimation.csproj
+++ b/SDK/Samples/DisplacementElementAnimation/CS/DisplacementElementAnimation.csproj
@@ -12,7 +12,7 @@
DisplacementElementAnimation
- v4.7
+ v4.8
diff --git a/SDK/Samples/DockableDialogs/CS/DockableDialogs.csproj b/SDK/Samples/DockableDialogs/CS/DockableDialogs.csproj
index 8ef53e32..424e2ab5 100644
--- a/SDK/Samples/DockableDialogs/CS/DockableDialogs.csproj
+++ b/SDK/Samples/DockableDialogs/CS/DockableDialogs.csproj
@@ -12,7 +12,7 @@
DockableDialogs
- v4.7
+ v4.8
diff --git a/SDK/Samples/DocumentChanged/CS/ChangesMonitor.csproj b/SDK/Samples/DocumentChanged/CS/ChangesMonitor.csproj
index 100a5871..f349f103 100644
--- a/SDK/Samples/DocumentChanged/CS/ChangesMonitor.csproj
+++ b/SDK/Samples/DocumentChanged/CS/ChangesMonitor.csproj
@@ -10,7 +10,7 @@
Properties
ChangesMonitor
ChangesMonitor
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/DoorSwing/CS/DoorSwing.csproj b/SDK/Samples/DoorSwing/CS/DoorSwing.csproj
index 6e99303d..da603339 100644
--- a/SDK/Samples/DoorSwing/CS/DoorSwing.csproj
+++ b/SDK/Samples/DoorSwing/CS/DoorSwing.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.DoorSwing.CS
DoorSwing
- v4.7
+ v4.8
diff --git a/SDK/Samples/DuplicateGraphics/CS/DuplicateGraphics.csproj b/SDK/Samples/DuplicateGraphics/CS/DuplicateGraphics.csproj
index 428f026e..ec21c24e 100644
--- a/SDK/Samples/DuplicateGraphics/CS/DuplicateGraphics.csproj
+++ b/SDK/Samples/DuplicateGraphics/CS/DuplicateGraphics.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
DuplicateGraphics
- v4.7
+ v4.8
@@ -73,4 +67,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/DuplicateViews/CS/DuplicateViews.csproj b/SDK/Samples/DuplicateViews/CS/DuplicateViews.csproj
index e6de11f5..3a700e7e 100644
--- a/SDK/Samples/DuplicateViews/CS/DuplicateViews.csproj
+++ b/SDK/Samples/DuplicateViews/CS/DuplicateViews.csproj
@@ -12,7 +12,7 @@
DuplicateViews
- v4.7
+ v4.8
diff --git a/SDK/Samples/DynamicModelUpdate/CS/DynamicModelUpdate.csproj b/SDK/Samples/DynamicModelUpdate/CS/DynamicModelUpdate.csproj
index 1c81ce72..d415bb89 100644
--- a/SDK/Samples/DynamicModelUpdate/CS/DynamicModelUpdate.csproj
+++ b/SDK/Samples/DynamicModelUpdate/CS/DynamicModelUpdate.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.DynamicModelUpdate.CS
DynamicModelUpdate
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ElementFilter/ViewFilters/CS/ViewFilters.csproj b/SDK/Samples/ElementFilter/ViewFilters/CS/ViewFilters.csproj
index 58d8a977..320a28dc 100644
--- a/SDK/Samples/ElementFilter/ViewFilters/CS/ViewFilters.csproj
+++ b/SDK/Samples/ElementFilter/ViewFilters/CS/ViewFilters.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/ErrorHandling/CS/ErrorHandling.csproj b/SDK/Samples/ErrorHandling/CS/ErrorHandling.csproj
index 4c4caa1e..dd7d5e4d 100644
--- a/SDK/Samples/ErrorHandling/CS/ErrorHandling.csproj
+++ b/SDK/Samples/ErrorHandling/CS/ErrorHandling.csproj
@@ -10,7 +10,7 @@
Properties
ErrorHandling
ErrorHandling
- v4.7
+ v4.8
diff --git a/SDK/Samples/Events/AutoStamp/CS/AutoStamp.csproj b/SDK/Samples/Events/AutoStamp/CS/AutoStamp.csproj
index ce4bd1b0..4f3b28e2 100644
--- a/SDK/Samples/Events/AutoStamp/CS/AutoStamp.csproj
+++ b/SDK/Samples/Events/AutoStamp/CS/AutoStamp.csproj
@@ -30,7 +30,7 @@
1.0.0.%2a
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/Events/AutoUpdate/CS/AutoUpdate.csproj b/SDK/Samples/Events/AutoUpdate/CS/AutoUpdate.csproj
index 259e4bb5..0e5da689 100644
--- a/SDK/Samples/Events/AutoUpdate/CS/AutoUpdate.csproj
+++ b/SDK/Samples/Events/AutoUpdate/CS/AutoUpdate.csproj
@@ -10,7 +10,7 @@
Properties
AutoUpdate
AutoUpdate
- v4.7
+ v4.8
diff --git a/SDK/Samples/Events/CancelSave/CS/CancelSave.csproj b/SDK/Samples/Events/CancelSave/CS/CancelSave.csproj
index 2774e581..fb92f140 100644
--- a/SDK/Samples/Events/CancelSave/CS/CancelSave.csproj
+++ b/SDK/Samples/Events/CancelSave/CS/CancelSave.csproj
@@ -10,7 +10,7 @@
Properties
CancelSave
CancelSave
- v4.7
+ v4.8
diff --git a/SDK/Samples/Events/EventsMonitor/CS/EventsMonitor.csproj b/SDK/Samples/Events/EventsMonitor/CS/EventsMonitor.csproj
index 8055561c..24eaf61f 100644
--- a/SDK/Samples/Events/EventsMonitor/CS/EventsMonitor.csproj
+++ b/SDK/Samples/Events/EventsMonitor/CS/EventsMonitor.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.EventsMonitor.CS
EventsMonitor
- v4.7
+ v4.8
diff --git a/SDK/Samples/Events/PrintLog/CS/PrintLog.csproj b/SDK/Samples/Events/PrintLog/CS/PrintLog.csproj
index 993e7ae8..dfa68800 100644
--- a/SDK/Samples/Events/PrintLog/CS/PrintLog.csproj
+++ b/SDK/Samples/Events/PrintLog/CS/PrintLog.csproj
@@ -25,7 +25,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/Events/ProgressNotifier/CS/ProgressNotifier.csproj b/SDK/Samples/Events/ProgressNotifier/CS/ProgressNotifier.csproj
index c718862e..fdf513dc 100644
--- a/SDK/Samples/Events/ProgressNotifier/CS/ProgressNotifier.csproj
+++ b/SDK/Samples/Events/ProgressNotifier/CS/ProgressNotifier.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.ProgressNotifier.CS
ProgressNotifier
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/ExtensibleStorageManager.csproj b/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/ExtensibleStorageManager.csproj
index 2651540f..529ac80c 100644
--- a/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/ExtensibleStorageManager.csproj
+++ b/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/ExtensibleStorageManager.csproj
@@ -10,7 +10,7 @@
Properties
ExtensibleStorageManager
ExtensibleStorageManager
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/User/StorageCommand.cs b/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/User/StorageCommand.cs
index 9c94c107..f44d106c 100644
--- a/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/User/StorageCommand.cs
+++ b/SDK/Samples/ExtensibleStorageManager/ExtensibleStorageManager/CS/User/StorageCommand.cs
@@ -111,12 +111,12 @@ namespace ExtensibleStorageManager
private static void SimpleSchemaAndData(SchemaWrapperTools.SchemaWrapper mySchemaWrapper, out Entity storageElementEntityWrite)
{
//Create some sample fields.
- mySchemaWrapper.AddField(int0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(short0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(double0Name, UnitType.UT_Length, null);
- mySchemaWrapper.AddField(float0Name, UnitType.UT_Length, null);
- mySchemaWrapper.AddField(bool0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(string0Name, UnitType.UT_Undefined, null);
+ mySchemaWrapper.AddField(int0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(short0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(double0Name, SpecTypeId.Length, null);
+ mySchemaWrapper.AddField(float0Name, SpecTypeId.Length, null);
+ mySchemaWrapper.AddField(bool0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(string0Name, new ForgeTypeId(), null);
//Generate the Autodesk.Revit.DB.ExtensibleStorage.Schema.
mySchemaWrapper.FinishSchema();
@@ -137,8 +137,8 @@ namespace ExtensibleStorageManager
//Set data in the entity.
storageElementEntityWrite.Set(fieldInt0, 5);
storageElementEntityWrite.Set(fieldShort0, 2);
- storageElementEntityWrite.Set(fieldDouble0, 7.1, DisplayUnitType.DUT_METERS);
- storageElementEntityWrite.Set(fieldFloat0, 3.1f, DisplayUnitType.DUT_METERS);
+ storageElementEntityWrite.Set(fieldDouble0, 7.1, UnitTypeId.Meters);
+ storageElementEntityWrite.Set(fieldFloat0, 3.1f, UnitTypeId.Meters);
storageElementEntityWrite.Set(fieldBool0, false);
storageElementEntityWrite.Set(fieldString0, "hello");
@@ -152,35 +152,35 @@ namespace ExtensibleStorageManager
private static void ComplexSchemaAndData(SchemaWrapperTools.SchemaWrapper mySchemaWrapper, Element storageElement, string xmlPathOut, Guid schemaId, AccessLevel readAccess, AccessLevel writeAccess, string vendorId, string applicationId, string name, string documentation, out Entity storageElementEntityWrite)
{
#region Add Fields to the SchemaWrapper
- mySchemaWrapper.AddField(int0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(short0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(double0Name, UnitType.UT_Length, null);
- mySchemaWrapper.AddField(float0Name, UnitType.UT_Length, null);
- mySchemaWrapper.AddField(bool0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(string0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(id0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField(point0Name, UnitType.UT_Length, null);
- mySchemaWrapper.AddField(uv0Name, UnitType.UT_Length, null);
- mySchemaWrapper.AddField(guid0Name, UnitType.UT_Undefined, null);
+ mySchemaWrapper.AddField(int0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(short0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(double0Name, SpecTypeId.Length, null);
+ mySchemaWrapper.AddField(float0Name, SpecTypeId.Length, null);
+ mySchemaWrapper.AddField(bool0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(string0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(id0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField(point0Name, SpecTypeId.Length, null);
+ mySchemaWrapper.AddField(uv0Name, SpecTypeId.Length, null);
+ mySchemaWrapper.AddField(guid0Name, new ForgeTypeId(), null);
//Note that we use IDictionary<> for map types and IList<> for array types
- mySchemaWrapper.AddField>(map0Name, UnitType.UT_Undefined, null);
- mySchemaWrapper.AddField>(array0Name, UnitType.UT_Undefined, null);
+ mySchemaWrapper.AddField>(map0Name, new ForgeTypeId(), null);
+ mySchemaWrapper.AddField>(array0Name, new ForgeTypeId(), null);
//Create a sample subEntity
SchemaWrapperTools.SchemaWrapper mySubSchemaWrapper0 = SchemaWrapperTools.SchemaWrapper.NewSchema(subEntityGuid0, readAccess, writeAccess, vendorId, applicationId, entity0Name, "A sub entity");
- mySubSchemaWrapper0.AddField("subInt0", UnitType.UT_Undefined, null);
+ mySubSchemaWrapper0.AddField("subInt0", new ForgeTypeId(), null);
mySubSchemaWrapper0.FinishSchema();
Entity subEnt0 = new Entity(mySubSchemaWrapper0.GetSchema());
subEnt0.Set(mySubSchemaWrapper0.GetSchema().GetField("subInt0"), 11);
- mySchemaWrapper.AddField(entity0Name, UnitType.UT_Undefined, mySubSchemaWrapper0);
+ mySchemaWrapper.AddField(entity0Name, new ForgeTypeId(), mySubSchemaWrapper0);
//
//Create a sample map of subEntities (An IDictionary<> with key type "int" and value type "Entity")
//
//Create a new sample schema.
SchemaWrapperTools.SchemaWrapper mySubSchemaWrapper1_Map = SchemaWrapperTools.SchemaWrapper.NewSchema(subEntityGuid_Map1, readAccess, writeAccess, vendorId, applicationId, map1Name, "A map of int to Entity");
- mySubSchemaWrapper1_Map.AddField("subInt1", UnitType.UT_Undefined, null);
+ mySubSchemaWrapper1_Map.AddField("subInt1", new ForgeTypeId(), null);
mySubSchemaWrapper1_Map.FinishSchema();
//Create a new sample Entity.
Entity subEnt1 = new Entity(mySubSchemaWrapper1_Map.GetSchema());
@@ -188,7 +188,7 @@ namespace ExtensibleStorageManager
subEnt1.Set(mySubSchemaWrapper1_Map.GetSchema().GetField("subInt1"), 22);
//Add a new map field to the top-level Schema. We will add the entity we just created after all top-level
//fields are created.
- mySchemaWrapper.AddField>(map1Name, UnitType.UT_Undefined, mySubSchemaWrapper1_Map);
+ mySchemaWrapper.AddField>(map1Name, new ForgeTypeId(), mySubSchemaWrapper1_Map);
@@ -198,7 +198,7 @@ namespace ExtensibleStorageManager
//
//Create a new sample schema
SchemaWrapperTools.SchemaWrapper mySubSchemaWrapper2_Array = SchemaWrapperTools.SchemaWrapper.NewSchema(subEntityGuid_Array2, readAccess, writeAccess, vendorId, applicationId, array1Name, "An array of Entities");
- mySubSchemaWrapper2_Array.AddField("subInt2", UnitType.UT_Undefined, null);
+ mySubSchemaWrapper2_Array.AddField("subInt2", new ForgeTypeId(), null);
mySubSchemaWrapper2_Array.FinishSchema();
//Create a new sample Entity.
Entity subEnt2 = new Entity(mySubSchemaWrapper2_Array.GetSchema());
@@ -206,7 +206,7 @@ namespace ExtensibleStorageManager
subEnt2.Set(mySubSchemaWrapper2_Array.GetSchema().GetField("subInt2"), 33);
//Add a new array field to the top-level Schema We will add the entity we just crated after all top-level fields
//are created.
- mySchemaWrapper.AddField>(array1Name, UnitType.UT_Undefined, mySubSchemaWrapper2_Array);
+ mySchemaWrapper.AddField>(array1Name, new ForgeTypeId(), mySubSchemaWrapper2_Array);
#endregion
@@ -251,15 +251,15 @@ namespace ExtensibleStorageManager
storageElementEntityWrite.Set(fieldInt0, 5);
storageElementEntityWrite.Set(fieldShort0, 2);
- storageElementEntityWrite.Set(fieldDouble0, 7.1, DisplayUnitType.DUT_METERS);
- storageElementEntityWrite.Set(fieldFloat0, 3.1f, DisplayUnitType.DUT_METERS);
+ storageElementEntityWrite.Set(fieldDouble0, 7.1, UnitTypeId.Meters);
+ storageElementEntityWrite.Set(fieldFloat0, 3.1f, UnitTypeId.Meters);
storageElementEntityWrite.Set(fieldBool0, false);
storageElementEntityWrite.Set(fieldString0, "hello");
storageElementEntityWrite.Set(fieldId0, storageElement.Id);
- storageElementEntityWrite.Set(fieldPoint0, new XYZ(1, 2, 3), DisplayUnitType.DUT_METERS);
- storageElementEntityWrite.Set(fieldUv0, new UV(1, 2), DisplayUnitType.DUT_METERS);
+ storageElementEntityWrite.Set(fieldPoint0, new XYZ(1, 2, 3), UnitTypeId.Meters);
+ storageElementEntityWrite.Set(fieldUv0, new UV(1, 2), UnitTypeId.Meters);
storageElementEntityWrite.Set(fieldGuid0, new Guid("D8301329-F207-43B8-8AA1-634FD344F350"));
//Note that we must pass an IDictionary<>, not a Dictionary<> to Set().
@@ -361,8 +361,8 @@ namespace ExtensibleStorageManager
storageElementEntityWrite.Set(fieldInt0, 10);
storageElementEntityWrite.Set(fieldShort0, 20);
- storageElementEntityWrite.Set(fieldDouble0, 14.2, DisplayUnitType.DUT_METERS);
- storageElementEntityWrite.Set(fieldFloat0, 6.12f, DisplayUnitType.DUT_METERS);
+ storageElementEntityWrite.Set(fieldDouble0, 14.2, UnitTypeId.Meters);
+ storageElementEntityWrite.Set(fieldFloat0, 6.12f, UnitTypeId.Meters);
storageElementEntityWrite.Set(fieldBool0, true);
storageElementEntityWrite.Set(fieldString0, "goodbye");
//Set the entity back into the storage element.
diff --git a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/FieldData.cs b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/FieldData.cs
index bb53fb65..7443b75e 100644
--- a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/FieldData.cs
+++ b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/FieldData.cs
@@ -52,8 +52,8 @@ namespace SchemaWrapperTools
///
/// The name of the field
/// The AssemblyQualifiedName of the Field's data type
- /// The unit type of the Field (set to UT_Undefined for non-floating point types
- public FieldData(string name, string typeIn, UnitType unit) : this(name, typeIn, unit, null)
+ /// The unit type of the Field (set to UT_Undefined for non-floating point types
+ public FieldData(string name, string typeIn, ForgeTypeId spec) : this(name, typeIn, spec, null)
{
}
@@ -63,13 +63,13 @@ namespace SchemaWrapperTools
///
/// The name of the field
/// The AssemblyQualifiedName of the Field's data type
- /// The unit type of the Field (set to UT_Undefined for non-floating point types
+ /// The unit type of the Field (set to UT_Undefined for non-floating point types
/// The SchemaWrapper of the field's subSchema, if the field is of type "Entity"
- public FieldData(string name, string typeIn, UnitType unit, SchemaWrapper subSchema)
+ public FieldData(string name, string typeIn, ForgeTypeId spec, SchemaWrapper subSchema)
{
m_Name = name;
m_Type = typeIn;
- m_Unit = unit;
+ m_Spec = spec;
m_SubSchema = subSchema;
}
#endregion
@@ -83,7 +83,7 @@ namespace SchemaWrapperTools
strBuilder.Append(", ");
strBuilder.Append(Type);
strBuilder.Append(", ");
- strBuilder.Append(Unit.ToString());
+ strBuilder.Append(Spec.TypeId);
if (SubSchema != null)
@@ -116,10 +116,10 @@ namespace SchemaWrapperTools
///
/// The Unit type of the field
///
- public UnitType Unit
+ public ForgeTypeId Spec
{
- get { return m_Unit; }
- set { m_Unit = value; }
+ get { return m_Spec; }
+ set { m_Spec = value; }
}
///
@@ -136,7 +136,7 @@ namespace SchemaWrapperTools
private SchemaWrapper m_SubSchema;
private string m_Name;
private string m_Type;
- private UnitType m_Unit;
+ private ForgeTypeId m_Spec;
#endregion
}
diff --git a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaDataWrapper.cs b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaDataWrapper.cs
index 0de0800c..d0e2b23f 100644
--- a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaDataWrapper.cs
+++ b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaDataWrapper.cs
@@ -76,11 +76,11 @@ namespace SchemaWrapperTools
///
/// the name of the field
/// the data type of the field
- /// The unit type of the Field (set to UT_Undefined for non-floating point types
+ /// The unit type of the Field (set to UT_Undefined for non-floating point types
/// The SchemaWrapper of the field's subSchema, if the field is of type "Entity"
- public void AddData(string name, System.Type typeIn, UnitType unit, SchemaWrapper subSchema)
+ public void AddData(string name, System.Type typeIn, ForgeTypeId spec, SchemaWrapper subSchema)
{
- m_DataList.Add(new FieldData(name, typeIn.FullName, unit, subSchema));
+ m_DataList.Add(new FieldData(name, typeIn.FullName, spec, subSchema));
}
#endregion
diff --git a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapper.cs b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapper.cs
index fc8bd939..c0bfcc47 100644
--- a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapper.cs
+++ b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapper.cs
@@ -65,7 +65,7 @@ namespace SchemaWrapperTools
//then query the field data types from the field and instantiate a new generic method with those types as parameters.
//Get the "AddField" method.
- MethodInfo addFieldmethod = typeof(SchemaWrapper).GetMethod("AddField", new Type[] { typeof(string), typeof(UnitType), typeof(SchemaWrapper) });
+ MethodInfo addFieldmethod = typeof(SchemaWrapper).GetMethod("AddField", new Type[] { typeof(string), typeof(ForgeTypeId), typeof(SchemaWrapper) });
Type[] methodGenericParameters = null;
//Get the generic type parameters. The type will either be a single type, an IList<> of a single type, or an IDictionary<> of a key type and a value type.
@@ -87,7 +87,7 @@ namespace SchemaWrapperTools
swSub = SchemaWrapper.FromSchema(subSchema);
}
//Invoke the "AddField" method with the generic parameters from the current field.
- genericAddFieldMethodInstantiated.Invoke(swReturn, new object[] { currentField.FieldName, currentField.UnitType, swSub });
+ genericAddFieldMethodInstantiated.Invoke(swReturn, new object[] { currentField.FieldName, currentField.GetSpecTypeId(), swSub });
}
//Note that we don't call SchemaWrapper.FinishSchema here.
//The Autodesk.Revit.DB.ExtensibleStorage.Schema object already exists and is registered -- we're just populating the outer wrapper.
@@ -161,11 +161,11 @@ namespace SchemaWrapperTools
///
/// Currently supported types: int, short, float, double, bool, string, ElementId, XYZ, UV, Guid, Entity, IDictionary<>, IList<>. IDictionary<> does not support floating point types, XYZ, UV, or Entity as Key parameters.
/// The name of the field
- /// The unit type of the field. Defintion required for floating point, XYZ, and UV types
+ /// The unit type of the field. Defintion required for floating point, XYZ, and UV types
/// A subSchemaWrapper, if the field is of type Entity
- public void AddField(string name, UnitType unit, SchemaWrapper subSchema)
+ public void AddField(string name, ForgeTypeId spec, SchemaWrapper subSchema)
{
- m_SchemaDataWrapper.AddData(name, typeof(TypeName), unit, subSchema);
+ m_SchemaDataWrapper.AddData(name, typeof(TypeName), spec, subSchema);
}
///
@@ -254,8 +254,8 @@ namespace SchemaWrapperTools
currentFieldData.SubSchema.FinishSchema(); //Recursively create the schema for the subSchema.
}
- if (currentFieldData.Unit != UnitType.UT_Undefined)
- currentFieldBuilder.SetUnitType(currentFieldData.Unit);
+ if (!currentFieldData.Spec.Empty())
+ currentFieldBuilder.SetSpec(currentFieldData.Spec);
}
//Set all the top level data in the schema we are generating.
@@ -373,7 +373,7 @@ namespace SchemaWrapperTools
{
string fieldName = field.FieldName;
System.Type fieldType = field.ValueType;
- UnitType fieldUnit = field.UnitType;
+ ForgeTypeId fieldUnit = field.GetSpecTypeId();
ContainerType fieldContainerType = field.ContainerType;
Type[] methodGenericParameters = null;
object[] invokeParams = null;
@@ -385,15 +385,15 @@ namespace SchemaWrapperTools
else //map
methodGenericParameters = new Type[] { typeof(IDictionary).GetGenericTypeDefinition().MakeGenericType(new Type[] { field.KeyType, field.ValueType }) };
- if (fieldUnit == UnitType.UT_Undefined)
+ if (fieldUnit.Empty())
{
methodOverloadSelectionParams = new Type[] { typeof(Field) };
invokeParams = new object[] { field };
}
else
{
- methodOverloadSelectionParams = new Type[] { typeof(Field), typeof(DisplayUnitType) };
- invokeParams = new object[] { field, DisplayUnitType.DUT_METERS };
+ methodOverloadSelectionParams = new Type[] { typeof(Field), typeof(ForgeTypeId) };
+ invokeParams = new object[] { field, UnitTypeId.Meters };
}
MethodInfo instantiatedGenericGetMethod = entity.GetType().GetMethod("Get", methodOverloadSelectionParams).MakeGenericMethod(methodGenericParameters);
@@ -403,13 +403,13 @@ namespace SchemaWrapperTools
if (fieldType == typeof(Entity))
{
Schema subSchema = Schema.Lookup(field.SubSchemaGUID);
- strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {SubEntity} " + ", Unit: " + field.UnitType.ToString() + ", ContainerType: " + field.ContainerType.ToString());
+ strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {SubEntity} " + ", Unit: " + field.GetSpecTypeId().TypeId + ", ContainerType: " + field.ContainerType.ToString());
DumpAllSchemaEntityData(retval, subSchema, strBuilder);
}
else
{
string sRetval = retval.ToString();
- strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + retval + ", Unit: " + field.UnitType.ToString() + ", ContainerType: " + field.ContainerType.ToString());
+ strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + retval + ", Unit: " + field.GetSpecTypeId().TypeId + ", ContainerType: " + field.ContainerType.ToString());
}
}
else if (field.ContainerType == ContainerType.Array)
@@ -417,7 +417,7 @@ namespace SchemaWrapperTools
IList listRetval = (IList)instantiatedGenericGetMethod.Invoke(entity, invokeParams);
if (fieldType == (typeof(Entity)))
{
- strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {SubEntity} " + ", Unit: " + field.UnitType.ToString() + ", ContainerType: " + field.ContainerType.ToString());
+ strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {SubEntity} " + ", Unit: " + field.GetSpecTypeId().TypeId + ", ContainerType: " + field.ContainerType.ToString());
foreach (FieldType fa in listRetval)
{
@@ -427,7 +427,7 @@ namespace SchemaWrapperTools
}
else
{
- strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {Array} " + ", Unit: " + field.UnitType.ToString() + ", ContainerType: " + field.ContainerType.ToString());
+ strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {Array} " + ", Unit: " + field.GetSpecTypeId().TypeId + ", ContainerType: " + field.ContainerType.ToString());
foreach (FieldType fa in listRetval)
{
strBuilder.AppendLine(" Array value: " + fa.ToString());
@@ -436,11 +436,11 @@ namespace SchemaWrapperTools
}
else //Map
{
- strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {Map} " + ", Unit: " + field.UnitType.ToString() + ", ContainerType: " + field.ContainerType.ToString());
+ strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {Map} " + ", Unit: " + field.GetSpecTypeId().TypeId + ", ContainerType: " + field.ContainerType.ToString());
IDictionary mapRetval = (IDictionary)instantiatedGenericGetMethod.Invoke(entity, invokeParams);
if (fieldType == (typeof(Entity)))
{
- strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {SubEntity} " + ", Unit: " + field.UnitType.ToString() + ", ContainerType: " + field.ContainerType.ToString());
+ strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {SubEntity} " + ", Unit: " + field.GetSpecTypeId().TypeId + ", ContainerType: " + field.ContainerType.ToString());
foreach (FieldType fa in mapRetval.Values)
{
strBuilder.Append(" Map Value: ");
@@ -449,7 +449,7 @@ namespace SchemaWrapperTools
}
else
{
- strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {Map} " + ", Unit: " + field.UnitType.ToString() + ", ContainerType: " + field.ContainerType.ToString());
+ strBuilder.AppendLine("Field: " + field.FieldName + ", Type: " + field.ValueType.ToString() + ", Value: " + " {Map} " + ", Unit: " + field.GetSpecTypeId().TypeId + ", ContainerType: " + field.ContainerType.ToString());
foreach (FieldType fa in mapRetval.Values)
{
strBuilder.AppendLine(" Map value: " + fa.ToString());
diff --git a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapperTools.csproj b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapperTools.csproj
index 9041f4d0..c5601204 100644
--- a/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapperTools.csproj
+++ b/SDK/Samples/ExtensibleStorageManager/SchemaWrapperTools/CS/SchemaWrapperTools.csproj
@@ -10,7 +10,7 @@
Properties
SchemaWrapperTools
SchemaWrapperTools
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ExtensibleStorageUtility/CS/DeleteStorage.cs b/SDK/Samples/ExtensibleStorageUtility/CS/DeleteStorage.cs
index e664ed43..636c3344 100644
--- a/SDK/Samples/ExtensibleStorageUtility/CS/DeleteStorage.cs
+++ b/SDK/Samples/ExtensibleStorageUtility/CS/DeleteStorage.cs
@@ -54,7 +54,7 @@ namespace Revit.SDK.Samples.ExtensibleStorageUtility.CS
foreach (Schema schema in schemas)
{
//Note-this will delete storage of this schema in *all* open documents.
- Schema.EraseSchemaAndAllEntities(schema, true);
+ document.EraseSchemaAndAllEntities(schema);
}
tErase.Commit();
message = "All storage was deleted.";
diff --git a/SDK/Samples/ExtensibleStorageUtility/CS/ExtensibleStorageUtility.csproj b/SDK/Samples/ExtensibleStorageUtility/CS/ExtensibleStorageUtility.csproj
index 3b7c79b1..4430d105 100644
--- a/SDK/Samples/ExtensibleStorageUtility/CS/ExtensibleStorageUtility.csproj
+++ b/SDK/Samples/ExtensibleStorageUtility/CS/ExtensibleStorageUtility.csproj
@@ -10,7 +10,7 @@
Properties
ExtensibleStorageUtility
ExtensibleStorageUtility
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ExternalCommand/CS/ExternalCommandRegistration/ExternalCommandRegistration.csproj b/SDK/Samples/ExternalCommand/CS/ExternalCommandRegistration/ExternalCommandRegistration.csproj
index 14ea432d..186700e2 100644
--- a/SDK/Samples/ExternalCommand/CS/ExternalCommandRegistration/ExternalCommandRegistration.csproj
+++ b/SDK/Samples/ExternalCommand/CS/ExternalCommandRegistration/ExternalCommandRegistration.csproj
@@ -10,7 +10,7 @@
Properties
ExternalCommandRegistration
ExternalCommandRegistration
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ExternalCommand/CS/RevitAddInUtilitySample/RevitAddInUtilitySample.csproj b/SDK/Samples/ExternalCommand/CS/RevitAddInUtilitySample/RevitAddInUtilitySample.csproj
index a3c848b4..83186fe7 100644
--- a/SDK/Samples/ExternalCommand/CS/RevitAddInUtilitySample/RevitAddInUtilitySample.csproj
+++ b/SDK/Samples/ExternalCommand/CS/RevitAddInUtilitySample/RevitAddInUtilitySample.csproj
@@ -10,7 +10,7 @@
Properties
RevitAddInUtilitySample
RevitAddInUtilitySample
- v4.7
+ v4.8
512
publish\
true
diff --git a/SDK/Samples/ExternalResourceServer/ExternalResourceDBServer/CS/ExternalResourceDBServer.csproj b/SDK/Samples/ExternalResourceServer/ExternalResourceDBServer/CS/ExternalResourceDBServer.csproj
index c46899f3..06adc295 100644
--- a/SDK/Samples/ExternalResourceServer/ExternalResourceDBServer/CS/ExternalResourceDBServer.csproj
+++ b/SDK/Samples/ExternalResourceServer/ExternalResourceDBServer/CS/ExternalResourceDBServer.csproj
@@ -12,7 +12,7 @@
ExternalResourceDBServer
- v4.7
+ v4.8
diff --git a/SDK/Samples/ExternalResourceServer/ExternalResourceUIServer/CS/ExternalResourceUIServer.csproj b/SDK/Samples/ExternalResourceServer/ExternalResourceUIServer/CS/ExternalResourceUIServer.csproj
index dd7a84d4..fb97ed1b 100644
--- a/SDK/Samples/ExternalResourceServer/ExternalResourceUIServer/CS/ExternalResourceUIServer.csproj
+++ b/SDK/Samples/ExternalResourceServer/ExternalResourceUIServer/CS/ExternalResourceUIServer.csproj
@@ -12,7 +12,7 @@
ExternalResourceUIServer
- v4.7
+ v4.8
diff --git a/SDK/Samples/FabricationPartLayout/CS/FabricationPartLayout.csproj b/SDK/Samples/FabricationPartLayout/CS/FabricationPartLayout.csproj
index 0905c9d3..f69e497a 100644
--- a/SDK/Samples/FabricationPartLayout/CS/FabricationPartLayout.csproj
+++ b/SDK/Samples/FabricationPartLayout/CS/FabricationPartLayout.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
FabricationPartLayout
- v4.7
+ v4.8
@@ -109,4 +103,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/FabricationPartLayout/CS/PartInfo.cs b/SDK/Samples/FabricationPartLayout/CS/PartInfo.cs
index f0dccc87..8c94041d 100644
--- a/SDK/Samples/FabricationPartLayout/CS/PartInfo.cs
+++ b/SDK/Samples/FabricationPartLayout/CS/PartInfo.cs
@@ -139,7 +139,7 @@ namespace Revit.SDK.Samples.FabricationPartLayout.CS
builder.AppendLine("Specification: " + spec);
// centerline length
- builder.AppendLine("Centerline Length: " + GetStringFromNumber(doc, part.CenterlineLength, UnitType.UT_Length));
+ builder.AppendLine("Centerline Length: " + GetStringFromNumber(doc, part.CenterlineLength, SpecTypeId.Length));
TaskDialog.Show("Fabrication Part [" + part.Id.IntegerValue + "]", builder.ToString());
@@ -152,9 +152,9 @@ namespace Revit.SDK.Samples.FabricationPartLayout.CS
}
}
- private string GetStringFromNumber(Document doc, double number, UnitType unitType)
+ private string GetStringFromNumber(Document doc, double number, ForgeTypeId specTypeId)
{
- return UnitFormatUtils.Format(doc.GetUnits(), unitType, number, true, false);
+ return UnitFormatUtils.Format(doc.GetUnits(), specTypeId, number, false);
}
}
}
diff --git a/SDK/Samples/FamilyCreation/AutoJoin/CS/AutoJoin.csproj b/SDK/Samples/FamilyCreation/AutoJoin/CS/AutoJoin.csproj
index 2a60e40f..64ccb0c6 100644
--- a/SDK/Samples/FamilyCreation/AutoJoin/CS/AutoJoin.csproj
+++ b/SDK/Samples/FamilyCreation/AutoJoin/CS/AutoJoin.csproj
@@ -10,7 +10,7 @@
Properties
AutoJoin
AutoJoin
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/AutoParameter/CS/AutoParameter.csproj b/SDK/Samples/FamilyCreation/AutoParameter/CS/AutoParameter.csproj
index 121fbd0e..0c909f69 100644
--- a/SDK/Samples/FamilyCreation/AutoParameter/CS/AutoParameter.csproj
+++ b/SDK/Samples/FamilyCreation/AutoParameter/CS/AutoParameter.csproj
@@ -10,7 +10,7 @@
Properties
AutoParameter
AutoParameter
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/CreateAirHandler/CS/CreateAirHandler.csproj b/SDK/Samples/FamilyCreation/CreateAirHandler/CS/CreateAirHandler.csproj
index 2a955fe8..4820e38f 100644
--- a/SDK/Samples/FamilyCreation/CreateAirHandler/CS/CreateAirHandler.csproj
+++ b/SDK/Samples/FamilyCreation/CreateAirHandler/CS/CreateAirHandler.csproj
@@ -11,7 +11,7 @@
CreateAirHandler
CreateAirHandler
512
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/CreateTruss/CS/CreateTruss.csproj b/SDK/Samples/FamilyCreation/CreateTruss/CS/CreateTruss.csproj
index 570fd42f..de069667 100644
--- a/SDK/Samples/FamilyCreation/CreateTruss/CS/CreateTruss.csproj
+++ b/SDK/Samples/FamilyCreation/CreateTruss/CS/CreateTruss.csproj
@@ -34,7 +34,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/DWGFamilyCreation/CS/DWGFamilyCreation.csproj b/SDK/Samples/FamilyCreation/DWGFamilyCreation/CS/DWGFamilyCreation.csproj
index b116fb01..ae8d8028 100644
--- a/SDK/Samples/FamilyCreation/DWGFamilyCreation/CS/DWGFamilyCreation.csproj
+++ b/SDK/Samples/FamilyCreation/DWGFamilyCreation/CS/DWGFamilyCreation.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.ImportExport.CS
DWGFamilyCreation
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/GenericModelCreation/CS/GenericModelCreation.csproj b/SDK/Samples/FamilyCreation/GenericModelCreation/CS/GenericModelCreation.csproj
index 5a7c4d40..47bc98b8 100644
--- a/SDK/Samples/FamilyCreation/GenericModelCreation/CS/GenericModelCreation.csproj
+++ b/SDK/Samples/FamilyCreation/GenericModelCreation/CS/GenericModelCreation.csproj
@@ -30,7 +30,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/TypeRegeneration/CS/TypeRegeneration.csproj b/SDK/Samples/FamilyCreation/TypeRegeneration/CS/TypeRegeneration.csproj
index cfd11e3b..5bbbfad8 100644
--- a/SDK/Samples/FamilyCreation/TypeRegeneration/CS/TypeRegeneration.csproj
+++ b/SDK/Samples/FamilyCreation/TypeRegeneration/CS/TypeRegeneration.csproj
@@ -11,7 +11,7 @@
TypeRegeneration
TypeRegeneration
512
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/ValidateParameters/CS/ValidateParameters.csproj b/SDK/Samples/FamilyCreation/ValidateParameters/CS/ValidateParameters.csproj
index 0f7705e7..0a320563 100644
--- a/SDK/Samples/FamilyCreation/ValidateParameters/CS/ValidateParameters.csproj
+++ b/SDK/Samples/FamilyCreation/ValidateParameters/CS/ValidateParameters.csproj
@@ -11,7 +11,7 @@
ValidateParameters
ValidateParameters
512
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyCreation/WindowWizard/CS/WindowWizard.csproj b/SDK/Samples/FamilyCreation/WindowWizard/CS/WindowWizard.csproj
index 1463b018..8f69c221 100644
--- a/SDK/Samples/FamilyCreation/WindowWizard/CS/WindowWizard.csproj
+++ b/SDK/Samples/FamilyCreation/WindowWizard/CS/WindowWizard.csproj
@@ -13,7 +13,7 @@
512
- v4.7
+ v4.8
diff --git a/SDK/Samples/FamilyParametersOrder/CS/FamilyParametersOrder.csproj b/SDK/Samples/FamilyParametersOrder/CS/FamilyParametersOrder.csproj
index 5ecff71e..e46c5a92 100644
--- a/SDK/Samples/FamilyParametersOrder/CS/FamilyParametersOrder.csproj
+++ b/SDK/Samples/FamilyParametersOrder/CS/FamilyParametersOrder.csproj
@@ -12,7 +12,7 @@
FamilyParametersOrder
- v4.7
+ v4.8
diff --git a/SDK/Samples/FindReferencesByDirection/FindColumns/CS/FindColumns.csproj b/SDK/Samples/FindReferencesByDirection/FindColumns/CS/FindColumns.csproj
index db656dd9..a37c7dca 100644
--- a/SDK/Samples/FindReferencesByDirection/FindColumns/CS/FindColumns.csproj
+++ b/SDK/Samples/FindReferencesByDirection/FindColumns/CS/FindColumns.csproj
@@ -30,7 +30,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/FindReferencesByDirection/MeasureHeight/CS/MeasureHeight.csproj b/SDK/Samples/FindReferencesByDirection/MeasureHeight/CS/MeasureHeight.csproj
index d6a6c637..02658020 100644
--- a/SDK/Samples/FindReferencesByDirection/MeasureHeight/CS/MeasureHeight.csproj
+++ b/SDK/Samples/FindReferencesByDirection/MeasureHeight/CS/MeasureHeight.csproj
@@ -30,7 +30,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/FindReferencesByDirection/RaytraceBounce/CS/RayTraceBounce.csproj b/SDK/Samples/FindReferencesByDirection/RaytraceBounce/CS/RayTraceBounce.csproj
index cb26d03c..220f6487 100644
--- a/SDK/Samples/FindReferencesByDirection/RaytraceBounce/CS/RayTraceBounce.csproj
+++ b/SDK/Samples/FindReferencesByDirection/RaytraceBounce/CS/RayTraceBounce.csproj
@@ -30,7 +30,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/FireRating/VB.NET/FireRating.vbproj b/SDK/Samples/FireRating/VB.NET/FireRating.vbproj
index 769f22c9..7c8fe5cf 100644
--- a/SDK/Samples/FireRating/VB.NET/FireRating.vbproj
+++ b/SDK/Samples/FireRating/VB.NET/FireRating.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/FoundationSlab/CS/FoundationSlab.csproj b/SDK/Samples/FoundationSlab/CS/FoundationSlab.csproj
index 9d5c491c..2c3e3bde 100644
--- a/SDK/Samples/FoundationSlab/CS/FoundationSlab.csproj
+++ b/SDK/Samples/FoundationSlab/CS/FoundationSlab.csproj
@@ -11,7 +11,7 @@
Revit.SDK.Samples.FoundationSlab.CS
FoundationSlab
false
- v4.7
+ v4.8
diff --git a/SDK/Samples/FrameBuilder/CS/FrameBuilder.csproj b/SDK/Samples/FrameBuilder/CS/FrameBuilder.csproj
index 39eb7341..23264959 100644
--- a/SDK/Samples/FrameBuilder/CS/FrameBuilder.csproj
+++ b/SDK/Samples/FrameBuilder/CS/FrameBuilder.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/FreeFormElement/CS/FreeFormElement.csproj b/SDK/Samples/FreeFormElement/CS/FreeFormElement.csproj
index d18ceea9..aa8a8b5c 100644
--- a/SDK/Samples/FreeFormElement/CS/FreeFormElement.csproj
+++ b/SDK/Samples/FreeFormElement/CS/FreeFormElement.csproj
@@ -12,7 +12,7 @@
FreeFormElement
- v4.7
+ v4.8
diff --git a/SDK/Samples/GenerateFloor/CS/GenerateFloor.csproj b/SDK/Samples/GenerateFloor/CS/GenerateFloor.csproj
index 55f7bcd5..f40dc6d0 100644
--- a/SDK/Samples/GenerateFloor/CS/GenerateFloor.csproj
+++ b/SDK/Samples/GenerateFloor/CS/GenerateFloor.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnection.csproj b/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnection.csproj
index b69b87f4..d12ed815 100644
--- a/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnection.csproj
+++ b/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnection.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
GenericStructuralConnection
- v4.7
+ v4.8
@@ -108,4 +102,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnectionOps.cs b/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnectionOps.cs
index 2380a06c..1eccb98a 100644
--- a/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnectionOps.cs
+++ b/SDK/Samples/GenericStructuralConnection/CS/GenericStructuralConnectionOps.cs
@@ -58,8 +58,8 @@ namespace Revit.SDK.Samples.GenericStructuralConnection.CS
{
tran.Start();
- StructuralConnectionHandler conn = StructuralConnectionHandler.Create(activeDoc.Document, ids);
-
+ StructuralConnectionHandler conn = StructuralConnectionHandler.CreateGenericConnection(activeDoc.Document, ids);
+
TransactionStatus ts = tran.Commit();
if (ts != TransactionStatus.Committed)
{
diff --git a/SDK/Samples/GeometryAPI/BRepBuilderExample/CS/BRepBuilderExample.csproj b/SDK/Samples/GeometryAPI/BRepBuilderExample/CS/BRepBuilderExample.csproj
index dd4ee38a..954a0c84 100644
--- a/SDK/Samples/GeometryAPI/BRepBuilderExample/CS/BRepBuilderExample.csproj
+++ b/SDK/Samples/GeometryAPI/BRepBuilderExample/CS/BRepBuilderExample.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
BRepBuilderExample
- v4.7
+ v4.8
@@ -99,4 +93,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/GeometryAPI/EnergyAnalysisModel/CS/EnergyAnalysisModel.csproj b/SDK/Samples/GeometryAPI/EnergyAnalysisModel/CS/EnergyAnalysisModel.csproj
index 0d9123a5..640f4574 100644
--- a/SDK/Samples/GeometryAPI/EnergyAnalysisModel/CS/EnergyAnalysisModel.csproj
+++ b/SDK/Samples/GeometryAPI/EnergyAnalysisModel/CS/EnergyAnalysisModel.csproj
@@ -10,7 +10,7 @@
Properties
EnergyAnalysisModel
EnergyAnalysisModel
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/GeometryAPI/GeometryCreation_BooleanOperation/CS/GeometryCreation_BooleanOperation.csproj b/SDK/Samples/GeometryAPI/GeometryCreation_BooleanOperation/CS/GeometryCreation_BooleanOperation.csproj
index a708f41b..99a7d4d1 100644
--- a/SDK/Samples/GeometryAPI/GeometryCreation_BooleanOperation/CS/GeometryCreation_BooleanOperation.csproj
+++ b/SDK/Samples/GeometryAPI/GeometryCreation_BooleanOperation/CS/GeometryCreation_BooleanOperation.csproj
@@ -12,7 +12,7 @@
GeometryCreation_BooleanOperation
- v4.7
+ v4.8
diff --git a/SDK/Samples/GeometryAPI/ProximityDetection_WallJoinControl/CS/ProximityDetection_WallJoinControl.csproj b/SDK/Samples/GeometryAPI/ProximityDetection_WallJoinControl/CS/ProximityDetection_WallJoinControl.csproj
index c4b92160..04bf60be 100644
--- a/SDK/Samples/GeometryAPI/ProximityDetection_WallJoinControl/CS/ProximityDetection_WallJoinControl.csproj
+++ b/SDK/Samples/GeometryAPI/ProximityDetection_WallJoinControl/CS/ProximityDetection_WallJoinControl.csproj
@@ -12,7 +12,7 @@
ProximityDetection_WallJoinControl
- v4.7
+ v4.8
@@ -44,8 +44,7 @@
prompt
4
false
-
-
+ bin\Debug\ProximityDetection_WallJoinControl.xml
ProximityDetection_WallJoinControl.ruleset
diff --git a/SDK/Samples/GeometryAPI/SlaveSymbolGeometry/CS/SlaveSymbolGeometry.csproj b/SDK/Samples/GeometryAPI/SlaveSymbolGeometry/CS/SlaveSymbolGeometry.csproj
index c3090099..251e3fc7 100644
--- a/SDK/Samples/GeometryAPI/SlaveSymbolGeometry/CS/SlaveSymbolGeometry.csproj
+++ b/SDK/Samples/GeometryAPI/SlaveSymbolGeometry/CS/SlaveSymbolGeometry.csproj
@@ -10,7 +10,7 @@
Properties
SlaveSymbolGeometry
SlaveSymbolGeometry
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/GetSetDefaultTypes/CS/GetSetDefaultTypes.csproj b/SDK/Samples/GetSetDefaultTypes/CS/GetSetDefaultTypes.csproj
index 97d80908..9fd29fbe 100644
--- a/SDK/Samples/GetSetDefaultTypes/CS/GetSetDefaultTypes.csproj
+++ b/SDK/Samples/GetSetDefaultTypes/CS/GetSetDefaultTypes.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.GetSetDefaultTypes.CS
GetSetDefaultTypes
- v4.7
+ v4.8
diff --git a/SDK/Samples/GridCreation/CS/Command.cs b/SDK/Samples/GridCreation/CS/Command.cs
index 0831a895..84f12ba4 100644
--- a/SDK/Samples/GridCreation/CS/Command.cs
+++ b/SDK/Samples/GridCreation/CS/Command.cs
@@ -78,7 +78,7 @@ namespace Revit.SDK.Samples.GridCreation.CS
}
ArrayList labels = GetAllLabelsOfGrids(document);
- DisplayUnitType dut = GetLengthUnitType(document);
+ ForgeTypeId unit = GetLengthUnitType(document);
switch (gridCreationOption.CreateGridsMode)
{
case CreateMode.Select: // Create grids with selected lines/arcs
@@ -98,7 +98,7 @@ namespace Revit.SDK.Samples.GridCreation.CS
break;
case CreateMode.Orthogonal: // Create orthogonal grids
- CreateOrthogonalGridsData orthogonalData = new CreateOrthogonalGridsData(commandData.Application, dut, labels);
+ CreateOrthogonalGridsData orthogonalData = new CreateOrthogonalGridsData(commandData.Application, unit, labels);
using (CreateOrthogonalGridsForm orthogonalGridForm = new CreateOrthogonalGridsForm(orthogonalData))
{
result = orthogonalGridForm.ShowDialog();
@@ -114,7 +114,7 @@ namespace Revit.SDK.Samples.GridCreation.CS
break;
case CreateMode.RadialAndArc: // Create radial and arc grids
- CreateRadialAndArcGridsData radArcData = new CreateRadialAndArcGridsData(commandData.Application, dut, labels);
+ CreateRadialAndArcGridsData radArcData = new CreateRadialAndArcGridsData(commandData.Application, unit, labels);
using (CreateRadialAndArcGridsForm radArcForm = new CreateRadialAndArcGridsForm(radArcData))
{
result = radArcForm.ShowDialog();
@@ -216,18 +216,18 @@ namespace Revit.SDK.Samples.GridCreation.CS
///
/// Revit's document
/// Current length display unit type
- private static DisplayUnitType GetLengthUnitType(Document document)
+ private static ForgeTypeId GetLengthUnitType(Document document)
{
- UnitType unittype = UnitType.UT_Length;
+ ForgeTypeId specTypeId = SpecTypeId.Length;
Units projectUnit = document.GetUnits();
try
{
- Autodesk.Revit.DB.FormatOptions formatOption = projectUnit.GetFormatOptions(unittype);
- return formatOption.DisplayUnits;
+ Autodesk.Revit.DB.FormatOptions formatOption = projectUnit.GetFormatOptions(specTypeId);
+ return formatOption.GetUnitTypeId();
}
catch (System.Exception /*e*/)
{
- return DisplayUnitType.DUT_DECIMAL_FEET;
+ return UnitTypeId.Feet;
}
}
diff --git a/SDK/Samples/GridCreation/CS/CreateGridsData.cs b/SDK/Samples/GridCreation/CS/CreateGridsData.cs
index 47848477..fb762240 100644
--- a/SDK/Samples/GridCreation/CS/CreateGridsData.cs
+++ b/SDK/Samples/GridCreation/CS/CreateGridsData.cs
@@ -58,7 +58,7 @@ namespace Revit.SDK.Samples.GridCreation.CS
///
/// Current display unit type
///
- protected DisplayUnitType m_dut;
+ protected ForgeTypeId m_unit;
///
/// Resource manager
///
@@ -69,11 +69,11 @@ namespace Revit.SDK.Samples.GridCreation.CS
///
/// Current display unit type
///
- public DisplayUnitType Dut
+ public ForgeTypeId Unit
{
get
{
- return m_dut;
+ return m_unit;
}
}
@@ -108,14 +108,14 @@ namespace Revit.SDK.Samples.GridCreation.CS
///
/// Revit application
/// All existing labels in Revit's document
- /// Current length display unit type
- public CreateGridsData(UIApplication application, ArrayList labels, DisplayUnitType dut)
+ /// Current length display unit type
+ public CreateGridsData(UIApplication application, ArrayList labels, ForgeTypeId unit)
{
m_revitDoc = application.ActiveUIDocument.Document;
m_appCreator = application.Application.Create;
m_docCreator = application.ActiveUIDocument.Document.Create;
m_labelsList = labels;
- m_dut = dut;
+ m_unit = unit;
}
///
diff --git a/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsData.cs b/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsData.cs
index 1cc3f864..b503443d 100644
--- a/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsData.cs
+++ b/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsData.cs
@@ -218,10 +218,10 @@ namespace Revit.SDK.Samples.GridCreation.CS
/// Constructor
///
/// Application object
- /// Current length display unit type
+ /// Current length display unit type
/// All existing labels in Revit's document
- public CreateOrthogonalGridsData(UIApplication application, DisplayUnitType dut, ArrayList labels)
- : base(application, labels, dut)
+ public CreateOrthogonalGridsData(UIApplication application, ForgeTypeId unit, ArrayList labels)
+ : base(application, labels, unit)
{
}
diff --git a/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsForm.cs b/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsForm.cs
index 53e3dfd6..67685832 100644
--- a/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsForm.cs
+++ b/SDK/Samples/GridCreation/CS/CreateOrthogonalGridsForm.cs
@@ -57,7 +57,7 @@ namespace Revit.SDK.Samples.GridCreation.CS
private void InitializeControls()
{
// Set length unit related labels
- String unit = Properties.Resources.ResourceManager.GetString(m_data.Dut.ToString());
+ String unit = Properties.Resources.ResourceManager.GetString(m_data.Unit.TypeId);
labelUnitX.Text = unit;
labelUnitY.Text = unit;
labelXCoordUnit.Text = unit;
@@ -65,7 +65,7 @@ namespace Revit.SDK.Samples.GridCreation.CS
// Set spacing values
- textBoxXSpacing.Text = Unit.CovertFromAPI(m_data.Dut, 10).ToString();
+ textBoxXSpacing.Text = Unit.CovertFromAPI(m_data.Unit, 10).ToString();
textBoxYSpacing.Text = textBoxXSpacing.Text;
// Set bubble locations to end point
@@ -92,21 +92,21 @@ namespace Revit.SDK.Samples.GridCreation.CS
///
private void SetData()
{
- m_data.XOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxXCoord.Text), m_data.Dut);
- m_data.YOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxYCoord.Text), m_data.Dut);
+ m_data.XOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxXCoord.Text), m_data.Unit);
+ m_data.YOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxYCoord.Text), m_data.Unit);
m_data.XNumber = Convert.ToUInt32(textBoxXNumber.Text);
m_data.YNumber = Convert.ToUInt32(textBoxYNumber.Text);
if (Convert.ToUInt32(textBoxXNumber.Text) != 0)
{
- m_data.XSpacing = Unit.CovertToAPI(Convert.ToDouble(textBoxXSpacing.Text), m_data.Dut);
+ m_data.XSpacing = Unit.CovertToAPI(Convert.ToDouble(textBoxXSpacing.Text), m_data.Unit);
m_data.XBubbleLoc = (BubbleLocation)comboBoxXBubbleLocation.SelectedIndex;
m_data.XFirstLabel = textBoxXFirstLabel.Text;
}
if (Convert.ToUInt32(textBoxYNumber.Text) != 0)
{
- m_data.YSpacing = Unit.CovertToAPI(Convert.ToDouble(textBoxYSpacing.Text), m_data.Dut);
+ m_data.YSpacing = Unit.CovertToAPI(Convert.ToDouble(textBoxYSpacing.Text), m_data.Unit);
m_data.YBubbleLoc = (BubbleLocation)comboBoxYBubbleLocation.SelectedIndex;
m_data.YFirstLabel = textBoxYFirstLabel.Text;
}
diff --git a/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsData.cs b/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsData.cs
index cc7bf47c..400bc138 100644
--- a/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsData.cs
+++ b/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsData.cs
@@ -269,10 +269,10 @@ namespace Revit.SDK.Samples.GridCreation.CS
/// Constructor
///
/// Application object
- /// Current length display unit type
+ /// Current length display unit type
/// All existing labels in Revit's document
- public CreateRadialAndArcGridsData(UIApplication application, DisplayUnitType dut, ArrayList labels)
- : base(application, labels)
+ public CreateRadialAndArcGridsData(UIApplication application, ForgeTypeId unit, ArrayList labels)
+ : base(application, labels, unit)
{
}
diff --git a/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsForm.cs b/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsForm.cs
index 62cf0ffe..6fd6946a 100644
--- a/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsForm.cs
+++ b/SDK/Samples/GridCreation/CS/CreateRadialAndArcGridsForm.cs
@@ -54,7 +54,7 @@ namespace Revit.SDK.Samples.GridCreation.CS
private void InitializeControls()
{
// Set length unit related labels
- String unit = Properties.Resources.ResourceManager.GetString(m_data.Dut.ToString());
+ String unit = Properties.Resources.ResourceManager.GetString(m_data.Unit.TypeId);
labelUnitX.Text = unit;
labelUnitY.Text = unit;
labelUnitFirstRadius.Text = unit;
@@ -62,9 +62,9 @@ namespace Revit.SDK.Samples.GridCreation.CS
labelYCoordUnit.Text = unit;
// Set length values
- textBoxArcSpacing.Text = Unit.CovertFromAPI(m_data.Dut, 10).ToString();
+ textBoxArcSpacing.Text = Unit.CovertFromAPI(m_data.Unit, 10).ToString();
textBoxArcFirstRadius.Text = textBoxArcSpacing.Text;
- textBoxLineFirstDistance.Text = Unit.CovertFromAPI(m_data.Dut, 8).ToString();
+ textBoxLineFirstDistance.Text = Unit.CovertFromAPI(m_data.Unit, 8).ToString();
radioButton360.Checked = true;
radioButtonCustomize.Checked = false;
@@ -109,8 +109,8 @@ namespace Revit.SDK.Samples.GridCreation.CS
///
private void SetData()
{
- m_data.XOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxXCoord.Text), m_data.Dut);
- m_data.YOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxYCoord.Text), m_data.Dut);
+ m_data.XOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxXCoord.Text), m_data.Unit);
+ m_data.YOrigin = Unit.CovertToAPI(Convert.ToDouble(textBoxYCoord.Text), m_data.Unit);
if (radioButton360.Checked)
{
@@ -129,15 +129,15 @@ namespace Revit.SDK.Samples.GridCreation.CS
if (Convert.ToUInt32(textBoxArcNumber.Text) != 0)
{
- m_data.ArcSpacing = Unit.CovertToAPI(Convert.ToDouble(textBoxArcSpacing.Text), m_data.Dut);
- m_data.ArcFirstRadius = Unit.CovertToAPI(Convert.ToDouble(textBoxArcFirstRadius.Text), m_data.Dut);
+ m_data.ArcSpacing = Unit.CovertToAPI(Convert.ToDouble(textBoxArcSpacing.Text), m_data.Unit);
+ m_data.ArcFirstRadius = Unit.CovertToAPI(Convert.ToDouble(textBoxArcFirstRadius.Text), m_data.Unit);
m_data.ArcFirstBubbleLoc = (BubbleLocation)comboBoxArcBubbleLocation.SelectedIndex;
m_data.ArcFirstLabel = textBoxArcFirstLabel.Text;
}
if (Convert.ToUInt32(textBoxLineNumber.Text) != 0)
{
- m_data.LineFirstDistance = Unit.CovertToAPI(Convert.ToDouble(textBoxLineFirstDistance.Text), m_data.Dut);
+ m_data.LineFirstDistance = Unit.CovertToAPI(Convert.ToDouble(textBoxLineFirstDistance.Text), m_data.Unit);
m_data.LineFirstBubbleLoc = (BubbleLocation)comboBoxLineBubbleLocation.SelectedIndex;
m_data.LineFirstLabel = textBoxLineFirstLabel.Text;
}
diff --git a/SDK/Samples/GridCreation/CS/GridCreation.csproj b/SDK/Samples/GridCreation/CS/GridCreation.csproj
index 08824308..9438adf6 100644
--- a/SDK/Samples/GridCreation/CS/GridCreation.csproj
+++ b/SDK/Samples/GridCreation/CS/GridCreation.csproj
@@ -12,7 +12,7 @@
GridCreation
- v4.7
+ v4.8
diff --git a/SDK/Samples/GridCreation/CS/Unit.cs b/SDK/Samples/GridCreation/CS/Unit.cs
index 2e2b09bc..ff40cf25 100644
--- a/SDK/Samples/GridCreation/CS/Unit.cs
+++ b/SDK/Samples/GridCreation/CS/Unit.cs
@@ -39,46 +39,43 @@ namespace Revit.SDK.Samples.GridCreation.CS
{
#region Methods
///
- /// Convert the value get from RevitAPI to the value indicated by DisplayUnitType
+ /// Convert the value get from RevitAPI to the value indicated by ForgeTypeId
///
- /// DisplayUnitType indicates unit of target value
+ /// ForgeTypeId indicates unit of target value
/// value get from RevitAPI
/// Target value
- public static double CovertFromAPI(DisplayUnitType to, double value)
+ public static double CovertFromAPI(ForgeTypeId to, double value)
{
return value *= ImperialDutRatio(to);
}
///
- /// Convert a value indicated by DisplayUnitType to the value used by RevitAPI
+ /// Convert a value indicated by ForgeTypeId to the value used by RevitAPI
///
/// Value to be converted
- /// DisplayUnitType indicates the unit of the value to be converted
+ /// ForgeTypeId indicates the unit of the value to be converted
/// Target value
- public static double CovertToAPI(double value, DisplayUnitType from )
+ public static double CovertToAPI(double value, ForgeTypeId from )
{
return value /= ImperialDutRatio(from);
}
///
- /// Get ratio between value in RevitAPI and value to display indicated by DisplayUnitType
+ /// Get ratio between value in RevitAPI and value to display indicated by ForgeTypeId
///
- /// DisplayUnitType indicates display unit type
+ /// ForgeTypeId indicates display unit type
/// Ratio
- private static double ImperialDutRatio(DisplayUnitType dut)
+ private static double ImperialDutRatio(ForgeTypeId unit)
{
- switch (dut)
- {
- case DisplayUnitType.DUT_DECIMAL_FEET: return 1;
- case DisplayUnitType.DUT_FEET_FRACTIONAL_INCHES: return 1;
- case DisplayUnitType.DUT_DECIMAL_INCHES: return 12;
- case DisplayUnitType.DUT_FRACTIONAL_INCHES: return 12;
- case DisplayUnitType.DUT_METERS: return 0.3048;
- case DisplayUnitType.DUT_CENTIMETERS: return 30.48;
- case DisplayUnitType.DUT_MILLIMETERS: return 304.8;
- case DisplayUnitType.DUT_METERS_CENTIMETERS: return 0.3048;
- default: return 1;
- }
+ if (unit == UnitTypeId.Feet) return 1;
+ if (unit == UnitTypeId.FeetFractionalInches) return 1;
+ if (unit == UnitTypeId.Inches) return 12;
+ if (unit == UnitTypeId.FractionalInches) return 12;
+ if (unit == UnitTypeId.Meters) return 0.3048;
+ if (unit == UnitTypeId.Centimeters) return 30.48;
+ if (unit == UnitTypeId.Millimeters) return 304.8;
+ if (unit == UnitTypeId.MetersCentimeters) return 0.3048;
+ return 1;
}
#endregion
}
diff --git a/SDK/Samples/HelloRevit/CS/HelloRevit.csproj b/SDK/Samples/HelloRevit/CS/HelloRevit.csproj
index 1faa034d..a287d642 100644
--- a/SDK/Samples/HelloRevit/CS/HelloRevit.csproj
+++ b/SDK/Samples/HelloRevit/CS/HelloRevit.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.HelloWorld.CS
HelloRevit
- v4.7
+ v4.8
diff --git a/SDK/Samples/HelloRevit/VB.NET/HelloRevit.vbproj b/SDK/Samples/HelloRevit/VB.NET/HelloRevit.vbproj
index e2f27e6c..9febee9e 100644
--- a/SDK/Samples/HelloRevit/VB.NET/HelloRevit.vbproj
+++ b/SDK/Samples/HelloRevit/VB.NET/HelloRevit.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/ImportExport/CS/Import/ImportImageData.cs b/SDK/Samples/ImportExport/CS/Import/ImportImageData.cs
index 68ebd0ea..50809ee8 100644
--- a/SDK/Samples/ImportExport/CS/Import/ImportImageData.cs
+++ b/SDK/Samples/ImportExport/CS/Import/ImportImageData.cs
@@ -64,13 +64,18 @@ namespace Revit.SDK.Samples.ImportExport.CS
t.Start();
// Step 1: Create an ImageType
- //ImageTypeOptions specify the source of the image
- // If the source is a PDF file then ImageTypeOptions can be used to:
- // - Select a specific page from the PDF
- // - Select a Resolution (in dots-per-inch) at which to rasterize the PDF
- // For other image types the page number should be 1, and the resolution is only used to determine the size of the image
+ //ImageTypeOptions specifies the source of the image, and how to create the ImageType.
+ // It can be used to specify:
+ // - The image file. Either as a local file path, or as an ExternalResourceRef
+ // - Whether to store the local file path as an absolute path or a relative path.
+ // - Whether to create an Import or a Link image.
+ // In addition, if the source is a PDF file, then ImageTypeOptions can be used to specify:
+ // - which page from the PDF to use
+ // - the resolution (in dots-per-inch) at which to rasterize the PDF
+ // For other image types the page number should be 1 (the default),
+ // and the resolution is only used to determine the size of the image.
- ImageTypeOptions typeOptions = new ImageTypeOptions(m_importFileFullName);
+ ImageTypeOptions typeOptions = new ImageTypeOptions(m_importFileFullName, true, ImageTypeSource.Import);
ImageType imageType = ImageType.Create(m_activeDoc, typeOptions);
// Step 2: Create an ImageInstance, but only if the active view is able to contain images.
diff --git a/SDK/Samples/ImportExport/CS/ImportExport.csproj b/SDK/Samples/ImportExport/CS/ImportExport.csproj
index d405d133..ee300e58 100644
--- a/SDK/Samples/ImportExport/CS/ImportExport.csproj
+++ b/SDK/Samples/ImportExport/CS/ImportExport.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.ImportExport.CS
ImportExport
- v4.7
+ v4.8
diff --git a/SDK/Samples/ImportExport/CS/Unit.cs b/SDK/Samples/ImportExport/CS/Unit.cs
index d4b5bd57..a669126b 100644
--- a/SDK/Samples/ImportExport/CS/Unit.cs
+++ b/SDK/Samples/ImportExport/CS/Unit.cs
@@ -37,46 +37,43 @@ namespace Revit.SDK.Samples.ImportExport.CS
{
#region Methods
///
- /// Convert the value get from RevitAPI to the value indicated by DisplayUnitType
+ /// Convert the value get from RevitAPI to the value indicated by ForgeTypeId
///
- /// DisplayUnitType indicates unit of target value
+ /// ForgeTypeId indicates unit of target value
/// value get from RevitAPI
/// Target value
- public static double CovertFromAPI(DisplayUnitType to, double value)
+ public static double CovertFromAPI(ForgeTypeId to, double value)
{
return value *= ImperialDutRatio(to);
}
///
- /// Convert a value indicated by DisplayUnitType to the value used by RevitAPI
+ /// Convert a value indicated by ForgeTypeId to the value used by RevitAPI
///
/// Value to be converted
- /// DisplayUnitType indicates the unit of the value to be converted
+ /// ForgeTypeId indicates the unit of the value to be converted
/// Target value
- public static double CovertToAPI(double value, DisplayUnitType from )
+ public static double CovertToAPI(double value, ForgeTypeId from )
{
return value /= ImperialDutRatio(from);
}
///
- /// Get ratio between value in RevitAPI and value to display indicated by DisplayUnitType
+ /// Get ratio between value in RevitAPI and value to display indicated by ForgeTypeId
///
- /// DisplayUnitType indicates display unit type
+ /// ForgeTypeId indicates display unit type
/// Ratio
- private static double ImperialDutRatio(DisplayUnitType dut)
+ private static double ImperialDutRatio(ForgeTypeId unit)
{
- switch (dut)
- {
- case DisplayUnitType.DUT_DECIMAL_FEET: return 1;
- case DisplayUnitType.DUT_FEET_FRACTIONAL_INCHES: return 1;
- case DisplayUnitType.DUT_DECIMAL_INCHES: return 12;
- case DisplayUnitType.DUT_FRACTIONAL_INCHES: return 12;
- case DisplayUnitType.DUT_METERS: return 0.3048;
- case DisplayUnitType.DUT_CENTIMETERS: return 30.48;
- case DisplayUnitType.DUT_MILLIMETERS: return 304.8;
- case DisplayUnitType.DUT_METERS_CENTIMETERS: return 0.3048;
- default: return 1;
- }
+ if (unit == UnitTypeId.Feet) return 1;
+ if (unit == UnitTypeId.FeetFractionalInches) return 1;
+ if (unit == UnitTypeId.Inches) return 12;
+ if (unit == UnitTypeId.FractionalInches) return 12;
+ if (unit == UnitTypeId.Meters) return 0.3048;
+ if (unit == UnitTypeId.Centimeters) return 30.48;
+ if (unit == UnitTypeId.Millimeters) return 304.8;
+ if (unit == UnitTypeId.MetersCentimeters) return 0.3048;
+ return 1;
}
#endregion
}
diff --git a/SDK/Samples/InPlaceMembers/CS/InPlaceMembers.csproj b/SDK/Samples/InPlaceMembers/CS/InPlaceMembers.csproj
index e841eb5e..b82c9aa9 100644
--- a/SDK/Samples/InPlaceMembers/CS/InPlaceMembers.csproj
+++ b/SDK/Samples/InPlaceMembers/CS/InPlaceMembers.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/InvisibleParam/CS/InvisibleParam.csproj b/SDK/Samples/InvisibleParam/CS/InvisibleParam.csproj
index 6e5d370e..4cbed5ce 100644
--- a/SDK/Samples/InvisibleParam/CS/InvisibleParam.csproj
+++ b/SDK/Samples/InvisibleParam/CS/InvisibleParam.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.InvisibleParam.CS
InvisibleParam
- v4.7
+ v4.8
diff --git a/SDK/Samples/Journaling/CS/Journaling.csproj b/SDK/Samples/Journaling/CS/Journaling.csproj
index 4f8857a3..d0406b79 100644
--- a/SDK/Samples/Journaling/CS/Journaling.csproj
+++ b/SDK/Samples/Journaling/CS/Journaling.csproj
@@ -10,7 +10,7 @@
Properties
Journaling
Journaling
- v4.7
+ v4.8
diff --git a/SDK/Samples/LevelsProperty/CS/Command.cs b/SDK/Samples/LevelsProperty/CS/Command.cs
index def79747..ef3202f7 100644
--- a/SDK/Samples/LevelsProperty/CS/Command.cs
+++ b/SDK/Samples/LevelsProperty/CS/Command.cs
@@ -60,7 +60,7 @@ namespace Revit.SDK.Samples.LevelsProperty.CS
public Autodesk.Revit.UI.Result Execute(ExternalCommandData revit, ref String message, Autodesk.Revit.DB.ElementSet elements)
{
m_revit = revit;
- UnitType = m_revit.Application.ActiveUIDocument.Document.GetUnits().GetFormatOptions(Autodesk.Revit.DB.UnitType.UT_Length).DisplayUnits;
+ UnitTypeId = m_revit.Application.ActiveUIDocument.Document.GetUnits().GetFormatOptions(Autodesk.Revit.DB.SpecTypeId.Length).GetUnitTypeId();
Transaction documentTransaction = new Transaction(revit.Application.ActiveUIDocument.Document, "Document");
documentTransaction.Start();
try
@@ -79,7 +79,7 @@ namespace Revit.SDK.Samples.LevelsProperty.CS
Parameter elevationPara = systemLevel.get_Parameter(BuiltInParameter.LEVEL_ELEV);
- double temValue = Unit.CovertFromAPI(UnitType, elevationPara.AsDouble());
+ double temValue = Unit.CovertFromAPI(UnitTypeId, elevationPara.AsDouble());
double temValue2 = double.Parse(temValue.ToString("#.0"));
levelsDataSourceRow.Elevation = temValue2;
@@ -103,7 +103,7 @@ namespace Revit.SDK.Samples.LevelsProperty.CS
}
ExternalCommandData m_revit;
- public Autodesk.Revit.DB.DisplayUnitType UnitType;
+ public Autodesk.Revit.DB.ForgeTypeId UnitTypeId;
System.Collections.Generic.List systemLevelsDatum;
///
/// Store all levels' datum in system
diff --git a/SDK/Samples/LevelsProperty/CS/LevelsForm.cs b/SDK/Samples/LevelsProperty/CS/LevelsForm.cs
index 81bef50f..f3c79ee8 100644
--- a/SDK/Samples/LevelsProperty/CS/LevelsForm.cs
+++ b/SDK/Samples/LevelsProperty/CS/LevelsForm.cs
@@ -115,7 +115,7 @@ namespace Revit.SDK.Samples.LevelsProperty.CS
System.String lastLevelName = lastItem.Name;
double lastLevelElevation = lastItem.Elevation;
newLevelName = lastLevelName + "'";
- newLevelElevation = lastLevelElevation + Unit.CovertFromAPI(m_objectReference.UnitType, 10);
+ newLevelElevation = lastLevelElevation + Unit.CovertFromAPI(m_objectReference.UnitTypeId, 10);
}
else
diff --git a/SDK/Samples/LevelsProperty/CS/LevelsProperty.csproj b/SDK/Samples/LevelsProperty/CS/LevelsProperty.csproj
index 96d2add9..fcfe8cc8 100644
--- a/SDK/Samples/LevelsProperty/CS/LevelsProperty.csproj
+++ b/SDK/Samples/LevelsProperty/CS/LevelsProperty.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/LevelsProperty/CS/Unit.cs b/SDK/Samples/LevelsProperty/CS/Unit.cs
index 92977936..05b7dc1e 100644
--- a/SDK/Samples/LevelsProperty/CS/Unit.cs
+++ b/SDK/Samples/LevelsProperty/CS/Unit.cs
@@ -36,208 +36,25 @@ namespace Revit.SDK.Samples.LevelsProperty.CS
{
#region Methods
///
- /// Convert the value get from RevitAPI to the value indicated by DisplayUnitType
+ /// Convert the value get from RevitAPI to the value indicated by ForgeTypeId
///
- /// DisplayUnitType indicates unit of target value
+ /// ForgeTypeId indicates unit of target value
/// value get from RevitAPI
/// Target value
- public static double CovertFromAPI(DisplayUnitType to, double value)
+ public static double CovertFromAPI(ForgeTypeId to, double value)
{
- switch (to)
- {
- case DisplayUnitType.DUT_FAHRENHEIT:
- return value * ImperialDutRatio(to) - 459.67;
- case DisplayUnitType.DUT_CELSIUS:
- return value - 273.15;
- default:
- return value *= ImperialDutRatio(to);
- }
+ return UnitUtils.ConvertFromInternalUnits(value, to);
}
///
- /// Convert a value indicated by DisplayUnitType to the value used by RevitAPI
+ /// Convert a value indicated by ForgeTypeId to the value used by RevitAPI
///
/// Value to be converted
- /// DisplayUnitType indicates the unit of the value to be converted
+ /// ForgeTypeId indicates the unit of the value to be converted
/// Target value
- public static double CovertToAPI(double value, DisplayUnitType from)
+ public static double CovertToAPI(double value, ForgeTypeId from)
{
- switch (from)
- {
- case DisplayUnitType.DUT_FAHRENHEIT:
- return (value + 459.67) / ImperialDutRatio(from);
- case DisplayUnitType.DUT_CELSIUS:
- return value + 273.15;
- default:
- return value /= ImperialDutRatio(from);
- }
- }
-
- ///
- /// Get ratio between value in RevitAPI and value to display indicated by DisplayUnitType
- ///
- /// DisplayUnitType indicates display unit type
- /// Ratio
- private static double ImperialDutRatio(DisplayUnitType dut)
- {
- switch (dut)
- {
- case DisplayUnitType.DUT_ACRES: return 2.29568411386593E-05;
- case DisplayUnitType.DUT_AMPERES: return 1;
- case DisplayUnitType.DUT_ATMOSPHERES: return 3.23793722675857E-05;
- case DisplayUnitType.DUT_BARS: return 3.28083989501312E-05;
- case DisplayUnitType.DUT_BRITISH_THERMAL_UNITS: return 8.80550918411529E-05;
- case DisplayUnitType.DUT_BRITISH_THERMAL_UNITS_PER_HOUR: return 0.316998330628151;
- case DisplayUnitType.DUT_BRITISH_THERMAL_UNITS_PER_SECOND: return 8.80550918411529E-05;
- case DisplayUnitType.DUT_CALORIES: return 0.0221895098882201;
- case DisplayUnitType.DUT_CALORIES_PER_SECOND: return 0.0221895098882201;
- case DisplayUnitType.DUT_CANDELAS: return 1;
- case DisplayUnitType.DUT_CANDELAS_PER_SQUARE_METER: return 10.7639104167097;
- case DisplayUnitType.DUT_CANDLEPOWER: return 1;
- case DisplayUnitType.DUT_CELSIUS: return 1;
- case DisplayUnitType.DUT_CENTIMETERS: return 30.48;
- case DisplayUnitType.DUT_CENTIMETERS_PER_MINUTE: return 1828.8;
- case DisplayUnitType.DUT_CENTIPOISES: return 3280.83989501312;
- case DisplayUnitType.DUT_CUBIC_CENTIMETERS: return 28316.846592;
- case DisplayUnitType.DUT_CUBIC_FEET: return 1;
- case DisplayUnitType.DUT_CUBIC_FEET_PER_KIP: return 14593.9029372064;
- case DisplayUnitType.DUT_CUBIC_FEET_PER_MINUTE: return 60;
- case DisplayUnitType.DUT_CUBIC_INCHES: return 1728;
- case DisplayUnitType.DUT_CUBIC_METERS: return 0.028316846592;
- case DisplayUnitType.DUT_CUBIC_METERS_PER_HOUR: return 101.9406477312;
- case DisplayUnitType.DUT_CUBIC_METERS_PER_KILONEWTON: return 92.90304;
- case DisplayUnitType.DUT_CUBIC_METERS_PER_SECOND: return 0.028316846592;
- case DisplayUnitType.DUT_CUBIC_MILLIMETERS: return 28316846.592;
- case DisplayUnitType.DUT_CUBIC_YARDS: return 0.037037037037037;
- case DisplayUnitType.DUT_CYCLES_PER_SECOND: return 1;
- case DisplayUnitType.DUT_DECANEWTONS: return 0.03048;
- case DisplayUnitType.DUT_DECANEWTONS_PER_METER: return 0.1;
- case DisplayUnitType.DUT_DECANEWTONS_PER_SQUARE_METER: return 0.328083989501312;
- case DisplayUnitType.DUT_DECANEWTON_METERS: return 0.009290304;
- case DisplayUnitType.DUT_DECANEWTON_METERS_PER_METER: return 0.03048;
- case DisplayUnitType.DUT_DECIMAL_DEGREES: return 57.2957795130823;
- case DisplayUnitType.DUT_DECIMAL_FEET: return 1;
- case DisplayUnitType.DUT_DECIMAL_INCHES: return 12;
- case DisplayUnitType.DUT_DEGREES_AND_MINUTES: return 57.2957795130823;
- case DisplayUnitType.DUT_FAHRENHEIT: return 1.8;
- case DisplayUnitType.DUT_FEET_FRACTIONAL_INCHES: return 1;
- case DisplayUnitType.DUT_FEET_OF_WATER: return 0.00109764531546318;
- case DisplayUnitType.DUT_FEET_OF_WATER_PER_100FT: return 0.109761336731934;
- case DisplayUnitType.DUT_FEET_PER_KIP: return 14593.9029372064;
- case DisplayUnitType.DUT_FEET_PER_MINUTE: return 60;
- case DisplayUnitType.DUT_FEET_PER_SECOND: return 1;
- case DisplayUnitType.DUT_FIXED: return 1;
- case DisplayUnitType.DUT_FOOTCANDLES: return 1.0000000387136;
- case DisplayUnitType.DUT_FOOTLAMBERTS: return 3.1415927449471;
- case DisplayUnitType.DUT_FRACTIONAL_INCHES: return 12;
- case DisplayUnitType.DUT_GALLONS_US: return 7.48051905367236;
- case DisplayUnitType.DUT_GALLONS_US_PER_HOUR: return 26929.8685932205;
- case DisplayUnitType.DUT_GALLONS_US_PER_MINUTE: return 448.831143220342;
- case DisplayUnitType.DUT_GENERAL: return 1;
- case DisplayUnitType.DUT_HECTARES: return 9.290304E-06;
- case DisplayUnitType.DUT_HERTZ: return 1;
- case DisplayUnitType.DUT_HORSEPOWER: return 0.00012458502883053;
- case DisplayUnitType.DUT_INCHES_OF_MERCURY: return 0.000968831370233344;
- case DisplayUnitType.DUT_INCHES_OF_WATER: return 0.0131845358262865;
- case DisplayUnitType.DUT_INCHES_OF_WATER_PER_100FT: return 1.31845358262865;
- case DisplayUnitType.DUT_INV_CELSIUS: return 1;
- case DisplayUnitType.DUT_INV_FAHRENHEIT: return 0.555555555555556;
- case DisplayUnitType.DUT_INV_KILONEWTONS: return 3280.83989501312;
- case DisplayUnitType.DUT_INV_KIPS: return 14593.9029372064;
- case DisplayUnitType.DUT_JOULES: return 0.09290304;
- case DisplayUnitType.DUT_KELVIN: return 1;
- case DisplayUnitType.DUT_KILOAMPERES: return 0.001;
- case DisplayUnitType.DUT_KILOCALORIES: return 2.21895098882201E-05;
- case DisplayUnitType.DUT_KILOCALORIES_PER_SECOND: return 2.21895098882201E-05;
- case DisplayUnitType.DUT_KILOGRAMS_FORCE: return 0.0310810655372411;
- case DisplayUnitType.DUT_KILOGRAMS_FORCE_PER_METER: return 0.101971999794098;
- case DisplayUnitType.DUT_KILOGRAMS_FORCE_PER_SQUARE_METER: return 0.334553805098747;
- case DisplayUnitType.DUT_KILOGRAMS_PER_CUBIC_METER: return 35.3146667214886;
- case DisplayUnitType.DUT_KILOGRAM_FORCE_METERS: return 0.00947350877575109;
- case DisplayUnitType.DUT_KILOGRAM_FORCE_METERS_PER_METER: return 0.0310810655372411;
- case DisplayUnitType.DUT_KILONEWTONS: return 0.0003048;
- case DisplayUnitType.DUT_KILONEWTONS_PER_CUBIC_METER: return 0.0107639104167097;
- case DisplayUnitType.DUT_KILONEWTONS_PER_METER: return 0.001;
- case DisplayUnitType.DUT_KILONEWTONS_PER_SQUARE_METER: return 0.00328083989501312;
- case DisplayUnitType.DUT_KILONEWTON_METERS: return 9.290304E-05;
- case DisplayUnitType.DUT_KILONEWTON_METERS_PER_DEGREE: return 9.290304E-05;
- case DisplayUnitType.DUT_KILONEWTON_METERS_PER_DEGREE_PER_METER: return 0.0003048;
- case DisplayUnitType.DUT_KILONEWTON_METERS_PER_METER: return 0.0003048;
- case DisplayUnitType.DUT_KILOPASCALS: return 0.00328083989501312;
- case DisplayUnitType.DUT_KILOVOLTS: return 9.290304E-05;
- case DisplayUnitType.DUT_KILOVOLT_AMPERES: return 9.290304E-05;
- case DisplayUnitType.DUT_KILOWATTS: return 9.290304E-05;
- case DisplayUnitType.DUT_KILOWATT_HOURS: return 2.58064E-08;
- case DisplayUnitType.DUT_KIPS: return 0.224808943099711;
- case DisplayUnitType.DUT_KIPS_PER_CUBIC_FOOT: return 6.85217658567918E-05;
- case DisplayUnitType.DUT_KIPS_PER_CUBIC_INCH: return 3.96537996856434E-08;
- case DisplayUnitType.DUT_KIPS_PER_FOOT: return 6.85217658567918E-05;
- case DisplayUnitType.DUT_KIPS_PER_INCH: return 5.71014715473265E-06;
- case DisplayUnitType.DUT_KIPS_PER_SQUARE_FOOT: return 6.85217658567918E-05;
- case DisplayUnitType.DUT_KIPS_PER_SQUARE_INCH: return 4.75845596227721E-07;
- case DisplayUnitType.DUT_KIP_FEET: return 6.85217658567918E-05;
- case DisplayUnitType.DUT_KIP_FEET_PER_DEGREE: return 2.08854342331501E-05;
- case DisplayUnitType.DUT_KIP_FEET_PER_DEGREE_PER_FOOT: return 2.08854342331501E-05;
- case DisplayUnitType.DUT_KIP_FEET_PER_FOOT: return 6.85217658567918E-05;
- case DisplayUnitType.DUT_LITERS: return 28.316846592;
- case DisplayUnitType.DUT_LITERS_PER_SECOND: return 28.316846592;
- case DisplayUnitType.DUT_LUMENS: return 1;
- case DisplayUnitType.DUT_LUX: return 10.7639104167097;
- case DisplayUnitType.DUT_MEGANEWTONS: return 3.048E-07;
- case DisplayUnitType.DUT_MEGANEWTONS_PER_METER: return 1E-06;
- case DisplayUnitType.DUT_MEGANEWTONS_PER_SQUARE_METER: return 3.28083989501312E-06;
- case DisplayUnitType.DUT_MEGANEWTON_METERS: return 9.290304E-08;
- case DisplayUnitType.DUT_MEGANEWTON_METERS_PER_METER: return 3.048E-07;
- case DisplayUnitType.DUT_MEGAPASCALS: return 3.28083989501312E-06;
- case DisplayUnitType.DUT_METERS: return 0.3048;
- case DisplayUnitType.DUT_METERS_CENTIMETERS: return 0.3048;
- case DisplayUnitType.DUT_METERS_PER_KILONEWTON: return 1000;
- case DisplayUnitType.DUT_METERS_PER_SECOND: return 0.3048;
- case DisplayUnitType.DUT_MILLIAMPERES: return 1000;
- case DisplayUnitType.DUT_MILLIMETERS: return 304.8;
- case DisplayUnitType.DUT_MILLIMETERS_OF_MERCURY: return 0.0246083170946002;
- case DisplayUnitType.DUT_MILLIVOLTS: return 92.90304;
- case DisplayUnitType.DUT_NEWTONS: return 0.3048;
- case DisplayUnitType.DUT_NEWTONS_PER_METER: return 1;
- case DisplayUnitType.DUT_NEWTONS_PER_SQUARE_METER: return 3.28083989501312;
- case DisplayUnitType.DUT_NEWTON_METERS: return 0.09290304;
- case DisplayUnitType.DUT_NEWTON_METERS_PER_METER: return 0.3048;
- case DisplayUnitType.DUT_PASCALS: return 3.28083989501312;
- case DisplayUnitType.DUT_PASCALS_PER_METER: return 10.7639104167097;
- case DisplayUnitType.DUT_PASCAL_SECONDS: return 3.28083989501312;
- case DisplayUnitType.DUT_PERCENTAGE: return 100;
- case DisplayUnitType.DUT_POUNDS_FORCE: return 224.80894309971;
- case DisplayUnitType.DUT_POUNDS_FORCE_PER_CUBIC_FOOT: return 0.0685217658567918;
- case DisplayUnitType.DUT_POUNDS_FORCE_PER_FOOT: return 0.0685217658567918;
- case DisplayUnitType.DUT_POUNDS_FORCE_PER_SQUARE_FOOT: return 0.0685217658567917;
- case DisplayUnitType.DUT_POUNDS_FORCE_PER_SQUARE_INCH: return 0.000475845616460903;
- case DisplayUnitType.DUT_POUNDS_MASS_PER_CUBIC_FOOT: return 2.20462262184878;
- case DisplayUnitType.DUT_POUNDS_MASS_PER_CUBIC_INCH: return 0.00127582327653286;
- case DisplayUnitType.DUT_POUNDS_MASS_PER_FOOT_HOUR: return 7936.64143865559;
- case DisplayUnitType.DUT_POUNDS_MASS_PER_FOOT_SECOND: return 2.20462262184878;
- case DisplayUnitType.DUT_POUND_FORCE_FEET: return 0.0685217658567918;
- case DisplayUnitType.DUT_POUND_FORCE_FEET_PER_FOOT: return 0.0685217658567918;
- case DisplayUnitType.DUT_RANKINE: return 1.8;
- case DisplayUnitType.DUT_SQUARE_CENTIMETERS: return 929.0304;
- case DisplayUnitType.DUT_SQUARE_FEET: return 1;
- case DisplayUnitType.DUT_SQUARE_FEET_PER_KIP: return 14593.9029372064;
- case DisplayUnitType.DUT_SQUARE_INCHES: return 144;
- case DisplayUnitType.DUT_SQUARE_METERS: return 0.09290304;
- case DisplayUnitType.DUT_SQUARE_METERS_PER_KILONEWTON: return 304.8;
- case DisplayUnitType.DUT_SQUARE_MILLIMETERS: return 92903.04;
- case DisplayUnitType.DUT_THERMS: return 8.80547457016663E-10;
- case DisplayUnitType.DUT_TONNES_FORCE: return 3.10810655372411E-05;
- case DisplayUnitType.DUT_TONNES_FORCE_PER_METER: return 0.000101971999794098;
- case DisplayUnitType.DUT_TONNES_FORCE_PER_SQUARE_METER: return 0.000334553805098747;
- case DisplayUnitType.DUT_TONNE_FORCE_METERS: return 9.47350877575109E-06;
- case DisplayUnitType.DUT_TONNE_FORCE_METERS_PER_METER: return 3.10810655372411E-05;
- case DisplayUnitType.DUT_VOLTS: return 0.09290304;
- case DisplayUnitType.DUT_VOLT_AMPERES: return 0.09290304;
- case DisplayUnitType.DUT_WATTS: return 0.09290304;
- case DisplayUnitType.DUT_WATTS_PER_SQUARE_FOOT: return 0.09290304;
- case DisplayUnitType.DUT_WATTS_PER_SQUARE_METER: return 1;
- default: return 1;
- }
+ return UnitUtils.ConvertToInternalUnits(value, from);
}
#endregion
}
diff --git a/SDK/Samples/Loads/CS/Loads.csproj b/SDK/Samples/Loads/CS/Loads.csproj
index 22e10d8c..1f05e883 100644
--- a/SDK/Samples/Loads/CS/Loads.csproj
+++ b/SDK/Samples/Loads/CS/Loads.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/Massing/DistanceToPanels/CS/DistanceToPanels.csproj b/SDK/Samples/Massing/DistanceToPanels/CS/DistanceToPanels.csproj
index 955b5d88..8c620663 100644
--- a/SDK/Samples/Massing/DistanceToPanels/CS/DistanceToPanels.csproj
+++ b/SDK/Samples/Massing/DistanceToPanels/CS/DistanceToPanels.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.DistanceToPanels.CS
DistanceToPanels
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/Massing/DividedSurfaceByIntersects/CS/DividedSurfaceByIntersects.csproj b/SDK/Samples/Massing/DividedSurfaceByIntersects/CS/DividedSurfaceByIntersects.csproj
index e79f0da0..a51222d3 100644
--- a/SDK/Samples/Massing/DividedSurfaceByIntersects/CS/DividedSurfaceByIntersects.csproj
+++ b/SDK/Samples/Massing/DividedSurfaceByIntersects/CS/DividedSurfaceByIntersects.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.DividedSurfaceByIntersects.CS
DividedSurfaceByIntersects
- v4.7
+ v4.8
diff --git a/SDK/Samples/Massing/ManipulateForm/CS/ManipulateForm.csproj b/SDK/Samples/Massing/ManipulateForm/CS/ManipulateForm.csproj
index 34925f9d..77d34a8d 100644
--- a/SDK/Samples/Massing/ManipulateForm/CS/ManipulateForm.csproj
+++ b/SDK/Samples/Massing/ManipulateForm/CS/ManipulateForm.csproj
@@ -12,7 +12,7 @@
ManipulateForm
- v4.7
+ v4.8
diff --git a/SDK/Samples/Massing/MeasurePanelArea/CS/MeasurePanelArea.csproj b/SDK/Samples/Massing/MeasurePanelArea/CS/MeasurePanelArea.csproj
index 815f8f5f..9a54a141 100644
--- a/SDK/Samples/Massing/MeasurePanelArea/CS/MeasurePanelArea.csproj
+++ b/SDK/Samples/Massing/MeasurePanelArea/CS/MeasurePanelArea.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.MeasurePanelArea.CS
MeasurePanelArea
- v4.7
+ v4.8
512
publish\
true
diff --git a/SDK/Samples/Massing/NewForm/CS/NewForm.csproj b/SDK/Samples/Massing/NewForm/CS/NewForm.csproj
index 8d0c4938..b24e1657 100644
--- a/SDK/Samples/Massing/NewForm/CS/NewForm.csproj
+++ b/SDK/Samples/Massing/NewForm/CS/NewForm.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.NewForm.CS
NewForm
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/Massing/PanelEdgeLengthAngle/CS/PanelEdgeLengthAngle.csproj b/SDK/Samples/Massing/PanelEdgeLengthAngle/CS/PanelEdgeLengthAngle.csproj
index a2536799..9c96a6ec 100644
--- a/SDK/Samples/Massing/PanelEdgeLengthAngle/CS/PanelEdgeLengthAngle.csproj
+++ b/SDK/Samples/Massing/PanelEdgeLengthAngle/CS/PanelEdgeLengthAngle.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.PanelEdgeLengthAngle.CS
PanelEdgeLengthAngle
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/Massing/ParameterValuesFromImage/CS/ParameterValuesFromImage.csproj b/SDK/Samples/Massing/ParameterValuesFromImage/CS/ParameterValuesFromImage.csproj
index eb547a58..c3cd0c05 100644
--- a/SDK/Samples/Massing/ParameterValuesFromImage/CS/ParameterValuesFromImage.csproj
+++ b/SDK/Samples/Massing/ParameterValuesFromImage/CS/ParameterValuesFromImage.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.ParameterValuesFromImage.CS
ParameterValuesFromImage
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/Massing/PointCurveCreation/CS/PointCurveCreation.csproj b/SDK/Samples/Massing/PointCurveCreation/CS/PointCurveCreation.csproj
index 190f8d92..a3bdbfab 100644
--- a/SDK/Samples/Massing/PointCurveCreation/CS/PointCurveCreation.csproj
+++ b/SDK/Samples/Massing/PointCurveCreation/CS/PointCurveCreation.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.PointCurveCreation.CS
PointCurveCreation
- v4.7
+ v4.8
512
@@ -57,7 +57,7 @@
False
- .\Microsoft.Office.Interop.Excel.dll
+ ..\..\..\..\..\..\..\..\Source\Tools\RvtMgdDbg\Third Party\Office XP Assemblies\Microsoft.Office.Interop.Excel.dll
diff --git a/SDK/Samples/MaterialProperties/CS/MaterialProperties.csproj b/SDK/Samples/MaterialProperties/CS/MaterialProperties.csproj
index 7b904c01..bbca79c0 100644
--- a/SDK/Samples/MaterialProperties/CS/MaterialProperties.csproj
+++ b/SDK/Samples/MaterialProperties/CS/MaterialProperties.csproj
@@ -27,7 +27,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/MaterialProperties/VB.NET/MaterialProperties.vbproj b/SDK/Samples/MaterialProperties/VB.NET/MaterialProperties.vbproj
index 04e5571a..cd5026fa 100644
--- a/SDK/Samples/MaterialProperties/VB.NET/MaterialProperties.vbproj
+++ b/SDK/Samples/MaterialProperties/VB.NET/MaterialProperties.vbproj
@@ -30,7 +30,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/MaterialQuantities/CS/MaterialQuantities.csproj b/SDK/Samples/MaterialQuantities/CS/MaterialQuantities.csproj
index 660bdf9b..ed830b5f 100644
--- a/SDK/Samples/MaterialQuantities/CS/MaterialQuantities.csproj
+++ b/SDK/Samples/MaterialQuantities/CS/MaterialQuantities.csproj
@@ -30,7 +30,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/ModelLines/CS/ModelLines.csproj b/SDK/Samples/ModelLines/CS/ModelLines.csproj
index f3897d2b..37a98727 100644
--- a/SDK/Samples/ModelLines/CS/ModelLines.csproj
+++ b/SDK/Samples/ModelLines/CS/ModelLines.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/ModelessDialog/ModelessForm_ExternalEvent/CS/ModelessForm_ExternalEvent.csproj b/SDK/Samples/ModelessDialog/ModelessForm_ExternalEvent/CS/ModelessForm_ExternalEvent.csproj
index 0102d3d5..8c593be6 100644
--- a/SDK/Samples/ModelessDialog/ModelessForm_ExternalEvent/CS/ModelessForm_ExternalEvent.csproj
+++ b/SDK/Samples/ModelessDialog/ModelessForm_ExternalEvent/CS/ModelessForm_ExternalEvent.csproj
@@ -12,7 +12,7 @@
ModelessForm_ExternalEvent
- v4.7
+ v4.8
diff --git a/SDK/Samples/ModelessDialog/ModelessForm_IdlingEvent/CS/ModelessForm_IdlingEvent.csproj b/SDK/Samples/ModelessDialog/ModelessForm_IdlingEvent/CS/ModelessForm_IdlingEvent.csproj
index eff14992..878c49d8 100644
--- a/SDK/Samples/ModelessDialog/ModelessForm_IdlingEvent/CS/ModelessForm_IdlingEvent.csproj
+++ b/SDK/Samples/ModelessDialog/ModelessForm_IdlingEvent/CS/ModelessForm_IdlingEvent.csproj
@@ -12,7 +12,7 @@
ModelessForm_IdlingEvent
- v4.7
+ v4.8
diff --git a/SDK/Samples/MoveLinear/CS/MoveLinear.csproj b/SDK/Samples/MoveLinear/CS/MoveLinear.csproj
index e386a9c5..aeda67a6 100644
--- a/SDK/Samples/MoveLinear/CS/MoveLinear.csproj
+++ b/SDK/Samples/MoveLinear/CS/MoveLinear.csproj
@@ -39,7 +39,7 @@
1.0.0.%2a
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/MultiThreading/WorkThread/CS/WorkThread.csproj b/SDK/Samples/MultiThreading/WorkThread/CS/WorkThread.csproj
index 36322ffb..4ed55fe9 100644
--- a/SDK/Samples/MultiThreading/WorkThread/CS/WorkThread.csproj
+++ b/SDK/Samples/MultiThreading/WorkThread/CS/WorkThread.csproj
@@ -12,7 +12,7 @@
WorkThread
- v4.7
+ v4.8
diff --git a/SDK/Samples/MultiplanarRebar/CS/MultiplanarRebar.csproj b/SDK/Samples/MultiplanarRebar/CS/MultiplanarRebar.csproj
index 0763175b..a0fd95d5 100644
--- a/SDK/Samples/MultiplanarRebar/CS/MultiplanarRebar.csproj
+++ b/SDK/Samples/MultiplanarRebar/CS/MultiplanarRebar.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.MultiplanarRebar.CS
MultiplanarRebar
- v4.7
+ v4.8
diff --git a/SDK/Samples/NewHostedSweep/CS/NewHostedSweep.csproj b/SDK/Samples/NewHostedSweep/CS/NewHostedSweep.csproj
index 8a73106d..e29c4505 100644
--- a/SDK/Samples/NewHostedSweep/CS/NewHostedSweep.csproj
+++ b/SDK/Samples/NewHostedSweep/CS/NewHostedSweep.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.NewHostedSweep.CS
NewHostedSweep
- v4.7
+ v4.8
diff --git a/SDK/Samples/NewOpenings/CS/NewOpenings.csproj b/SDK/Samples/NewOpenings/CS/NewOpenings.csproj
index 186c3295..5aff3e4c 100644
--- a/SDK/Samples/NewOpenings/CS/NewOpenings.csproj
+++ b/SDK/Samples/NewOpenings/CS/NewOpenings.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.NewOpenings.CS
NewOpenings
- v4.7
+ v4.8
diff --git a/SDK/Samples/NewPathReinforcement/CS/NewPathReinforcement.csproj b/SDK/Samples/NewPathReinforcement/CS/NewPathReinforcement.csproj
index f3caa3a5..09bda5cf 100644
--- a/SDK/Samples/NewPathReinforcement/CS/NewPathReinforcement.csproj
+++ b/SDK/Samples/NewPathReinforcement/CS/NewPathReinforcement.csproj
@@ -10,7 +10,7 @@
Properties
NewPathReinforcement
NewPathReinforcement
- v4.7
+ v4.8
diff --git a/SDK/Samples/NewRebar/CS/NewRebar.csproj b/SDK/Samples/NewRebar/CS/NewRebar.csproj
index f89a17eb..9326e55c 100644
--- a/SDK/Samples/NewRebar/CS/NewRebar.csproj
+++ b/SDK/Samples/NewRebar/CS/NewRebar.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.NewRebar.CS
NewRebar
- v4.7
+ v4.8
diff --git a/SDK/Samples/NewRoof/CS/NewRoof.csproj b/SDK/Samples/NewRoof/CS/NewRoof.csproj
index 2b35f20f..3476a980 100644
--- a/SDK/Samples/NewRoof/CS/NewRoof.csproj
+++ b/SDK/Samples/NewRoof/CS/NewRoof.csproj
@@ -10,7 +10,7 @@
Properties
NewRoof
NewRoof
- v4.7
+ v4.8
diff --git a/SDK/Samples/ObjectViewer/CS/ObjectViewer.csproj b/SDK/Samples/ObjectViewer/CS/ObjectViewer.csproj
index d82c9d62..deccbd7a 100644
--- a/SDK/Samples/ObjectViewer/CS/ObjectViewer.csproj
+++ b/SDK/Samples/ObjectViewer/CS/ObjectViewer.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/Openings/CS/Openings.csproj b/SDK/Samples/Openings/CS/Openings.csproj
index 4b1c4191..90e2820a 100644
--- a/SDK/Samples/Openings/CS/Openings.csproj
+++ b/SDK/Samples/Openings/CS/Openings.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/PanelSchedule/CS/PanelSchedule.csproj b/SDK/Samples/PanelSchedule/CS/PanelSchedule.csproj
index a9e1bb2b..ef65825e 100644
--- a/SDK/Samples/PanelSchedule/CS/PanelSchedule.csproj
+++ b/SDK/Samples/PanelSchedule/CS/PanelSchedule.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.PanelSchedule.CS
PanelSchedule
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ParameterUtils/CS/ParameterUtils.csproj b/SDK/Samples/ParameterUtils/CS/ParameterUtils.csproj
index 53ab9ec2..ebf2df9b 100644
--- a/SDK/Samples/ParameterUtils/CS/ParameterUtils.csproj
+++ b/SDK/Samples/ParameterUtils/CS/ParameterUtils.csproj
@@ -15,7 +15,7 @@
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/PathOfTravel/CS/PathOfTravel.csproj b/SDK/Samples/PathOfTravel/CS/PathOfTravel.csproj
index 7675d7da..792149e6 100644
--- a/SDK/Samples/PathOfTravel/CS/PathOfTravel.csproj
+++ b/SDK/Samples/PathOfTravel/CS/PathOfTravel.csproj
@@ -12,7 +12,7 @@
PathOfTravel
- v4.7
+ v4.8
true
diff --git a/SDK/Samples/PathReinforcement/CS/PathReinforcement.csproj b/SDK/Samples/PathReinforcement/CS/PathReinforcement.csproj
index 75ea7e6b..9decc2b2 100644
--- a/SDK/Samples/PathReinforcement/CS/PathReinforcement.csproj
+++ b/SDK/Samples/PathReinforcement/CS/PathReinforcement.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.PathReinforcement.CS
PathReinforcement
- v4.7
+ v4.8
diff --git a/SDK/Samples/PerformanceAdviserControl/CS/PerformanceAdviserControl.csproj b/SDK/Samples/PerformanceAdviserControl/CS/PerformanceAdviserControl.csproj
index 228bba3c..e648b112 100644
--- a/SDK/Samples/PerformanceAdviserControl/CS/PerformanceAdviserControl.csproj
+++ b/SDK/Samples/PerformanceAdviserControl/CS/PerformanceAdviserControl.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.PerformanceAdviserControl.CS
PerformanceAdviserControl
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/PhaseSample/VB.NET/PhaseSample.vbproj b/SDK/Samples/PhaseSample/VB.NET/PhaseSample.vbproj
index be9cc209..264ce9cf 100644
--- a/SDK/Samples/PhaseSample/VB.NET/PhaseSample.vbproj
+++ b/SDK/Samples/PhaseSample/VB.NET/PhaseSample.vbproj
@@ -32,7 +32,7 @@
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/PhysicalProp/CS/PhysicalProp.csproj b/SDK/Samples/PhysicalProp/CS/PhysicalProp.csproj
index 564acc3a..562f3b43 100644
--- a/SDK/Samples/PhysicalProp/CS/PhysicalProp.csproj
+++ b/SDK/Samples/PhysicalProp/CS/PhysicalProp.csproj
@@ -40,7 +40,7 @@
false
true
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/PlaceFamilyInstanceByFace/CS/PlaceFamilyInstanceByFace.csproj b/SDK/Samples/PlaceFamilyInstanceByFace/CS/PlaceFamilyInstanceByFace.csproj
index d565a9a5..98071074 100644
--- a/SDK/Samples/PlaceFamilyInstanceByFace/CS/PlaceFamilyInstanceByFace.csproj
+++ b/SDK/Samples/PlaceFamilyInstanceByFace/CS/PlaceFamilyInstanceByFace.csproj
@@ -12,7 +12,7 @@
PlaceFamilyInstanceByFace
- v4.7
+ v4.8
diff --git a/SDK/Samples/PlacementOptions/CS/PlacementOptions.csproj b/SDK/Samples/PlacementOptions/CS/PlacementOptions.csproj
index 5d926530..66399b4a 100644
--- a/SDK/Samples/PlacementOptions/CS/PlacementOptions.csproj
+++ b/SDK/Samples/PlacementOptions/CS/PlacementOptions.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
PlacementOptions
- v4.7
+ v4.8
@@ -121,4 +115,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/PointCloudEngine/CS/PointCloudEngine.csproj b/SDK/Samples/PointCloudEngine/CS/PointCloudEngine.csproj
index b380006d..c1b2d813 100644
--- a/SDK/Samples/PointCloudEngine/CS/PointCloudEngine.csproj
+++ b/SDK/Samples/PointCloudEngine/CS/PointCloudEngine.csproj
@@ -16,7 +16,7 @@
false
- v4.7
+ v4.8
publish\
true
Disk
@@ -41,8 +41,7 @@
DEBUG;TRACE
prompt
4
-
-
+ PointCloudEngine.XML
true
diff --git a/SDK/Samples/PostCommandWorkflow/CS/PostCommandWorkflow.csproj b/SDK/Samples/PostCommandWorkflow/CS/PostCommandWorkflow.csproj
index 4d70cb80..cd940740 100644
--- a/SDK/Samples/PostCommandWorkflow/CS/PostCommandWorkflow.csproj
+++ b/SDK/Samples/PostCommandWorkflow/CS/PostCommandWorkflow.csproj
@@ -12,7 +12,7 @@
PostCommandWorkflow
- v4.7
+ v4.8
diff --git a/SDK/Samples/PowerCircuit/CS/CircuitOperationData.cs b/SDK/Samples/PowerCircuit/CS/CircuitOperationData.cs
index e359ea7e..95afb909 100644
--- a/SDK/Samples/PowerCircuit/CS/CircuitOperationData.cs
+++ b/SDK/Samples/PowerCircuit/CS/CircuitOperationData.cs
@@ -81,7 +81,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
///
/// All electrical systems contain selected element
///
- private ElectricalSystemSet m_electricalSystemSet;
+ private ISet m_electricalSystemSet;
///
/// All electrical system items which will be displayed in circuit selecting form
@@ -184,7 +184,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
{
get
{
- return m_electricalSystemSet.Size;
+ return m_electricalSystemSet.Count;
}
}
#endregion
@@ -199,7 +199,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
m_revitDoc = commandData.Application.ActiveUIDocument;
m_selection = m_revitDoc.Selection;
- m_electricalSystemSet = new ElectricalSystemSet();
+ m_electricalSystemSet = new HashSet();
m_electricalSystemItems = new List();
CollectConnectorInfo();
@@ -303,7 +303,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
Element element = m_revitDoc.Document.GetElement(elementId);
FamilyInstance fi = element as FamilyInstance;
MEPModel mepModel;
- ElectricalSystemSet ess;
+ ISet ess;
if (fi != null && (mepModel = fi.MEPModel) != null)
{
@@ -315,7 +315,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
//
// Get all electrical systems
- ess = mepModel.ElectricalSystems;
+ ess = mepModel.GetElectricalSystems();
if (null == ess)
{
m_hasCircuit = false;
@@ -328,11 +328,11 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
{
if (es.SystemType != ElectricalSystemType.PowerCircuit)
{
- ess.Erase(es);
+ ess.Remove(es);
}
}
- if (ess.IsEmpty)
+ if (ess.Count == 0)
{
m_hasCircuit = false;
m_hasPanel = false;
@@ -354,11 +354,11 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
{
if (!ess.Contains(es))
{
- m_electricalSystemSet.Erase(es);
+ m_electricalSystemSet.Remove(es);
}
}
- if (m_electricalSystemSet.IsEmpty)
+ if (m_electricalSystemSet.Count == 0)
{
m_hasCircuit = false;
m_hasPanel = false;
@@ -386,7 +386,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
// to get the common ones
if (!bInitilzedElectricalSystemSet)
{
- m_electricalSystemSet.Insert(tempElectricalSystem);
+ m_electricalSystemSet.Add(tempElectricalSystem);
bInitilzedElectricalSystemSet = true;
continue;
}
@@ -399,7 +399,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
}
m_electricalSystemSet.Clear();
- m_electricalSystemSet.Insert(tempElectricalSystem);
+ m_electricalSystemSet.Add(tempElectricalSystem);
}
else
{
@@ -410,10 +410,10 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
}
// Verify if there is any common power circuit
- if (!m_electricalSystemSet.IsEmpty)
+ if (m_electricalSystemSet.Count != 0)
{
m_hasCircuit = true;
- if (m_electricalSystemSet.Size == 1)
+ if (m_electricalSystemSet.Count == 1)
{
foreach (ElectricalSystem es in m_electricalSystemSet)
{
@@ -642,7 +642,7 @@ namespace Revit.SDK.Samples.PowerCircuit.CS
static private bool IsElementBelongsToCircuit(MEPModel mepModel,
ElectricalSystem selectedElectricalSystem)
{
- ElectricalSystemSet ess = mepModel.ElectricalSystems;
+ ISet ess = mepModel.GetElectricalSystems();
if (null == ess || !ess.Contains(selectedElectricalSystem))
{
return false;
diff --git a/SDK/Samples/PowerCircuit/CS/PowerCircuit.csproj b/SDK/Samples/PowerCircuit/CS/PowerCircuit.csproj
index 3d52e646..db0b09cb 100644
--- a/SDK/Samples/PowerCircuit/CS/PowerCircuit.csproj
+++ b/SDK/Samples/PowerCircuit/CS/PowerCircuit.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.PowerCircuit.CS
PowerCircuit
- v4.7
+ v4.8
diff --git a/SDK/Samples/ProjectInfo/CS/ProjectInfo.csproj b/SDK/Samples/ProjectInfo/CS/ProjectInfo.csproj
index 7279a684..a6aff766 100644
--- a/SDK/Samples/ProjectInfo/CS/ProjectInfo.csproj
+++ b/SDK/Samples/ProjectInfo/CS/ProjectInfo.csproj
@@ -17,7 +17,7 @@
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/ReadonlySharedParameters/CS/ReadonlySharedParameters.csproj b/SDK/Samples/ReadonlySharedParameters/CS/ReadonlySharedParameters.csproj
index 71265032..06064816 100644
--- a/SDK/Samples/ReadonlySharedParameters/CS/ReadonlySharedParameters.csproj
+++ b/SDK/Samples/ReadonlySharedParameters/CS/ReadonlySharedParameters.csproj
@@ -16,7 +16,7 @@
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/RebarContainerAnyShapeType/CS/RebarContainerAnyShapeType.csproj b/SDK/Samples/RebarContainerAnyShapeType/CS/RebarContainerAnyShapeType.csproj
index f4029658..484bb97f 100644
--- a/SDK/Samples/RebarContainerAnyShapeType/CS/RebarContainerAnyShapeType.csproj
+++ b/SDK/Samples/RebarContainerAnyShapeType/CS/RebarContainerAnyShapeType.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/RebarFreeForm/CS/AddSharedParams.cs b/SDK/Samples/RebarFreeForm/CS/AddSharedParams.cs
index 00f2e492..8e64c4aa 100644
--- a/SDK/Samples/RebarFreeForm/CS/AddSharedParams.cs
+++ b/SDK/Samples/RebarFreeForm/CS/AddSharedParams.cs
@@ -18,7 +18,13 @@ namespace Revit.SDK.Samples.RebarFreeForm.CS
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
public class AddSharedParams : IExternalCommand
{
+ ///
+ /// Updated: is used to start the regeneration
+ ///
public static string m_paramName = "Updated";
+ ///
+ /// CurveElementId: is used to store the id of a model curve
+ ///
public static string m_CurveIdName = "CurveElementId";
///
/// Add two shared parameters to the rebar category instance elements:
diff --git a/SDK/Samples/RebarFreeForm/CS/RebarFreeForm.csproj b/SDK/Samples/RebarFreeForm/CS/RebarFreeForm.csproj
index 21fa1da1..7f8b4d7e 100644
--- a/SDK/Samples/RebarFreeForm/CS/RebarFreeForm.csproj
+++ b/SDK/Samples/RebarFreeForm/CS/RebarFreeForm.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
RebarFreeForm
- v4.7
+ v4.8
@@ -30,8 +24,7 @@
prompt
4
true
-
-
+ bin\Debug\RebarFreeForm.XML
pdbonly
@@ -75,4 +68,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/RebarFreeForm/CS/RebarUpdateServer.cs b/SDK/Samples/RebarFreeForm/CS/RebarUpdateServer.cs
index c498226c..359bbf94 100644
--- a/SDK/Samples/RebarFreeForm/CS/RebarUpdateServer.cs
+++ b/SDK/Samples/RebarFreeForm/CS/RebarUpdateServer.cs
@@ -646,6 +646,7 @@ namespace Revit.SDK.Samples.RebarFreeForm.CS
///
///
///
+ ///
///
private bool generateSet(Curve firstCurve, Curve lastCurve, RebarLayoutRule layout, int nbOfBars, double spacing, ref List curves, Curve overrideCurve)
{
diff --git a/SDK/Samples/ReferencePlane/CS/ReferencePlane.csproj b/SDK/Samples/ReferencePlane/CS/ReferencePlane.csproj
index cd12fe47..e92c067e 100644
--- a/SDK/Samples/ReferencePlane/CS/ReferencePlane.csproj
+++ b/SDK/Samples/ReferencePlane/CS/ReferencePlane.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/Reinforcement/CS/Reinforcement.csproj b/SDK/Samples/Reinforcement/CS/Reinforcement.csproj
index 0e79799a..f9827678 100644
--- a/SDK/Samples/Reinforcement/CS/Reinforcement.csproj
+++ b/SDK/Samples/Reinforcement/CS/Reinforcement.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/RevitCommands/VB.NET/RevitCommands.vbproj b/SDK/Samples/RevitCommands/VB.NET/RevitCommands.vbproj
index 774398be..84b74471 100644
--- a/SDK/Samples/RevitCommands/VB.NET/RevitCommands.vbproj
+++ b/SDK/Samples/RevitCommands/VB.NET/RevitCommands.vbproj
@@ -31,7 +31,7 @@
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/Ribbon/CS/Ribbon.csproj b/SDK/Samples/Ribbon/CS/Ribbon.csproj
index 70f29a9e..29777e76 100644
--- a/SDK/Samples/Ribbon/CS/Ribbon.csproj
+++ b/SDK/Samples/Ribbon/CS/Ribbon.csproj
@@ -10,7 +10,7 @@
Properties
Revit
Ribbon
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/RoofsRooms/CS/RoofsRooms.csproj b/SDK/Samples/RoofsRooms/CS/RoofsRooms.csproj
index 624066b5..45d912f5 100644
--- a/SDK/Samples/RoofsRooms/CS/RoofsRooms.csproj
+++ b/SDK/Samples/RoofsRooms/CS/RoofsRooms.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.RoofsRooms.CS
RoofsRooms
- v4.7
+ v4.8
diff --git a/SDK/Samples/RoomSchedule/CS/RoomSchedule.csproj b/SDK/Samples/RoomSchedule/CS/RoomSchedule.csproj
index c4536eed..309d7410 100644
--- a/SDK/Samples/RoomSchedule/CS/RoomSchedule.csproj
+++ b/SDK/Samples/RoomSchedule/CS/RoomSchedule.csproj
@@ -12,7 +12,7 @@
RoomSchedule
- v4.7
+ v4.8
diff --git a/SDK/Samples/Rooms/CS/Rooms.csproj b/SDK/Samples/Rooms/CS/Rooms.csproj
index ab16931e..a5b4f565 100644
--- a/SDK/Samples/Rooms/CS/Rooms.csproj
+++ b/SDK/Samples/Rooms/CS/Rooms.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/RotateFramingObjects/CS/RotateFramingObjects.csproj b/SDK/Samples/RotateFramingObjects/CS/RotateFramingObjects.csproj
index ec11e4a5..a602fd5f 100644
--- a/SDK/Samples/RotateFramingObjects/CS/RotateFramingObjects.csproj
+++ b/SDK/Samples/RotateFramingObjects/CS/RotateFramingObjects.csproj
@@ -43,7 +43,7 @@
false
false
true
- v4.7
+ v4.8
diff --git a/SDK/Samples/RotateFramingObjects/VB.NET/RotateFramingObjects.vbproj b/SDK/Samples/RotateFramingObjects/VB.NET/RotateFramingObjects.vbproj
index 9f4607f1..8385ebe6 100644
--- a/SDK/Samples/RotateFramingObjects/VB.NET/RotateFramingObjects.vbproj
+++ b/SDK/Samples/RotateFramingObjects/VB.NET/RotateFramingObjects.vbproj
@@ -31,7 +31,7 @@
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceAnalysis/Analyzer.cs b/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceAnalysis/Analyzer.cs
index b3d63ea4..78a27bd4 100644
--- a/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceAnalysis/Analyzer.cs
+++ b/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceAnalysis/Analyzer.cs
@@ -227,7 +227,7 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
}
sBuilder.Remove(sBuilder.Length - 1, 1);
xSegmentNotCovered.Add(new XAttribute(XName.Get("sizes"), sBuilder.ToString()));
- xSegmentNotCovered.Add(new XAttribute(XName.Get("unit"), m_document.GetUnits().GetFormatOptions(UnitType.UT_PipeSize).DisplayUnits.ToString()));
+ xSegmentNotCovered.Add(new XAttribute(XName.Get("unit"), m_document.GetUnits().GetFormatOptions(SpecTypeId.PipeSize).GetUnitTypeId().TypeId));
xSegmentNotCovered.Add(new XAttribute(XName.Get("groupType"), groupType.ToString()));
diff --git a/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceBuilder/RoutingPreferenceBuilder.cs b/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceBuilder/RoutingPreferenceBuilder.cs
index 816dd85c..41815456 100644
--- a/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceBuilder/RoutingPreferenceBuilder.cs
+++ b/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceBuilder/RoutingPreferenceBuilder.cs
@@ -71,17 +71,17 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
throw new RoutingPreferenceDataException("No pipe pipes defined in this project. At least one must be defined.");
- FormatOptions formatOptionPipeSize = m_document.GetUnits().GetFormatOptions(UnitType.UT_PipeSize);
+ FormatOptions formatOptionPipeSize = m_document.GetUnits().GetFormatOptions(SpecTypeId.PipeSize);
- string docPipeSizeUnit = formatOptionPipeSize.DisplayUnits.ToString();
+ string docPipeSizeUnit = formatOptionPipeSize.GetUnitTypeId().TypeId;
string xmlPipeSizeUnit = xDoc.Root.Attribute("pipeSizeUnits").Value;
if (docPipeSizeUnit != xmlPipeSizeUnit)
throw new RoutingPreferenceDataException("Units from XML do not match current pipe size units.");
- FormatOptions formatOptionRoughness = m_document.GetUnits().GetFormatOptions(UnitType.UT_Piping_Roughness);
+ FormatOptions formatOptionRoughness = m_document.GetUnits().GetFormatOptions(SpecTypeId.PipingRoughness);
- string docRoughnessUnit = formatOptionRoughness.DisplayUnits.ToString();
+ string docRoughnessUnit = formatOptionRoughness.GetUnitTypeId().TypeId;
string xmlRoughnessUnit = xDoc.Root.Attribute("pipeRoughnessUnits").Value;
if (docRoughnessUnit != xmlRoughnessUnit)
throw new RoutingPreferenceDataException("Units from XML do not match current pipe roughness units.");
@@ -186,12 +186,12 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
XDocument routingPreferenceBuilderDoc = new XDocument();
XElement xroot = new XElement(XName.Get("RoutingPreferenceBuilder"));
- FormatOptions formatOptionPipeSize = m_document.GetUnits().GetFormatOptions(UnitType.UT_PipeSize);
- string unitStringPipeSize = formatOptionPipeSize.DisplayUnits.ToString();
+ FormatOptions formatOptionPipeSize = m_document.GetUnits().GetFormatOptions(SpecTypeId.PipeSize);
+ string unitStringPipeSize = formatOptionPipeSize.GetUnitTypeId().TypeId;
xroot.Add(new XAttribute(XName.Get("pipeSizeUnits"), unitStringPipeSize));
- FormatOptions formatOptionRoughness = m_document.GetUnits().GetFormatOptions(UnitType.UT_Piping_Roughness);
- string unitStringRoughness = formatOptionRoughness.DisplayUnits.ToString();
+ FormatOptions formatOptionRoughness = m_document.GetUnits().GetFormatOptions(SpecTypeId.PipingRoughness);
+ string unitStringRoughness = formatOptionRoughness.GetUnitTypeId().TypeId;
xroot.Add(new XAttribute(XName.Get("pipeRoughnessUnits"), unitStringRoughness));
foreach (FamilySymbol familySymbol in this.m_fittings)
diff --git a/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceTools.csproj b/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceTools.csproj
index 9b31baee..74c8a0fc 100644
--- a/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceTools.csproj
+++ b/SDK/Samples/RoutingPreferenceTools/CS/RoutingPreferenceTools.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.RoutingPreferenceTools.CS
RoutingPreferenceTools
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/RoutingPreferenceTools/CS/Utility.cs b/SDK/Samples/RoutingPreferenceTools/CS/Utility.cs
index cb780b94..f6194ef7 100644
--- a/SDK/Samples/RoutingPreferenceTools/CS/Utility.cs
+++ b/SDK/Samples/RoutingPreferenceTools/CS/Utility.cs
@@ -60,8 +60,8 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
{
public static double ConvertValueDocumentUnits(double decimalFeet, Autodesk.Revit.DB.Document document)
{
- FormatOptions formatOption = document.GetUnits().GetFormatOptions(UnitType.UT_PipeSize);
- return UnitUtils.ConvertFromInternalUnits(decimalFeet, formatOption.DisplayUnits);
+ FormatOptions formatOption = document.GetUnits().GetFormatOptions(SpecTypeId.PipeSize);
+ return UnitUtils.ConvertFromInternalUnits(decimalFeet, formatOption.GetUnitTypeId());
}
diff --git a/SDK/Samples/RvtSamples/CS/RvtSamples.addin b/SDK/Samples/RvtSamples/CS/RvtSamples.addin
index 0e35e394..eaa8579c 100644
--- a/SDK/Samples/RvtSamples/CS/RvtSamples.addin
+++ b/SDK/Samples/RvtSamples/CS/RvtSamples.addin
@@ -1,8 +1,8 @@
- RvtSamples External Application
- Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RvtSamples\CS\bin\Debug\RvtSamples.dll
+ External Tool
+ RvtSamples.dll
42cb0a70-2ee7-4e64-a42d-87b9cdcc41c8
RvtSamples.Application
ADSK
diff --git a/SDK/Samples/RvtSamples/CS/RvtSamples.csproj b/SDK/Samples/RvtSamples/CS/RvtSamples.csproj
index 58f969c4..0f77d5b0 100644
--- a/SDK/Samples/RvtSamples/CS/RvtSamples.csproj
+++ b/SDK/Samples/RvtSamples/CS/RvtSamples.csproj
@@ -10,7 +10,7 @@
Properties
RvtSamples
RvtSamples
- v4.7
+ v4.8
@@ -85,9 +85,7 @@
Resource.Designer.cs
-
-
-
+
PreserveNewest
diff --git a/SDK/Samples/RvtSamples/CS/RvtSamples.txt b/SDK/Samples/RvtSamples/CS/RvtSamples.txt
index fb566f8f..e54b14d6 100644
--- a/SDK/Samples/RvtSamples/CS/RvtSamples.txt
+++ b/SDK/Samples/RvtSamples/CS/RvtSamples.txt
@@ -3,7 +3,7 @@ EnergyAnalysis Model
Demonstrates how to use EnergyAnalysisModel API.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\GeometryAPI\EnergyAnalysisModel\CS\bin\Debug\EnergyAnalysisModel.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\GeometryAPI\EnergyAnalysisModel\CS\bin\Debug\EnergyAnalysisModel.dll
Revit.SDK.Samples.EnergyAnalysisModel.CS.Command
Annotation
@@ -11,7 +11,7 @@ Tag Rooms
Auto tag all rooms in a specified level.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AutoTagRooms\CS\bin\Debug\AutoTagRooms.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AutoTagRooms\CS\bin\Debug\AutoTagRooms.dll
Revit.SDK.Samples.AutoTagRooms.CS.Command
Annotation
@@ -19,7 +19,7 @@ Create Dimensions
Add a dimension to a selected structural wall from its start to its end. Name the dimensions 'Dimension N' where N is an increasing number for each dimension.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateDimensions\CS\bin\Debug\CreateDimensions.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateDimensions\CS\bin\Debug\CreateDimensions.dll
Revit.SDK.Samples.CreateDimensions.CS.Command
Annotation
@@ -27,7 +27,7 @@ LeaderLineAndDimensionLineSuperposition.
Using new dimension api to move leader end point. Make the dimension line and leader line to be superposition.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DimensionLeaderEnd\CS\bin\Debug\DimensionLeaderEnd.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DimensionLeaderEnd\CS\bin\Debug\DimensionLeaderEnd.dll
Revit.SDK.Samples.DimensionLeaderEnd.CS.MoveHorizontally
Annotation
@@ -35,7 +35,7 @@ MoveToPickedPoint.
Using new dimension api to move leader end point. Move to picked point.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DimensionLeaderEnd\CS\bin\Debug\DimensionLeaderEnd.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DimensionLeaderEnd\CS\bin\Debug\DimensionLeaderEnd.dll
Revit.SDK.Samples.DimensionLeaderEnd.CS.MoveToPickedPoint
Annotation
@@ -43,7 +43,7 @@ Spot Dimension
Get all spot dimensions in all views and show their properties.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SpotDimension\CS\bin\Debug\SpotDimension.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SpotDimension\CS\bin\Debug\SpotDimension.dll
Revit.SDK.Samples.SpotDimension.CS.Command
Annotation
@@ -51,7 +51,7 @@ TagBeam - Tag Beam
Tag beam's start and end.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TagBeam\CS\bin\Debug\TagBeam.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TagBeam\CS\bin\Debug\TagBeam.dll
Revit.SDK.Samples.TagBeam.CS.Command
Annotation
@@ -59,7 +59,7 @@ TagBeam - Tag Rebar
Tag selected Rebar.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TagBeam\CS\bin\Debug\TagBeam.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TagBeam\CS\bin\Debug\TagBeam.dll
Revit.SDK.Samples.TagBeam.CS.TagRebar
Annotation
@@ -67,7 +67,7 @@ TagBeam - Create Text
Create a new TextNote instance for selected Rebar.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TagBeam\CS\bin\Debug\TagBeam.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TagBeam\CS\bin\Debug\TagBeam.dll
Revit.SDK.Samples.TagBeam.CS.CreateText
Annotation, Basics
@@ -75,7 +75,7 @@ Capitalize all TextNote elements
This command iterates through the document and applies the 'AllCaps' formatting to them. This will show text in upper case characters.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CapitalizeAllTextNotes\CS\bin\Debug\CapitalizeAllTextNotes.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CapitalizeAllTextNotes\CS\bin\Debug\CapitalizeAllTextNotes.dll
Revit.SDK.Samples.CapitalizeAllTextNotes.CS.Command
Annotation, Basics
@@ -83,7 +83,7 @@ Delete Dimensions
Delete all unpinned dimensions found in current selection.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DeleteDimensions\CS\bin\Debug\DeleteDimensions.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DeleteDimensions\CS\bin\Debug\DeleteDimensions.dll
Revit.SDK.Samples.DeleteDimensions.CS.Command
Annotation, Elements, Views
@@ -91,7 +91,7 @@ Create PathOfTravel.
This sample demonstrated how to create PathOfTravel elements from room(s) to door(s) in a plan view.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PathOfTravel\CS\bin\Debug\PathOfTravel.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PathOfTravel\CS\bin\Debug\PathOfTravel.dll
Revit.SDK.Samples.PathOfTravelCreation.CS.Command
Basics
@@ -99,7 +99,7 @@ Delete Objects (CS)
Delete selected elements.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DeleteObject\CS\bin\Debug\DeleteObject.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DeleteObject\CS\bin\Debug\DeleteObject.dll
Revit.SDK.Samples.DeleteObject.CS.Command
Basics
@@ -107,7 +107,7 @@ ErrorHandling
Demonstrates how to use the error handling framework..
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ErrorHandling\CS\bin\Debug\ErrorHandling.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ErrorHandling\CS\bin\Debug\ErrorHandling.dll
Revit.SDK.Samples.ErrorHandling.CS.Command
Basics
@@ -115,7 +115,7 @@ ProgressNotifier
ProgressNotifier
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Events\ProgressNotifier\CS\bin\Debug\ProgressNotifier.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Events\ProgressNotifier\CS\bin\Debug\ProgressNotifier.dll
Revit.SDK.Samples.ProgressNotifier.CS.Command
Basics
@@ -123,7 +123,7 @@ Hello Revit (CS)
Shows how a basic ExternalCommand can be added to the Revit user interface.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\HelloRevit\CS\bin\Debug\HelloRevit.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\HelloRevit\CS\bin\Debug\HelloRevit.dll
Revit.SDK.Samples.HelloRevit.CS.Command
Basics
@@ -131,7 +131,7 @@ Journaling
Show how an external application can participate in the journaling mechanism.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Journaling\CS\bin\Debug\Journaling.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Journaling\CS\bin\Debug\Journaling.dll
Revit.SDK.Samples.Journaling.CS.Command
Basics
@@ -139,7 +139,7 @@ Show Modeless Form (External Event)
This sample shows how to utilize an External Event object in order to communicate with the Revit API from an external modeless dialog.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ModelessDialog\ModelessForm_ExternalEvent\CS\bin\Debug\ModelessForm_ExternalEvent.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ModelessDialog\ModelessForm_ExternalEvent\CS\bin\Debug\ModelessForm_ExternalEvent.dll
Revit.SDK.Samples.ModelessForm_ExternalEvent.CS.Command
Basics
@@ -147,7 +147,7 @@ Show Modeless Form (Idling Event)
An applicaiton with a modeless dialog using the Idling event to comunicate with Revit API
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ModelessDialog\ModelessForm_IdlingEvent\CS\bin\Debug\ModelessForm_IdlingEvent.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ModelessDialog\ModelessForm_IdlingEvent\CS\bin\Debug\ModelessForm_IdlingEvent.dll
Revit.SDK.Samples.ModelessForm_IdlingEvent.CS.Command
Basics
@@ -155,7 +155,7 @@ Analyze Wall Face
This sample shows how to utilize the Applicaiton.Idling event in order to communicate with the Revit API from an external work thread.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\MultiThreading\WorkThread\CS\bin\Debug\WorkThread.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\MultiThreading\WorkThread\CS\bin\Debug\WorkThread.dll
Revit.SDK.Samples.WorkThread.CS.Command
Basics
@@ -163,7 +163,7 @@ Highlight by Phase
Highlight by Phase.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PhaseSample\VB.NET\bin\PhaseSample.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PhaseSample\VB.NET\bin\Debug\PhaseSample.dll
Revit.SDK.Samples.PhaseSample.VB.NET.Command
Basics
@@ -171,7 +171,7 @@ Project Information
Project Information.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ProjectInfo\CS\bin\Debug\ProjectInfo.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ProjectInfo\CS\bin\Debug\ProjectInfo.dll
Revit.SDK.Samples.ProjectInfo.CS.Command
Basics
@@ -179,7 +179,7 @@ TransactionControl
Demonstrate how to use transaction control.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TransactionControl\CS\bin\Debug\TransactionControl.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TransactionControl\CS\bin\Debug\TransactionControl.dll
Revit.SDK.Samples.TransactionControl.CS.Command
Basics, Data Exchange
@@ -187,7 +187,7 @@ Units API
The sample of Revit Units API.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Units\CS\bin\Debug\Units.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Units\CS\bin\Debug\Units.dll
Revit.SDK.Samples.Units.CS.Command
Basics, Elements
@@ -195,7 +195,7 @@ Display Options
Display Options.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DesignOptionReader\VB.NET\bin\DesignOptionReader.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DesignOptionReader\VB.NET\bin\Debug\DesignOptionReader.dll
Revit.SDK.Samples.DesignOptionReader.VB.NET.Command
Basics, Families
@@ -203,7 +203,7 @@ Interactive placement of family instance via options
This sample demonstrates how to place the family instance via options
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PlacementOptions\CS\bin\Debug\PlacementOptions.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PlacementOptions\CS\bin\Debug\PlacementOptions.dll
Revit.SDK.Samples.PlacementOptions.CS.Command
Basics, Families
@@ -211,7 +211,7 @@ RvtCmd_LibraryPaths
List the Revit library paths.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RevitCommands\VB.NET\bin\RevitCommands.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RevitCommands\VB.NET\bin\Debug\RevitCommands.dll
Revit.SDK.Samples.RevitCommands.VB.NET.RvtCmd_LibraryPaths
Basics, Families
@@ -219,7 +219,7 @@ RvtCmd_LoadFamilySymbol
Load a family symbol/type.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RevitCommands\VB.NET\bin\RevitCommands.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RevitCommands\VB.NET\bin\Debug\RevitCommands.dll
Revit.SDK.Samples.RevitCommands.VB.NET.RvtCmd_LoadFamilySymbol
Basics, Families
@@ -227,7 +227,7 @@ RvtCmd_LoadFamily
Load a family.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RevitCommands\VB.NET\bin\RevitCommands.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RevitCommands\VB.NET\bin\Debug\RevitCommands.dll
Revit.SDK.Samples.RevitCommands.VB.NET.RvtCmd_LoadFamily
Basics, Families
@@ -235,7 +235,7 @@ RvtCmd_Selection
show how to use selection set.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RevitCommands\VB.NET\bin\RevitCommands.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RevitCommands\VB.NET\bin\Debug\RevitCommands.dll
Revit.SDK.Samples.RevitCommands.VB.NET.RvtCmd_Selection
Basics, Families
@@ -243,7 +243,7 @@ RvtCmd_ShowElementData
show parameters in selected entities.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RevitCommands\VB.NET\bin\RevitCommands.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RevitCommands\VB.NET\bin\Debug\RevitCommands.dll
Revit.SDK.Samples.RevitCommands.VB.NET.RvtCmd_ShowElementData
Basics, Geometry
@@ -251,7 +251,7 @@ Display graphics using DirectContext3D
Select elements whose graphics should be redrawn using DirectContext3D.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DuplicateGraphics\CS\bin\Debug\DuplicateGraphics.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DuplicateGraphics\CS\bin\Debug\DuplicateGraphics.dll
Revit.SDK.Samples.DuplicateGraphics.CS.CommandDuplicateGraphics
Basics, Geometry
@@ -259,7 +259,7 @@ Clear DirectContext3D graphics
Remove external graphics.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DuplicateGraphics\CS\bin\Debug\DuplicateGraphics.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DuplicateGraphics\CS\bin\Debug\DuplicateGraphics.dll
Revit.SDK.Samples.DuplicateGraphics.CS.CommandClearExternalGraphics
Basics, Geometry
@@ -267,7 +267,7 @@ ReferencePlane
Allow user to create a reference plane at the left face of the wall or at the bottom of slab which is selected first.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ReferencePlane\CS\bin\Debug\ReferencePlane.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ReferencePlane\CS\bin\Debug\ReferencePlane.dll
Revit.SDK.Samples.ReferencePlane.CS.Command
Basics, Geometry, Views
@@ -275,7 +275,7 @@ Export 2D views with CustomExporter
Export 2D views with CustomExporter, using varying options of the exporter.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CustomExporter\Custom2DExporter\CS\bin\Debug\Custom2DExporter.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CustomExporter\Custom2DExporter\CS\bin\Debug\Custom2DExporter.dll
Revit.SDK.Samples.Custom2DExporter.CS.Command
Basics, Parameters
@@ -283,7 +283,7 @@ About Revit
Show the Revit product name, version and build number.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\VersionChecking\CS\bin\Debug\VersionChecking.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\VersionChecking\CS\bin\Debug\VersionChecking.dll
Revit.SDK.Samples.VersionChecking.CS.Command
Basics, Structure
@@ -291,7 +291,7 @@ Rotate Framing Objects (CS)
Rotate selected objects, such as beams, braces and columns.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RotateFramingObjects\CS\bin\Debug\RotateFramingObjects.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RotateFramingObjects\CS\bin\Debug\RotateFramingObjects.dll
Revit.SDK.Samples.RotateFramingObjects.CS.RotateFramingObjects
Data Exchange
@@ -299,7 +299,7 @@ Arch Sample - Export to Excel
Export data to Excel, sorted by categories
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ArchSample\VB.NET\bin\ArchSample.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ArchSample\VB.NET\bin\Debug\ArchSample.dll
Revit.SDK.Samples.ArchSample.VB.NET.Command
Data Exchange
@@ -307,7 +307,7 @@ Import and Export
Export current project to dwg, dwf(x), gbxml or fbx files and import a dwg or image file into Revit.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ImportExport\CS\bin\Debug\ImportExport.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ImportExport\CS\bin\Debug\ImportExport.dll
Revit.SDK.Samples.ImportExport.CS.Command
Data Exchange
@@ -315,7 +315,7 @@ Panel Schedule Sample - Export Data
Exoport Revit Panle Schedule(s) to CSV file(s) or HTML page(s).
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PanelSchedule\CS\bin\Debug\PanelSchedule.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PanelSchedule\CS\bin\Debug\PanelSchedule.dll
Revit.SDK.Samples.PanelSchedule.CS.PanelScheduleExport
Data Exchange
@@ -323,7 +323,7 @@ Panel Schedule Sample - View Instance Creation
Create Panel Schedule View instance for a panel.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PanelSchedule\CS\bin\Debug\PanelSchedule.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PanelSchedule\CS\bin\Debug\PanelSchedule.dll
Revit.SDK.Samples.PanelSchedule.CS.InstanceViewCreation
Data Exchange
@@ -331,7 +331,7 @@ Panel Schedule Sample - Sheet Instance Creation
Place Panel Schedule View instance on a sheet view.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PanelSchedule\CS\bin\Debug\PanelSchedule.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PanelSchedule\CS\bin\Debug\PanelSchedule.dll
Revit.SDK.Samples.PanelSchedule.CS.SheetImport
Data Exchange
@@ -339,7 +339,7 @@ View Printer
Print user selected printable views.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ViewPrinter\CS\bin\Debug\ViewPrinter.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ViewPrinter\CS\bin\Debug\ViewPrinter.dll
Revit.SDK.Samples.ViewPrinter.CS.Command
Data Exchange, Families
@@ -347,7 +347,7 @@ DWGFamilyCreation
Import dwg file into family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\DWGFamilyCreation\CS\bin\Debug\DWGFamilyCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\DWGFamilyCreation\CS\bin\Debug\DWGFamilyCreation.dll
Revit.SDK.Samples.DWGFamilyCreation.CS.Command
Elements
@@ -355,7 +355,7 @@ Create CompoundStructure for wall
This command is to create CompoundStructure for wall.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CompoundStructure\CS\bin\Debug\CompoundStructure.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CompoundStructure\CS\bin\Debug\CompoundStructure.dll
Revit.SDK.Samples.CompoundStructureCreation.CS.WallCompoundStructure
Elements
@@ -363,7 +363,7 @@ Create and set FillPattern
Create and set FillPattern or LinePattern to face and grid
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateFillPattern\CS\bin\Debug\CreateFillPattern.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateFillPattern\CS\bin\Debug\CreateFillPattern.dll
Revit.SDK.Samples.CreateFillPattern.CS.Command
Elements
@@ -371,7 +371,7 @@ Create Triangles Topography
Creates a new topography surface element from facets
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateTrianglesTopography\CS\bin\Debug\CreateTrianglesTopography.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateTrianglesTopography\CS\bin\Debug\CreateTrianglesTopography.dll
Revit.SDK.Samples.CreateTrianglesTopography.CS.Command
Elements
@@ -379,7 +379,7 @@ Curtain System
Create curtain systems and edit their curtain grids
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CurtainSystem\CS\bin\Debug\CurtainSystem.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CurtainSystem\CS\bin\Debug\CurtainSystem.dll
Revit.SDK.Samples.CurtainSystem.CS.Command
Elements
@@ -387,39 +387,23 @@ Curtain Wall and Grid
Create a curtain wall and edit its grid
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CurtainWallGrid\CS\bin\Debug\CurtainWallGrid.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CurtainWallGrid\CS\bin\Debug\CurtainWallGrid.dll
Revit.SDK.Samples.CurtainWallGrid.CS.Command
Elements
-Datums modification: style
-Datums modification: style
+Datumplane modification
+Datumplane modification
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DatumsModification\CS\bin\Debug\DatumsModification.dll
-Revit.SDK.Samples.DatumsModification.CS.DatumStyleModification
-
-Elements
-Datums modification: alignment
-Datums modification: alignment
-LargeImage:
-Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DatumsModification\CS\bin\Debug\DatumsModification.dll
-Revit.SDK.Samples.DatumsModification.CS.DatumAlignment
-
-Elements
-Datums modification: propagation
-Datums modification: propagation
-LargeImage:
-Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DatumsModification\CS\bin\Debug\DatumsModification.dll
-Revit.SDK.Samples.DatumsModification.CS.DatumPropagation
+C:\Revit SDK 2020\Software Development Kit\Samples\DatumsModification\CS\bin\Debug\DatumsModification.dll
+Revit.SDK.Samples.DatumsModification.CS.Command
Elements
Create and modify view filters.
Create and modify view filters.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ElementFilter\ViewFilters\CS\bin\Debug\ViewFilters.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ElementFilter\ViewFilters\CS\bin\Debug\ViewFilters.dll
Revit.SDK.Samples.ViewFilters.CS.Command
Elements
@@ -427,7 +411,7 @@ Extensible Storage Manager
Extensible Storage Manager
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ExtensibleStorageManager\ExtensibleStorageManager\CS\bin\Debug\ExtensibleStorageManager.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ExtensibleStorageManager\ExtensibleStorageManager\CS\bin\Debug\ExtensibleStorageManager.dll
ExtensibleStorageManager.Command
Elements
@@ -435,7 +419,7 @@ ExtensibleStorageUtility-DeleteStorage
ExtensibleStorageUtility-DeleteStorage
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ExtensibleStorageUtility\CS\bin\Debug\ExtensibleStorageUtility.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ExtensibleStorageUtility\CS\bin\Debug\ExtensibleStorageUtility.dll
Revit.SDK.Samples.ExtensibleStorageUtility.CS.DeleteStorage
Elements
@@ -443,7 +427,7 @@ ExtensibleStorageUtility-QueryStorage
ExtensibleStorageUtility-QueryStorage
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ExtensibleStorageUtility\CS\bin\Debug\ExtensibleStorageUtility.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ExtensibleStorageUtility\CS\bin\Debug\ExtensibleStorageUtility.dll
Revit.SDK.Samples.ExtensibleStorageUtility.CS.QueryStorage
Elements
@@ -451,7 +435,7 @@ Foundation Slab
Convert regular floors at the base of the building to octagonal slabs.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FoundationSlab\CS\bin\Debug\FoundationSlab.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FoundationSlab\CS\bin\Debug\FoundationSlab.dll
Revit.SDK.Samples.FoundationSlab.CS.Command
Elements
@@ -459,7 +443,7 @@ GenerateFloor
Generate a floor using a selection of walls that make a closed outline.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\GenerateFloor\CS\bin\Debug\GenerateFloor.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\GenerateFloor\CS\bin\Debug\GenerateFloor.dll
Revit.SDK.Samples.GenerateFloor.CS.Command
Elements
@@ -467,7 +451,7 @@ Grid Creation
Show how to create grids.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\GridCreation\CS\bin\Debug\GridCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\GridCreation\CS\bin\Debug\GridCreation.dll
Revit.SDK.Samples.GridCreation.CS.Command
Elements
@@ -475,7 +459,7 @@ Create levels
Show how to get all the levels in a document and how to create and delete a level and set its properties.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\LevelsProperty\CS\bin\Debug\LevelsProperty.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\LevelsProperty\CS\bin\Debug\LevelsProperty.dll
Revit.SDK.Samples.LevelsProperty.CS.Command
Elements
@@ -483,7 +467,7 @@ Model Lines
Report the number of each model line type and allow the user to specify the shape and sketch plane to create some new model lines.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ModelLines\CS\bin\Debug\ModelLines.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ModelLines\CS\bin\Debug\ModelLines.dll
Revit.SDK.Samples.ModelLines.CS.Command
Elements
@@ -491,7 +475,7 @@ New hosted sweep
Create hosted sweep and modify created hosted sweep
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\NewHostedSweep\CS\bin\Debug\NewHostedSweep.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\NewHostedSweep\CS\bin\Debug\NewHostedSweep.dll
Revit.SDK.Samples.NewHostedSweep.CS.Command
Elements
@@ -499,7 +483,7 @@ New Openings
Create openings on the selected floor or wall.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\NewOpenings\CS\bin\Debug\NewOpenings.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\NewOpenings\CS\bin\Debug\NewOpenings.dll
Revit.SDK.Samples.NewOpenings.CS.Command
Elements
@@ -507,7 +491,7 @@ NewRoof
Create or edit footprint roof and extrusion roof.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\NewRoof\CS\bin\Debug\NewRoof.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\NewRoof\CS\bin\Debug\NewRoof.dll
Revit.SDK.Samples.NewRoof.CS.Command
Elements
@@ -515,7 +499,7 @@ Openings
Display openings in project, and create model lines along its edges.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Openings\CS\bin\Debug\Openings.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Openings\CS\bin\Debug\Openings.dll
Revit.SDK.Samples.Openings.CS.Command
Elements
@@ -523,7 +507,7 @@ PerformanceAdviserControl
PerformanceAdviserControl
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PerformanceAdviserControl\CS\bin\Debug\PerformanceAdviserControl.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PerformanceAdviserControl\CS\bin\Debug\PerformanceAdviserControl.dll
Revit.SDK.Samples.PerformanceAdviserControl.CS.UICommand
Elements
@@ -531,7 +515,7 @@ Shared Coordinate System
Display the locations and site information of the project.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SharedCoordinateSystem\CS\bin\Debug\SharedCoordinateSystem.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SharedCoordinateSystem\CS\bin\Debug\SharedCoordinateSystem.dll
Revit.SDK.Samples.SharedCoordinateSystem.CS.Command
Elements
@@ -539,7 +523,7 @@ Stairs automation
A utility sample that creates a series of stairs, stairs runs and stairs landings configurations based upon predefined rules and parameters.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\StairsAutomation\CS\bin\Debug\StairsAutomation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\StairsAutomation\CS\bin\Debug\StairsAutomation.dll
Revit.SDK.Samples.StairsAutomation.CS.Command
Elements
@@ -547,7 +531,7 @@ Winder Stairs
API Sketched Winder Stairs
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\WinderStairs\CS\bin\Debug\WinderStairs.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\WinderStairs\CS\bin\Debug\WinderStairs.dll
Revit.SDK.Samples.WinderStairs.CS.Command
Elements, Geometry
@@ -555,7 +539,7 @@ Shaft Hole Puncher
Create shaft opening or create opening on wall, floor or beam.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ShaftHolePuncher\CS\bin\Debug\ShaftHolePuncher.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ShaftHolePuncher\CS\bin\Debug\ShaftHolePuncher.dll
Revit.SDK.Samples.ShaftHolePuncher.CS.Command
Elements, Geometry
@@ -563,7 +547,7 @@ SlabShapeEditing
Create vertex and crease on slab to edit it's shape.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SlabShapeEditing\CS\bin\Debug\SlabShapeEditing.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SlabShapeEditing\CS\bin\Debug\SlabShapeEditing.dll
Revit.SDK.Samples.SlabShapeEditing.CS.Command
Elements, Parameters
@@ -571,7 +555,7 @@ Move Linear
Move a linear element, such as a structural beam.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\MoveLinear\CS\bin\Debug\MoveLinear.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\MoveLinear\CS\bin\Debug\MoveLinear.dll
Revit.SDK.Samples.MoveLinear.CS.Command
Elements, Parameters
@@ -579,7 +563,7 @@ Slab Properties (CS)
Display slab properties.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SlabProperties\CS\bin\Debug\SlabProperties.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SlabProperties\CS\bin\Debug\SlabProperties.dll
Revit.SDK.Samples.SlabProperties.CS.Command
Elements, Parameters
@@ -587,7 +571,7 @@ Span Direction
Display slab properties (span direction and span direction symbols).
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SpanDirection\CS\bin\Debug\SpanDirection.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SpanDirection\CS\bin\Debug\SpanDirection.dll
Revit.SDK.Samples.SpanDirection.CS.Command
Families
@@ -595,7 +579,7 @@ Create Air Handler
Create one air handler and add connectors.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\CreateAirHandler\CS\bin\Debug\CreateAirHandler.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\CreateAirHandler\CS\bin\Debug\CreateAirHandler.dll
Revit.SDK.Samples.CreateAirHandler.CS.Command
Families
@@ -603,7 +587,7 @@ Create Truss
Create truss in truss family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\CreateTruss\CS\bin\Debug\CreateTruss.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\CreateTruss\CS\bin\Debug\CreateTruss.dll
Revit.SDK.Samples.CreateTruss.CS.Command
Families
@@ -611,7 +595,7 @@ GenericModelCreation
The sample show how to create Generic Model family at family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\GenericModelCreation\CS\bin\Debug\GenericModelCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\GenericModelCreation\CS\bin\Debug\GenericModelCreation.dll
Revit.SDK.Samples.GenericModelCreation.CS.Command
Families
@@ -619,7 +603,7 @@ TypeRegeneration
The command check every type regeneration without any error
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\TypeRegeneration\CS\bin\Debug\TypeRegeneration.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\TypeRegeneration\CS\bin\Debug\TypeRegeneration.dll
Revit.SDK.Samples.TypeRegeneration.CS.Command
Families
@@ -627,7 +611,7 @@ ValidateParameters
This command will validate if every type has valid values for certain parameter
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\ValidateParameters\CS\bin\Debug\ValidateParameters.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\ValidateParameters\CS\bin\Debug\ValidateParameters.dll
Revit.SDK.Samples.ValidateParameters.CS.Command
Families
@@ -635,7 +619,7 @@ WindowWizard
This command is to create window family via wizard
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\WindowWizard\CS\bin\Debug\WindowWizard.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\WindowWizard\CS\bin\Debug\WindowWizard.dll
Revit.SDK.Samples.WindowWizard.CS.Command
Families
@@ -643,7 +627,7 @@ In-Place Members
Display In-Place Member's Properties and AnalyticalModel.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\InPlaceMembers\CS\bin\Debug\InPlaceMembers.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\InPlaceMembers\CS\bin\Debug\InPlaceMembers.dll
Revit.SDK.Samples.InPlaceMembers.CS.Command
Families
@@ -651,7 +635,7 @@ DividedSurface by intersects
Customize DividedSurface with intersection elements
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\DividedSurfaceByIntersects\CS\bin\Debug\DividedSurfaceByIntersects.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\DividedSurfaceByIntersects\CS\bin\Debug\DividedSurfaceByIntersects.dll
Revit.SDK.Samples.DividedSurfaceByIntersects.CS.Command
Families
@@ -659,7 +643,7 @@ New Extrusion Form
The sample show how to create extrusion form at family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
Revit.SDK.Samples.NewForm.CS.MakeExtrusionForm
Families
@@ -667,7 +651,7 @@ New Revolve Form
The sample show how to create revolve form at family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
Revit.SDK.Samples.NewForm.CS.MakeRevolveForm
Families
@@ -675,7 +659,7 @@ New Loft Form
The sample show how to create loft form at family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
Revit.SDK.Samples.NewForm.CS.MakeLoftForm
Families
@@ -683,7 +667,7 @@ New Swept Blend Form
The sample show how to create swept blend form at family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
Revit.SDK.Samples.NewForm.CS.MakeSweptBlendForm
Families
@@ -691,7 +675,7 @@ New Cap Form
The sample show how to create cap form at family document.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\NewForm\CS\bin\Debug\NewForm.dll
Revit.SDK.Samples.NewForm.CS.MakeCapForm
Families
@@ -699,7 +683,7 @@ Place FamilyInstance by face
Create family instance on face.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PlaceFamilyInstanceByFace\CS\bin\Debug\PlaceFamilyInstanceByFace.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PlaceFamilyInstanceByFace\CS\bin\Debug\PlaceFamilyInstanceByFace.dll
Revit.SDK.Samples.PlaceFamilyInstanceByFace.CS.Command
Families
@@ -707,7 +691,7 @@ Type Selector
Retrieve all the types of the selected element, such as a wall and allow the selected element's type to be changed.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TypeSelector\VB.NET\bin\TypeSelector.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TypeSelector\VB.NET\bin\Debug\TypeSelector.dll
Revit.SDK.Samples.TypeSelector.VB.NET.Command
Families, Parameters
@@ -715,7 +699,7 @@ AddParameterToFamily
Sample to show how to automatically add a large set of parameters to a family.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\AutoParameter\CS\bin\Debug\AutoParameter.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\AutoParameter\CS\bin\Debug\AutoParameter.dll
Revit.SDK.Samples.AutoParameter.CS.AddParameterToFamily
Families, Parameters
@@ -723,7 +707,7 @@ AddParameterToFamilies
Sample to show how to automatically add a large set of parameters to multiple family files.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\AutoParameter\CS\bin\Debug\AutoParameter.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\AutoParameter\CS\bin\Debug\AutoParameter.dll
Revit.SDK.Samples.AutoParameter.CS.AddParameterToFamilies
Families, Parameters
@@ -731,7 +715,7 @@ Command
Command
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyParametersOrder\CS\bin\Debug\FamilyParametersOrder.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyParametersOrder\CS\bin\Debug\FamilyParametersOrder.dll
Revit.SDK.Samples.FamilyParametersOrder.CS.Command
Geometry
@@ -739,7 +723,7 @@ Multithreaded Calculation
Multithreaded Calculation
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AnalysisVisualizationFramework\MultithreadedCalculation\CS\bin\Debug\MultithreadedCalculation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AnalysisVisualizationFramework\MultithreadedCalculation\CS\bin\Debug\MultithreadedCalculation.dll
Revit.SDK.Samples.MultithreadedCalculation.CS.MultithreadedCalculation
Geometry
@@ -747,7 +731,7 @@ Gradient Results On Surface
Gradient Results On Surface
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AnalysisVisualizationFramework\SpatialFieldGradient\CS\bin\Debug\SpatialFieldGradient.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AnalysisVisualizationFramework\SpatialFieldGradient\CS\bin\Debug\SpatialFieldGradient.dll
Revit.SDK.Samples.AnalysisVisualizationFramework.CS.SpatialFieldGradient
Geometry
@@ -755,7 +739,7 @@ South Facing Walls Without ProjectLocation
""
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
Revit.Samples.DirectionCalculation.FindSouthFacingWallsWithoutProjectLocation
Geometry
@@ -763,7 +747,7 @@ South Facing Walls With ProjectLocation
""
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
Revit.Samples.DirectionCalculation.FindSouthFacingWallsWithProjectLocation
Geometry
@@ -771,7 +755,7 @@ South Facing Windows Without ProjectLocation
""
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
Revit.Samples.DirectionCalculation.FindSouthFacingWindowsWithoutProjectLocation
Geometry
@@ -779,7 +763,7 @@ South Facing Windows With ProjectLocation
""
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DirectionCalculation\CS\bin\Debug\DirectionCalculation.dll
Revit.Samples.DirectionCalculation.FindSouthFacingWindowsWithProjectLocation
Geometry
@@ -787,7 +771,7 @@ Auto Join
Automatically join geometry of combinable elements.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FamilyCreation\AutoJoin\CS\bin\Debug\AutoJoin.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FamilyCreation\AutoJoin\CS\bin\Debug\AutoJoin.dll
Revit.SDK.Samples.AutoJoin.CS.Command
Geometry
@@ -795,7 +779,7 @@ Find Columns Embedded In Walls
Find Columns Embedded In Walls
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FindReferencesByDirection\FindColumns\CS\bin\Debug\FindColumns.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FindReferencesByDirection\FindColumns\CS\bin\Debug\FindColumns.dll
Revit.SDK.Samples.FindColumns.CS.Command
Geometry
@@ -803,7 +787,7 @@ Measure Height of Skylight
Measure Height of Skylight
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FindReferencesByDirection\MeasureHeight\CS\bin\Debug\MeasureHeight.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FindReferencesByDirection\MeasureHeight\CS\bin\Debug\MeasureHeight.dll
Revit.SDK.Samples.MeasureHeight.CS.Command
Geometry
@@ -811,7 +795,7 @@ RayTraceBounce
Find intersection between ray and face and create connecting lines.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FindReferencesByDirection\RaytraceBounce\CS\bin\Debug\RayTraceBounce.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FindReferencesByDirection\RaytraceBounce\CS\bin\Debug\RayTraceBounce.dll
Revit.SDK.Samples.RayTraceBounce.CS.Command
Geometry
@@ -819,7 +803,7 @@ GeometryCreation_BooleanOperation
GeometryCreation and BooleanOperation
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\GeometryAPI\GeometryCreation_BooleanOperation\CS\bin\Debug\GeometryCreation_BooleanOperation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\GeometryAPI\GeometryCreation_BooleanOperation\CS\bin\Debug\GeometryCreation_BooleanOperation.dll
Revit.SDK.Samples.GeometryCreation_BooleanOperation.CS.Command
Geometry
@@ -827,7 +811,7 @@ Proximity Detection and Wall Join Control
The usage of ElementIntersectsSolidFilter,ElementIntersectsElementFilter and WallUtils
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\GeometryAPI\ProximityDetection_WallJoinControl\CS\bin\Debug\ProximityDetection_WallJoinControl.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\GeometryAPI\ProximityDetection_WallJoinControl\CS\bin\Debug\ProximityDetection_WallJoinControl.dll
Revit.SDK.Samples.ProximityDetection_WallJoinControl.CS.Command
Geometry
@@ -835,7 +819,7 @@ SlaveSymbolGeometry
Demonstrates how to get the slave symbol geometry.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\GeometryAPI\SlaveSymbolGeometry\CS\bin\Debug\SlaveSymbolGeometry.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\GeometryAPI\SlaveSymbolGeometry\CS\bin\Debug\SlaveSymbolGeometry.dll
Revit.SDK.Samples.SlaveSymbolGeometry.CS.Command
Geometry
@@ -843,7 +827,7 @@ Compute distance to panels
Compute the distance from a selected object to all panels and store in a panel instance parameter
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\DistanceToPanels\CS\bin\Debug\DistanceToPanels.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\DistanceToPanels\CS\bin\Debug\DistanceToPanels.dll
Revit.SDK.Samples.DistanceToPanels.CS.SetDistanceParam
Geometry
@@ -851,7 +835,7 @@ Manipulate form
Show how to manipulate edges and profiles of form
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\ManipulateForm\CS\bin\Debug\ManipulateForm.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\ManipulateForm\CS\bin\Debug\ManipulateForm.dll
Revit.SDK.Samples.ManipulateForm.CS.Command
Geometry
@@ -859,7 +843,7 @@ Measure Panel Area
Measure curtain panels on divided surfaces and identify panels beyond a user-specified range
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\MeasurePanelArea\CS\bin\Debug\MeasurePanelArea.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\MeasurePanelArea\CS\bin\Debug\MeasurePanelArea.dll
Revit.SDK.Samples.MeasurePanelArea.CS.MeasurePanelArea
Geometry
@@ -867,7 +851,7 @@ Compute the length and angle of edges
Measure curtain panels on divided surfaces, store the length and angle data to parameters
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PanelEdgeLengthAngle\CS\bin\Debug\PanelEdgeLengthAngle.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PanelEdgeLengthAngle\CS\bin\Debug\PanelEdgeLengthAngle.dll
Revit.SDK.Samples.PanelEdgeLengthAngle.CS.SetLengthAngleParams
Geometry
@@ -875,7 +859,7 @@ Points Along Parabola
Points Along Parabola
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
Revit.SDK.Samples.PointCurveCreation.CS.PointsParabola
Geometry
@@ -883,7 +867,7 @@ Points On Curve
Points On Curve
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
Revit.SDK.Samples.PointCurveCreation.CS.PointsOnCurve
Geometry
@@ -891,7 +875,7 @@ Points From Excel
Points From Excel
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
Revit.SDK.Samples.PointCurveCreation.CS.PointsFromExcel
Geometry
@@ -899,7 +883,7 @@ Points From Text File
Points From Text File
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
Revit.SDK.Samples.PointCurveCreation.CS.PointsFromTextFile
Geometry
@@ -907,7 +891,7 @@ Curve - Sine
Curve - Sine
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
Revit.SDK.Samples.PointCurveCreation.CS.SineCurve
Geometry
@@ -915,7 +899,7 @@ Curve - Catenary
Curve - Catenary
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
Revit.SDK.Samples.PointCurveCreation.CS.CatenaryCurve
Geometry
@@ -923,7 +907,7 @@ Surface - Cyclic
Surface - Cyclic
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\PointCurveCreation\CS\bin\Debug\PointCurveCreation.dll
Revit.SDK.Samples.PointCurveCreation.CS.CyclicSurface
Geometry
@@ -931,7 +915,7 @@ Material Quantities
Material Quantities
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\MaterialQuantities\CS\bin\Debug\MaterialQuantities.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\MaterialQuantities\CS\bin\Debug\MaterialQuantities.dll
Revit.Samples.MaterialQuantities.Command
Geometry
@@ -939,7 +923,7 @@ AddPredefinedInstance - Point Cloud Engine
Add predefined instance
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
Revit.SDK.Samples.CS.PointCloudEngine.AddPredefinedInstanceCommand
Geometry
@@ -947,7 +931,7 @@ Add randomized instance - Point Cloud Engine
Add randomized instance
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
Revit.SDK.Samples.CS.PointCloudEngine.AddRandomizedInstanceCommand
Geometry
@@ -955,7 +939,7 @@ Add randomized instance at transform - Point Cloud Engine
Add randomized instance at transform
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
Revit.SDK.Samples.CS.PointCloudEngine.AddTransformedInstanceCommand
Geometry
@@ -963,7 +947,7 @@ Serialize point cloud (utility) - Point Cloud Engine
Serialize point cloud (utility)
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PointCloudEngine\CS\bin\Debug\PointCloudEngine.dll
Revit.SDK.Samples.CS.PointCloudEngine.SerializePredefinedPointCloud
Geometry
@@ -971,7 +955,7 @@ SolidSolidCut-Cut
"Let the sphere cut the cube"
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SolidSolidCut\CS\bin\Debug\SolidSolidCut.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SolidSolidCut\CS\bin\Debug\SolidSolidCut.dll
Revit.SDK.Samples.SolidSolidCut.CS.Cut
Geometry
@@ -979,7 +963,7 @@ SolidSolidCut-Uncut
"Remove the cutting relationship between the sphere and the cube"
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SolidSolidCut\CS\bin\Debug\SolidSolidCut.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SolidSolidCut\CS\bin\Debug\SolidSolidCut.dll
Revit.SDK.Samples.SolidSolidCut.CS.Uncut
Geometry
@@ -987,7 +971,7 @@ Analytical Viewer
Display analytical model of one or more selected elements.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Viewers\AnalyticalViewer\VB.NET\bin\AnalyticalViewer.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Viewers\AnalyticalViewer\VB.NET\bin\Debug\AnalyticalViewer.dll
Revit.SDK.Samples.AnalyticalViewer.VB.NET.AnalyticalViewer
Geometry
@@ -995,7 +979,7 @@ Element Viewer
Display wireframe model of one or more selected elements.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Viewers\ElementViewer\VB.NET\bin\Debug\ElementViewer.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Viewers\ElementViewer\VB.NET\bin\Debug\ElementViewer.dll
Revit.SDK.Samples.ElementViewer.VB.NET.ElementViewer
Geometry
@@ -1003,7 +987,7 @@ Revit Viewer
View geometry information.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Viewers\RevitViewer\VB.NET\bin\RevitViewer.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Viewers\RevitViewer\VB.NET\bin\Debug\RevitViewer.dll
Revit.SDK.Samples.RevitViewer.VB.NET.RevitViewer
Geometry
@@ -1011,7 +995,7 @@ Room Viewer
Wireframe viewer for the selected room.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Viewers\RoomViewer\VB.NET\bin\RoomViewer.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Viewers\RoomViewer\VB.NET\bin\Debug\RoomViewer.dll
Revit.SDK.Samples.RoomViewer.VB.NET.RoomViewer
Geometry, Structure
@@ -1019,7 +1003,7 @@ NewPathReinforcement
Create PathReinforcement on wall or slab.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\NewPathReinforcement\CS\bin\Debug\NewPathReinforcement.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\NewPathReinforcement\CS\bin\Debug\NewPathReinforcement.dll
Revit.SDK.Samples.NewPathReinforcement.CS.Command
Geometry, Structure
@@ -1027,7 +1011,7 @@ Truss
Create truss, edit profile and truss member of new created truss.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Truss\CS\bin\Debug\Truss.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Truss\CS\bin\Debug\Truss.dll
Revit.SDK.Samples.Truss.CS.Command
Massing
@@ -1035,7 +1019,7 @@ Set Parameter Values From Image Data
Set Parameter Values From Image Data
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Massing\ParameterValuesFromImage\CS\bin\Debug\ParameterValuesFromImage.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Massing\ParameterValuesFromImage\CS\bin\Debug\ParameterValuesFromImage.dll
Revit.SDK.Samples.ParameterValuesFromImage.CS.SetParameterValueWithImageData
Materials
@@ -1043,7 +1027,7 @@ Edit appearance asset properties via a small control dialog
This sample demonstrates basic usage of the AppearanceAssetEditScope and AssetProperty classes to change the value of an asset property in a given material.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AppearanceAssetEditing\CS\bin\Debug\AppearanceAssetEditing.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AppearanceAssetEditing\CS\bin\Debug\AppearanceAssetEditing.dll
Revit.SDK.Samples.AppearanceAssetEditing.CS.Command
Materials
@@ -1051,7 +1035,7 @@ Material Properties (CS)
Get the material physical properties of the selected beam, column or brace.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\MaterialProperties\CS\bin\Debug\MaterialProperties.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\MaterialProperties\CS\bin\Debug\MaterialProperties.dll
Revit.SDK.Samples.MaterialProperties.CS.MaterialProperties
Materials, Parameters
@@ -1059,7 +1043,7 @@ Physical Properties
Dump Material Physical Parameters.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PhysicalProp\CS\bin\Debug\PhysicalProp.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PhysicalProp\CS\bin\Debug\PhysicalProp.dll
Revit.SDK.Samples.PhysicalProp.CS.DumpMaterialPhysicalParameters
MEP
@@ -1067,7 +1051,7 @@ AutoRoute
Route ducts and fittings.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AutoRoute\CS\bin\Debug\AutoRoute.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AutoRoute\CS\bin\Debug\AutoRoute.dll
Revit.SDK.Samples.AutoRoute.CS.Command
MEP
@@ -1075,7 +1059,7 @@ AvoidObstruction
Resolve the obstructions of pipe with pipe, pipe with beam and pipe with duct.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AvoidObstruction\CS\bin\Debug\AvoidObstruction.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AvoidObstruction\CS\bin\Debug\AvoidObstruction.dll
Revit.SDK.Samples.AvoidObstruction.CS.Command
MEP
@@ -1083,7 +1067,7 @@ Fabrication Part Layout
Fabrication Part Layout Sample
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.FabricationPartLayout
MEP
@@ -1091,7 +1075,7 @@ Optimize Straights
Optimize Straights
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.OptimizeStraights
MEP
@@ -1099,7 +1083,7 @@ Stretch and Fit
Stretch and fit
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.StretchAndFit
MEP
@@ -1107,7 +1091,7 @@ Convert To Fabrication
Convert Design Elements To Fabrication Parts
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.ConvertToFabrication
MEP
@@ -1115,7 +1099,7 @@ Buttons and Group Exclusions
Exclude Fabrication Service Buttons and Groups for Routing Operations
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.ButtonGroupExclusions
MEP
@@ -1123,7 +1107,7 @@ Ancillaries
Discover the Ancillaries Associated with a Fabrication Part
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.Ancillaries
MEP
@@ -1131,7 +1115,7 @@ Get Custom Data
Discover the Custom data Associated with a Fabrication Config and Part
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.GetCustomData
MEP
@@ -1139,7 +1123,7 @@ Set Custom Data
Set Custom data Associated with a Fabrication Config to a Selected Part
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.SetCustomData
MEP
@@ -1147,7 +1131,7 @@ Export to PCF
Exports fabrication parts to a PCF file
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.ExportToPCF
MEP
@@ -1155,7 +1139,7 @@ Export Part Geometry
Exports fabrication part geometry to a CSV file
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.FabPartGeometry
MEP
@@ -1163,7 +1147,7 @@ Display Part Info
Displays fabrication part information
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.PartInfo
MEP
@@ -1171,7 +1155,7 @@ Detach Hanger Rods
Detaches hanger rods from their structural host
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.DetachRods
MEP
@@ -1179,7 +1163,7 @@ Double Rod Lengths
Doubles the length of the picked hanger rods
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.DoubleRodLength
MEP
@@ -1187,7 +1171,7 @@ Halve Rod Lengths
Halves the length of the picked hanger rods
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.HalveRodLength
MEP
@@ -1195,7 +1179,7 @@ Increase Rod Structure Extension
Increase the length of the rod as an extension from its hosted structure (by 1ft)
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.IncreaseRodStructureExtension
MEP
@@ -1203,7 +1187,7 @@ Decrease Rod Structure Extension
Decrease the length of the rod as an extension from its hosted structure (by 1ft)
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.DecreaseRodStructureExtension
MEP
@@ -1211,7 +1195,7 @@ Part Renumber
Renumbers a selection of fabrication parts
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.PartRenumber
MEP
@@ -1219,7 +1203,7 @@ Split Straight
Splits a fabrication part straight into two equal pieces
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.SplitStraight
MEP
@@ -1227,7 +1211,7 @@ Load and Place Next Item File
Reloads the fabrication configuration and then iterates the item folders and finds the next unloaded item file and lets a user place it in the model
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.LoadAndPlaceNextItemFile
MEP
@@ -1235,7 +1219,7 @@ Unload Unused Item Files
Unloads item files that are loaded but are not used in the model
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.UnloadUnusedItemFiles
MEP
@@ -1243,7 +1227,7 @@ Export to MAJ
Export Fabrication Parts to a fabrication job (MAJ) file
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.ExportToMAJ
MEP
@@ -1251,7 +1235,7 @@ Change Service
Change the service of a selection of Fabrication Parts
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.ChangeService
MEP
@@ -1259,7 +1243,7 @@ Change Size
Change the size of a selection of Fabrication Parts
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.ChangeSize
MEP
@@ -1267,7 +1251,7 @@ Apply Change
Apply change to the service and the size of a selection of Fabrication Parts
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FabricationPartLayout\CS\bin\Debug\FabricationPartLayout.dll
Revit.SDK.Samples.FabricationPartLayout.CS.ApplyChange
MEP
@@ -1275,7 +1259,7 @@ Power Circuit
Operate power circuits.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PowerCircuit\CS\bin\Debug\PowerCircuit.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PowerCircuit\CS\bin\Debug\PowerCircuit.dll
Revit.SDK.Samples.PowerCircuit.CS.Command
MEP
@@ -1283,7 +1267,7 @@ RoutingPreferenceTools.Analyzer
RoutingPreferenceTools.Analyzer
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll
Revit.SDK.Samples.RoutingPreferenceTools.CS.Command
MEP
@@ -1291,7 +1275,7 @@ RoutingPreferenceTools.Builder.CommandReadPreferences
RoutingPreferenceTools.Builder.CommandReadPreferences
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll
Revit.SDK.Samples.RoutingPreferenceTools.CS.CommandReadPreferences
MEP
@@ -1299,7 +1283,7 @@ RoutingPreferenceTools.Builder.CommandWritePreferences
RoutingPreferenceTools.Builder.CommandWritePreferences
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll
Revit.SDK.Samples.RoutingPreferenceTools.CS.CommandWritePreferences
MEP
@@ -1307,7 +1291,7 @@ TraverseSystem
Traverse a mechanical or piping system in the direction of flow
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TraverseSystem\CS\bin\Debug\TraverseSystem.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TraverseSystem\CS\bin\Debug\TraverseSystem.dll
Revit.SDK.Samples.TraverseSystem.CS.Command
Parameters
@@ -1315,7 +1299,7 @@ Beam and slab parameter
Add a new GUID parameter to beam and slab, and use the GUID value to find the right element.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\BeamAndSlabNewParameter\CS\bin\Debug\BeamAndSlabNewParameter.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\BeamAndSlabNewParameter\CS\bin\Debug\BeamAndSlabNewParameter.dll
Revit.SDK.Samples.BeamAndSlabNewParameter.CS.Command
Parameters
@@ -1323,7 +1307,7 @@ Browse Parameter Bindings
Browse all the shared parameters bindings used in this project.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\BrowseBindings\VB.NET\bin\BrowseBindings.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\BrowseBindings\VB.NET\bin\Debug\BrowseBindings.dll
Revit.SDK.Samples.BrowseBindings.VB.NET.Command
Parameters
@@ -1331,7 +1315,7 @@ CreateShared - Create Shared Parameter
Create a new shared parameter and assign it to wall categories.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateShared\VB.NET\bin\Debug\CreateShared.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateShared\VB.NET\bin\Debug\CreateShared.dll
Revit.SDK.Samples.CreateShared.VB.NET.Command1
Parameters
@@ -1339,7 +1323,7 @@ CreateShared - Set Shared Parameter
Set the shared parameter.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateShared\VB.NET\bin\Debug\CreateShared.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateShared\VB.NET\bin\Debug\CreateShared.dll
Revit.SDK.Samples.CreateShared.VB.NET.Command2
Parameters
@@ -1347,7 +1331,7 @@ Get Deck Properties
Get deck layer properties.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DeckProperties\CS\bin\Debug\DeckProperties.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DeckProperties\CS\bin\Debug\DeckProperties.dll
Revit.SDK.Samples.DeckProperties.CS.Command
Parameters
@@ -1355,7 +1339,7 @@ FireRating - Apply Parameter
Add a new shared parameter to Revit and apply it to all doors.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FireRating\VB.NET\bin\FireRating.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FireRating\VB.NET\bin\Debug\FireRating.dll
Revit.SDK.Samples.FireRating.VB.NET.ApplyParameter
Parameters
@@ -1363,7 +1347,7 @@ FireRating - Export to Excel
Export fire rating values to an Excel file.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FireRating\VB.NET\bin\FireRating.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FireRating\VB.NET\bin\Debug\FireRating.dll
Revit.SDK.Samples.FireRating.VB.NET.ExportFireRating
Parameters
@@ -1371,7 +1355,7 @@ FireRating - Import from Excel
Import fire rating values from the Excel file and apply them to doors.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FireRating\VB.NET\bin\FireRating.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FireRating\VB.NET\bin\Debug\FireRating.dll
Revit.SDK.Samples.FireRating.VB.NET.ImportFireRating
Parameters
@@ -1379,7 +1363,7 @@ Create shared parameters
Create a visible and an invisible parameter.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\InvisibleParam\CS\bin\Debug\InvisibleParam.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\InvisibleParam\CS\bin\Debug\InvisibleParam.dll
Revit.SDK.Samples.InvisibleParam.CS.Command
Parameters
@@ -1387,7 +1371,7 @@ Element Parameters
Show the property information of selected element.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ParameterUtils\CS\bin\Debug\ParameterUtils.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ParameterUtils\CS\bin\Debug\ParameterUtils.dll
Revit.SDK.Samples.ParameterUtils.CS.Command
Parameters
@@ -1395,7 +1379,7 @@ ReadonlySharedParameters1
ReadonlySharedParameters1
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ReadonlySharedParameters\CS\bin\Debug\ReadonlySharedParameters.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ReadonlySharedParameters\CS\bin\Debug\ReadonlySharedParameters.dll
Revit.SDK.Samples.ReadonlySharedParameters.CS.SetReadonlyCost1
Parameters
@@ -1403,7 +1387,7 @@ ReadonlySharedParameters2
ReadonlySharedParameters2
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ReadonlySharedParameters\CS\bin\Debug\ReadonlySharedParameters.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ReadonlySharedParameters\CS\bin\Debug\ReadonlySharedParameters.dll
Revit.SDK.Samples.ReadonlySharedParameters.CS.SetReadonlyCost2
Parameters
@@ -1411,7 +1395,7 @@ Test Floor Thickness
Show how to retrieve and modify floor thickness.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TestFloorThickness\VB.NET\bin\Debug\TestFloorThickness.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TestFloorThickness\VB.NET\bin\Debug\TestFloorThickness.dll
Revit.SDK.Samples.TestFloorThickness.VB.NET.Command
Parameters
@@ -1419,7 +1403,7 @@ Test Wall Thickness
Show how to retrieve and modify wall thickness.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\TestWallThickness\VB.NET\bin\Debug\TestWallThickness.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\TestWallThickness\VB.NET\bin\Debug\TestWallThickness.dll
Revit.SDK.Samples.TestWallThickness.VB.NET.Command
Parameters, Structure
@@ -1427,7 +1411,7 @@ Create beams, columns and braces (CS)
Create beams, columns and braces.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateBeamsColumnsBraces\CS\bin\Debug\CreateBeamsColumnsBraces.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateBeamsColumnsBraces\CS\bin\Debug\CreateBeamsColumnsBraces.dll
Revit.SDK.Samples.CreateBeamsColumnsBraces.CS.Command
Parameters, Views
@@ -1435,7 +1419,7 @@ Create and configure new view template
Demonstrates the process of creating a new view template from a regular view.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ViewTemplateCreation\CS\bin\Debug\ViewTemplateCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ViewTemplateCreation\CS\bin\Debug\ViewTemplateCreation.dll
Revit.SDK.Samples.ViewTemplateCreation.CS.Command
Rooms/Spaces
@@ -1443,7 +1427,7 @@ Create zone and space
Create space/zone elements and edit zone in Revit MEP.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AddSpaceAndZone\CS\bin\Debug\AddSpaceAndZone.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AddSpaceAndZone\CS\bin\Debug\AddSpaceAndZone.dll
Revit.SDK.Samples.AddSpaceAndZone.CS.Command
Rooms/Spaces
@@ -1451,7 +1435,7 @@ Customize door opening expression
Customize door opening expression based on geometry and your country standard.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DoorSwing\CS\bin\Debug\DoorSwing.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DoorSwing\CS\bin\Debug\DoorSwing.dll
Revit.SDK.Samples.DoorSwing.CS.InitializeCommand
Rooms/Spaces
@@ -1459,7 +1443,7 @@ Update Door Properties
Update Door Properties according to geometries.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DoorSwing\CS\bin\Debug\DoorSwing.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DoorSwing\CS\bin\Debug\DoorSwing.dll
Revit.SDK.Samples.DoorSwing.CS.UpdateParamsCommand
Rooms/Spaces
@@ -1467,7 +1451,7 @@ Update Door Geometries
Update door geometry according to From/To room property.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\DoorSwing\CS\bin\Debug\DoorSwing.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\DoorSwing\CS\bin\Debug\DoorSwing.dll
Revit.SDK.Samples.DoorSwing.CS.UpdateGeometryCommand
Rooms/Spaces
@@ -1475,7 +1459,7 @@ Roofs Rooms (CS)
Demonstrates how to check whether Room(Space) has bounding Roof.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RoofsRooms\CS\bin\Debug\RoofsRooms.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RoofsRooms\CS\bin\Debug\RoofsRooms.dll
Revit.SDK.Samples.RoofsRooms.CS.Command
Rooms/Spaces
@@ -1483,7 +1467,7 @@ Rooms
Get and set room information (Number, Tag, Area).
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Rooms\CS\bin\Debug\Rooms.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Rooms\CS\bin\Debug\Rooms.dll
Revit.SDK.Samples.Rooms.CS.Command
Rooms/Spaces
@@ -1491,7 +1475,7 @@ Room Schedule
Room Schedule.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RoomSchedule\CS\bin\Debug\RoomSchedule.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RoomSchedule\CS\bin\Debug\RoomSchedule.dll
Revit.SDK.Samples.RoomSchedule.Command
Selection
@@ -1499,7 +1483,7 @@ Pick for Deletion
This command is to pick element and delete.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Selections\CS\bin\Debug\Selections.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Selections\CS\bin\Debug\Selections.dll
Revit.SDK.Samples.Selections.CS.PickforDeletion
Selection
@@ -1507,7 +1491,7 @@ Place At Point On Wall Face
This command is to pick a point on wall face and place a window.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Selections\CS\bin\Debug\Selections.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Selections\CS\bin\Debug\Selections.dll
Revit.SDK.Samples.Selections.CS.PlaceAtPointOnWallFace
Selection
@@ -1515,7 +1499,7 @@ Place At Picked Face Work plane
This command is to pick a face, set work plane, then pick a point to create a circle.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Selections\CS\bin\Debug\Selections.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Selections\CS\bin\Debug\Selections.dll
Revit.SDK.Samples.Selections.CS.PlaceAtPickedFaceWorkplane
Selection
@@ -1523,7 +1507,7 @@ Selection Dialog
This command is to pick a element and a point from dialog.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Selections\CS\bin\Debug\Selections.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Selections\CS\bin\Debug\Selections.dll
Revit.SDK.Samples.Selections.CS.SelectionDialog
Structure
@@ -1531,7 +1515,7 @@ Analytical SupportData Information
Displays the element's support information
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AnalyticalSupportData_Info\CS\bin\Debug\AnalyticalSupportData_Info.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AnalyticalSupportData_Info\CS\bin\Debug\AnalyticalSupportData_Info.dll
Revit.SDK.Samples.AnalyticalSupportData_Info.CS.Command
Structure
@@ -1539,7 +1523,7 @@ AreaReinCurve
Turn off all layers but one. You get some parallel bars. Remove the hooks from one boundary curve so that the bars have hooks only at the other end.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AreaReinCurve\CS\bin\Debug\AreaReinCurve.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AreaReinCurve\CS\bin\Debug\AreaReinCurve.dll
Revit.SDK.Samples.AreaReinCurve.CS.Command
Structure
@@ -1547,7 +1531,7 @@ AreaReinParameters
Show parameters of selected AreaReinforcement and allow user to modify
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AreaReinParameters\CS\bin\Debug\AreaReinParameters.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AreaReinParameters\CS\bin\Debug\AreaReinParameters.dll
Revit.SDK.Samples.AreaReinParameters.CS.Command
Structure
@@ -1555,7 +1539,7 @@ RebarParameters
Show all parameters of selected Rebar
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AreaReinParameters\CS\bin\Debug\AreaReinParameters.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AreaReinParameters\CS\bin\Debug\AreaReinParameters.dll
Revit.SDK.Samples.AreaReinParameters.CS.RebarParas
Structure
@@ -1563,7 +1547,7 @@ Boundary Conditions
Display the BoundaryConditions' parameters or create a new BoundaryConditions instance.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\BoundaryConditions\CS\bin\Debug\BoundaryConditions.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\BoundaryConditions\CS\bin\Debug\BoundaryConditions.dll
Revit.SDK.Samples.BoundaryConditions.CS.Command
Structure
@@ -1571,7 +1555,7 @@ Create Beam System
Create beam system according to the profile made of selected beams.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateBeamSystem\CS\bin\Debug\CreateBeamSystem.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateBeamSystem\CS\bin\Debug\CreateBeamSystem.dll
Revit.SDK.Samples.CreateBeamSystem.CS.Command
Structure
@@ -1579,7 +1563,7 @@ Create Complex Area Reinforcement
Create complex AreaReinforcement on selected slab.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateComplexAreaRein\CS\bin\Debug\CreateComplexAreaRein.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateComplexAreaRein\CS\bin\Debug\CreateComplexAreaRein.dll
Revit.SDK.Samples.CreateComplexAreaRein.CS.Command
Structure
@@ -1587,7 +1571,7 @@ Create simple area reinforcement
Create simple AreaReinforcement on selected wall or floor.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateSimpleAreaRein\CS\bin\Debug\CreateSimpleAreaRein.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateSimpleAreaRein\CS\bin\Debug\CreateSimpleAreaRein.dll
Revit.SDK.Samples.CreateSimpleAreaRein.CS.Command
Structure
@@ -1595,7 +1579,7 @@ Create wall in beam profile
Create a profiled wall using the outline generated by a selection of beams defining a vertical profile.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateWallinBeamProfile\CS\bin\Debug\CreateWallinBeamProfile.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateWallinBeamProfile\CS\bin\Debug\CreateWallinBeamProfile.dll
Revit.SDK.Samples.CreateWallinBeamProfile.CS.CreateWallinBeamProfile
Structure
@@ -1603,7 +1587,7 @@ Create walls under beams
Create simple rectangular walls along and under the path of selected beams.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateWallsUnderBeams\CS\bin\Debug\CreateWallsUnderBeams.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateWallsUnderBeams\CS\bin\Debug\CreateWallsUnderBeams.dll
Revit.SDK.Samples.CreateWallsUnderBeams.CS.CreateWallsUnderBeams
Structure
@@ -1611,7 +1595,7 @@ Create Curved Beam
Create Curved Beam.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CurvedBeam\CS\bin\Debug\CurvedBeam.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CurvedBeam\CS\bin\Debug\CurvedBeam.dll
Revit.SDK.Samples.CurvedBeam.CS.Command
Structure
@@ -1619,7 +1603,7 @@ Frame Builder
Add a new concrete column and beam size.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\FrameBuilder\CS\bin\Debug\FrameBuilder.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\FrameBuilder\CS\bin\Debug\FrameBuilder.dll
Revit.SDK.Samples.FrameBuilder.CS.Command
Structure
@@ -1627,7 +1611,7 @@ Structural connection basic operations
Shows how to perform basic operations on a structural connection.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\GenericStructuralConnection\CS\bin\Debug\GenericStructuralConnection.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\GenericStructuralConnection\CS\bin\Debug\GenericStructuralConnection.dll
Revit.SDK.Samples.GenericStructuralConnection.CS.Command
Structure
@@ -1635,7 +1619,7 @@ Loads
Show how to use load case, nature, usage and combination.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Loads\CS\bin\Debug\Loads.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Loads\CS\bin\Debug\Loads.dll
Revit.SDK.Samples.Loads.CS.Loads
Structure
@@ -1643,7 +1627,7 @@ Multiplanar Rebar
Demonstrates how to create multiplanar rebar.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\MultiplanarRebar\CS\bin\Debug\MultiplanarRebar.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\MultiplanarRebar\CS\bin\Debug\MultiplanarRebar.dll
Revit.SDK.Samples.MultiplanarRebar.CS.Command
Structure
@@ -1651,7 +1635,7 @@ NewRebar
Create a rebar on the selected concrete rectangular column or beam.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\NewRebar\CS\bin\Debug\NewRebar.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\NewRebar\CS\bin\Debug\NewRebar.dll
Revit.SDK.Samples.NewRebar.CS.Command
Structure
@@ -1659,7 +1643,7 @@ PathReinforcement
Display path reinforcement properties.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\PathReinforcement\CS\bin\Debug\PathReinforcement.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\PathReinforcement\CS\bin\Debug\PathReinforcement.dll
Revit.SDK.Samples.PathReinforcement.CS.Command
Structure
@@ -1667,7 +1651,7 @@ RebarContainerAnyShapeType
Create Rebar Container in a selected concrete element (beam or column) that does not have any reinforcement.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RebarContainerAnyShapeType\CS\bin\Debug\RebarContainerAnyShapeType.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RebarContainerAnyShapeType\CS\bin\Debug\RebarContainerAnyShapeType.dll
Revit.SDK.Samples.RebarContainerAnyShapeType.CS.Command
Structure
@@ -1675,7 +1659,7 @@ Rebar Free Form
External command to create a Rebar FreeForm element and external application to implement the custom server used to regenerate the rebar geometry based on constraints
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\RebarFreeForm\CS\bin\Debug\RebarFreeForm.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\RebarFreeForm\CS\bin\Debug\RebarFreeForm.dll
Revit.SDK.Samples.RebarFreeForm.CS.Command
Structure
@@ -1683,7 +1667,7 @@ Reinforcement
Create bar set in a selected concrete element (beam or column) that does not have any reinforcement.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\Reinforcement\CS\bin\Debug\Reinforcement.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\Reinforcement\CS\bin\Debug\Reinforcement.dll
Revit.SDK.Samples.Reinforcement.CS.Command
Structure
@@ -1691,7 +1675,7 @@ Add elements to connection
Add elements to existing structural connection
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.AddElementsToConnection.CS.Command
Structure
@@ -1699,7 +1683,7 @@ Add elements to custom connection
Add elements to existing custom connection
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.AddElementsToCustomConnection.CS.Command
Structure
@@ -1707,7 +1691,7 @@ Create anchor pattern
Create anchor pattern
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateAnchorPattern.CS.Command
Structure
@@ -1715,7 +1699,7 @@ Create bolt pattern
Create bolt pattern
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateBoltPattern.CS.Command
Structure
@@ -1723,7 +1707,7 @@ Create contour cut
Create contour cut
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateContourCut.CS.Command
Structure
@@ -1731,7 +1715,7 @@ Create cope skewed
Create cope skewed
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateCopeSkewed.CS.Command
Structure
@@ -1739,7 +1723,7 @@ Create corner cut
Create corner cut
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateCornerCut.CS.Command
Structure
@@ -1747,7 +1731,7 @@ Create plate
Create plate
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreatePlate.CS.Command
Structure
@@ -1755,7 +1739,7 @@ Create plate hole
Create plate hole
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreatePlateHole.CS.Command
Structure
@@ -1763,7 +1747,7 @@ Create shear stud pattern
Create shear stud pattern
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateShearStudPattern.CS.Command
Structure
@@ -1771,7 +1755,7 @@ Create shortening
Create shortening
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateShortening.CS.Command
Structure
@@ -1779,7 +1763,7 @@ Create weld point
Create weld point
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.CreateWeldPoint.CS.Command
Structure
@@ -1787,7 +1771,7 @@ Delete connection
Delete connection
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.DeleteConnection.CS.Command
Structure
@@ -1795,7 +1779,7 @@ Remove elements from structural connection
Remove elements from structural connection
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.RemoveElementsFromConnection.CS.Command
Structure
@@ -1803,7 +1787,7 @@ Remove subelements from custom connection
Remove subelements from custom connection
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.RemoveSubelementsFromCustomConnection.CS.Command
Structure
@@ -1811,7 +1795,7 @@ Print connection detailed parameters
Print connection detailed parameters
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.UpdateConnectionDetailedParameters.CS.Command
Structure
@@ -1819,7 +1803,7 @@ Fabrication transaction and background calculation
Shows how to handle "Background calculation in progress" exception when trying to start fabrication transaction
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\SampleCommandsSteelElements\CS\bin\Debug\SampleCommandsSteelElements.dll
Revit.SDK.Samples.SampleCommandsSteelElements.BackgroundCalculation.CS.Command
Structure
@@ -1827,7 +1811,7 @@ StructSample - Frame Wall
Add columns to the selected walls.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\StructSample\CS\bin\Debug\StructSample.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\StructSample\CS\bin\Debug\StructSample.dll
Revit.SDK.Samples.StructSample.CS.Command
Structure
@@ -1835,7 +1819,7 @@ Structural Layer Function (CS)
For the selected floor, display the function of each structural layer from outside to inside in a dialog box.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\StructuralLayerFunction\CS\bin\Debug\StructuralLayerFunction.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\StructuralLayerFunction\CS\bin\Debug\StructuralLayerFunction.dll
Revit.SDK.Samples.StructuralLayerFunction.CS.Command
Views
@@ -1843,7 +1827,7 @@ All Views
Generate a new sheet for user selected views
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\AllViews\CS\bin\Debug\AllViews.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\AllViews\CS\bin\Debug\AllViews.dll
Revit.SDK.Samples.AllViews.CS.Command
Views
@@ -1851,7 +1835,7 @@ Create view section
Create a section view across the mid point of the selected wall, floor or beam
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateViewSection\CS\bin\Debug\CreateViewSection.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateViewSection\CS\bin\Debug\CreateViewSection.dll
Revit.SDK.Samples.CreateViewSection.CS.Command
Views
@@ -1859,7 +1843,7 @@ Create drafting view
Create a new empty drafting view
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\CreateViewSection\CS\bin\Debug\CreateViewSection.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\CreateViewSection\CS\bin\Debug\CreateViewSection.dll
Revit.SDK.Samples.CreateViewSection.CS.CreateDraftingView
Views
@@ -1867,7 +1851,7 @@ Object Viewer
Display the selected element in a preview window and generic properties in a grid.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ObjectViewer\CS\bin\Debug\ObjectViewer.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ObjectViewer\CS\bin\Debug\ObjectViewer.dll
Revit.SDK.Samples.ObjectViewer.CS.Command
Views
@@ -1875,7 +1859,7 @@ ScheduleAPI
This sample introduces how to create a view schedule and how to show its data on a sheet.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\ScheduleCreation\CS\bin\Debug\ScheduleCreation.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\ScheduleCreation\CS\bin\Debug\ScheduleCreation.dll
Revit.SDK.Samples.ScheduleCreation.CS.Command
Views
@@ -1883,8 +1867,6 @@ Visibility Controller
Control element visibility by category.
LargeImage:
Image:
-Y:\a\src\rvt\RevitSdkSamples\SDK\Samples\VisibilityControl\CS\bin\Debug\VisibilityControl.dll
+C:\Revit SDK 2020\Software Development Kit\Samples\VisibilityControl\CS\bin\Debug\VisibilityControl.dll
Revit.SDK.Samples.VisibilityControl.CS.Command
-#include Y:\a\src\rvt\AdnRevitApiLabsXtra/AdnSamples.txt
-#include Y:\a\src\rvt\the_building_coder_samples\BcSamples.txt
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/BackgroundCalculation.cs b/SDK/Samples/SampleCommandsSteelElements/CS/BackgroundCalculation.cs
index 6c4f2219..0d286733 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/BackgroundCalculation.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/BackgroundCalculation.cs
@@ -25,7 +25,7 @@ using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Events;
using Autodesk.Revit.DB.Steel;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
using Autodesk.AdvanceSteel.CADLink.Database;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateAnchorPattern.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateAnchorPattern.cs
index 4651a405..11b4f15d 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateAnchorPattern.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateAnchorPattern.cs
@@ -25,7 +25,7 @@ using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Collections.Generic;
@@ -81,7 +81,7 @@ namespace Revit.SDK.Samples.SampleCommandsSteelElements.CreateAnchorPattern.CS
{
// We create the anchor pattern using Advance Steel classes and objects only.
// for more details, please consult http://www.autodesk.com/adv-steel-api-walkthroughs-2019-enu
- HashSet filerObjectHashSet = new HashSet();
+ List filerObjectList= new List();
FilerObject filerObj = Utilities.Functions.GetFilerObject(doc, eRef);
if (null == filerObj)
@@ -89,13 +89,13 @@ namespace Revit.SDK.Samples.SampleCommandsSteelElements.CreateAnchorPattern.CS
return Result.Failed;
}
- filerObjectHashSet.Add(filerObj);
+ filerObjectList.Add(filerObj);
// Point of reference for the anchor pattern. We use GlobalPoint to create the pattern on the plate. GlobalPoint is the point where the plate is being hit when selected.
Point3d p1 = new Point3d(eRef.GlobalPoint.X, eRef.GlobalPoint.Y, eRef.GlobalPoint.Z);
Point3d p2 = new Point3d(p1.x + 0.5, p1.y + 0.5, p1.z + 0.5);
AnchorPattern anchorPattern = new AnchorPattern(p1 * Utilities.Functions.FEET_TO_MM, p2 * Utilities.Functions.FEET_TO_MM, new Vector3d(1, 0, 0), new Vector3d(0, 1, 0));
- anchorPattern.Connect(filerObjectHashSet, Autodesk.AdvanceSteel.ConstructionTypes.AtomicElement.eAssemblyLocation.kOnSite);
+ anchorPattern.Connect(filerObjectList.ToArray(), Autodesk.AdvanceSteel.ConstructionTypes.AtomicElement.eAssemblyLocation.kOnSite);
anchorPattern.WriteToDb();
trans.Commit();
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateBoltPattern.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateBoltPattern.cs
index 15366ada..2a2b4b2f 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateBoltPattern.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateBoltPattern.cs
@@ -25,7 +25,7 @@ using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Collections.Generic;
@@ -83,17 +83,17 @@ namespace Revit.SDK.Samples.SampleCommandsSteelElements.CreateBoltPattern.CS
{
// Creating the bolt pattern using AdvanceSteel's classes and objects.
// for more details, please consult http://www.autodesk.com/adv-steel-api-walkthroughs-2019-enu
- HashSet filerObjectHashSet = new HashSet();
+ List filerObjectList = new List();
FilerObject filerObj = Utilities.Functions.GetFilerObject(doc, eRef);
if (null == filerObj)
{
return Result.Failed;
}
- filerObjectHashSet.Add(filerObj);
+ filerObjectList.Add(filerObj);
FinitRectScrewBoltPattern boltPattern = new FinitRectScrewBoltPattern(p1 * Utilities.Functions.FEET_TO_MM, p2 * Utilities.Functions.FEET_TO_MM, new Vector3d(1, 0, 0), new Vector3d(0, 1, 0));
- boltPattern.Connect(filerObjectHashSet, Autodesk.AdvanceSteel.ConstructionTypes.AtomicElement.eAssemblyLocation.kOnSite);
+ boltPattern.Connect(filerObjectList.ToArray(), Autodesk.AdvanceSteel.ConstructionTypes.AtomicElement.eAssemblyLocation.kOnSite);
boltPattern.WriteToDb();
trans.Commit();
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateContourCut.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateContourCut.cs
index c9327e84..7249b70e 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateContourCut.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateContourCut.cs
@@ -26,7 +26,7 @@ using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.Revit.DB.Steel;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Collections.Generic;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateCopeSkewed.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateCopeSkewed.cs
index 31d93a25..56b82055 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateCopeSkewed.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateCopeSkewed.cs
@@ -25,7 +25,7 @@ using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.Revit.DB.Steel;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Collections.Generic;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateCornerCut.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateCornerCut.cs
index 0f7f7aa8..ce8c99d0 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateCornerCut.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateCornerCut.cs
@@ -25,7 +25,7 @@ using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlate.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlate.cs
index eff15d93..ba671a21 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlate.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlate.cs
@@ -23,7 +23,7 @@
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.AdvanceSteel.CADLink.Database;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlateHole.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlateHole.cs
index 27c91b91..eafcfda5 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlateHole.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreatePlateHole.cs
@@ -25,7 +25,7 @@ using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.AdvanceSteel.Arrangement;
using Autodesk.AdvanceSteel.Contours;
using Autodesk.Revit.DB;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateShearStudPattern.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateShearStudPattern.cs
index a900d1f4..c0718319 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateShearStudPattern.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateShearStudPattern.cs
@@ -24,7 +24,7 @@
using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.Geometry;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.AdvanceSteel.Arrangement;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateShortening.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateShortening.cs
index d247273b..f592d5c9 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateShortening.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateShortening.cs
@@ -25,7 +25,7 @@ using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.Revit.DB.Steel;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Collections.Generic;
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/CreateWeldPoint.cs b/SDK/Samples/SampleCommandsSteelElements/CS/CreateWeldPoint.cs
index 7e5c668a..8513e13f 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/CreateWeldPoint.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/CreateWeldPoint.cs
@@ -26,7 +26,7 @@ using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.Revit.DB.Steel;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Collections.Generic;
@@ -114,9 +114,9 @@ namespace Revit.SDK.Samples.SampleCommandsSteelElements.CreateWeldPoint.CS
if (null != weld)
{
weld.WriteToDb();
- HashSet objsToConnect = new HashSet();
+ List objsToConnect = new List();
objsToConnect.Add(filerObj);
- weld.Connect(objsToConnect, Autodesk.AdvanceSteel.ConstructionTypes.AtomicElement.eAssemblyLocation.kInShop);
+ weld.Connect(objsToConnect.ToArray(), Autodesk.AdvanceSteel.ConstructionTypes.AtomicElement.eAssemblyLocation.kInShop);
}
trans.Commit();
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/SampleCommandsSteelElements.csproj b/SDK/Samples/SampleCommandsSteelElements/CS/SampleCommandsSteelElements.csproj
index acabb611..adae8c26 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/SampleCommandsSteelElements.csproj
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/SampleCommandsSteelElements.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
SampleCommandsSteelElements
- v4.7
+ v4.8
true
@@ -29,8 +23,7 @@
prompt
4
true
-
-
+ bin\Debug\SampleCommandsSteelElements.XML
pdbonly
@@ -94,4 +87,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/SampleCommandsSteelElements/CS/UpdateConnectionDetailedParameters.cs b/SDK/Samples/SampleCommandsSteelElements/CS/UpdateConnectionDetailedParameters.cs
index 03c71ef6..50ff7fbc 100644
--- a/SDK/Samples/SampleCommandsSteelElements/CS/UpdateConnectionDetailedParameters.cs
+++ b/SDK/Samples/SampleCommandsSteelElements/CS/UpdateConnectionDetailedParameters.cs
@@ -8,7 +8,7 @@ using Autodesk.Revit.UI.Selection;
using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
-using RvtDwgAddon;
+using Autodesk.SteelConnectionsDB;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Structure;
using Autodesk.Revit.UI;
@@ -25,6 +25,22 @@ namespace Revit.SDK.Samples.SampleCommandsSteelElements.UpdateConnectionDetailed
[Autodesk.Revit.Attributes.Journaling(Autodesk.Revit.Attributes.JournalingMode.NoCommandData)]
public class Command : IExternalCommand
{
+ ///
+ /// Implement this method as an external command for Revit.
+ ///
+ /// An object that is passed to the external application
+ /// which contains data related to the command,
+ /// such as the application object and active view.
+ /// A message that can be set by the external application
+ /// which will be displayed if a failure or cancellation is returned by
+ /// the external command.
+ /// A set of elements to which the external application
+ /// can add elements that are to be highlighted in case of failure or cancellation.
+ /// Return the status of the external command.
+ /// A result of Succeeded means that the API external method functioned as expected.
+ /// Cancelled can be used to signify that the user cancelled the external operation
+ /// at some point. Failure should be returned if the application is unable to proceed with
+ /// the operation.
public virtual Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIDocument activeDoc = commandData.Application.ActiveUIDocument;
diff --git a/SDK/Samples/ScheduleAutomaticFormatter/CS/ScheduleAutomaticFormatter.csproj b/SDK/Samples/ScheduleAutomaticFormatter/CS/ScheduleAutomaticFormatter.csproj
index 8c727344..4250cd84 100644
--- a/SDK/Samples/ScheduleAutomaticFormatter/CS/ScheduleAutomaticFormatter.csproj
+++ b/SDK/Samples/ScheduleAutomaticFormatter/CS/ScheduleAutomaticFormatter.csproj
@@ -12,7 +12,7 @@
ScheduleAutomaticFormatter
- v4.7
+ v4.8
diff --git a/SDK/Samples/ScheduleCreation/CS/ScheduleCreation.csproj b/SDK/Samples/ScheduleCreation/CS/ScheduleCreation.csproj
index f4e0e465..2c584776 100644
--- a/SDK/Samples/ScheduleCreation/CS/ScheduleCreation.csproj
+++ b/SDK/Samples/ScheduleCreation/CS/ScheduleCreation.csproj
@@ -12,7 +12,7 @@
ScheduleCreation
- v4.7
+ v4.8
diff --git a/SDK/Samples/ScheduleToHTML/CS/ScheduleToHTML.csproj b/SDK/Samples/ScheduleToHTML/CS/ScheduleToHTML.csproj
index acef3382..df487b6d 100644
--- a/SDK/Samples/ScheduleToHTML/CS/ScheduleToHTML.csproj
+++ b/SDK/Samples/ScheduleToHTML/CS/ScheduleToHTML.csproj
@@ -12,7 +12,7 @@
ScheduleToHTML
- v4.7
+ v4.8
diff --git a/SDK/Samples/Selections/CS/Selections.csproj b/SDK/Samples/Selections/CS/Selections.csproj
index f7a61843..5e994d51 100644
--- a/SDK/Samples/Selections/CS/Selections.csproj
+++ b/SDK/Samples/Selections/CS/Selections.csproj
@@ -10,7 +10,7 @@
Properties
Selections
Selections
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/ShaftHolePuncher/CS/ShaftHolePuncher.csproj b/SDK/Samples/ShaftHolePuncher/CS/ShaftHolePuncher.csproj
index 7778689b..88fc9cb4 100644
--- a/SDK/Samples/ShaftHolePuncher/CS/ShaftHolePuncher.csproj
+++ b/SDK/Samples/ShaftHolePuncher/CS/ShaftHolePuncher.csproj
@@ -10,7 +10,7 @@
Properties
ShaftHolePuncher
ShaftHolePuncher
- v4.7
+ v4.8
diff --git a/SDK/Samples/SharedCoordinateSystem/CS/SharedCoordinateSystem.csproj b/SDK/Samples/SharedCoordinateSystem/CS/SharedCoordinateSystem.csproj
index 2432fbc5..2c5b4bc0 100644
--- a/SDK/Samples/SharedCoordinateSystem/CS/SharedCoordinateSystem.csproj
+++ b/SDK/Samples/SharedCoordinateSystem/CS/SharedCoordinateSystem.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/SinePlotter/CS/SinePlotter.csproj b/SDK/Samples/SinePlotter/CS/SinePlotter.csproj
index ea5328f9..2e149d77 100644
--- a/SDK/Samples/SinePlotter/CS/SinePlotter.csproj
+++ b/SDK/Samples/SinePlotter/CS/SinePlotter.csproj
@@ -12,7 +12,7 @@
SinePlotter
- v4.7
+ v4.8
diff --git a/SDK/Samples/Site/CS/Site.csproj b/SDK/Samples/Site/CS/Site.csproj
index bea6b944..5f4c11b3 100644
--- a/SDK/Samples/Site/CS/Site.csproj
+++ b/SDK/Samples/Site/CS/Site.csproj
@@ -12,7 +12,7 @@
Site
- v4.7
+ v4.8
diff --git a/SDK/Samples/SlabProperties/CS/SlabProperties.csproj b/SDK/Samples/SlabProperties/CS/SlabProperties.csproj
index 1c5c595e..da319a47 100644
--- a/SDK/Samples/SlabProperties/CS/SlabProperties.csproj
+++ b/SDK/Samples/SlabProperties/CS/SlabProperties.csproj
@@ -27,7 +27,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/SlabProperties/VB.NET/SlabProperties.vbproj b/SDK/Samples/SlabProperties/VB.NET/SlabProperties.vbproj
index 5621f0ba..d1cad7a6 100644
--- a/SDK/Samples/SlabProperties/VB.NET/SlabProperties.vbproj
+++ b/SDK/Samples/SlabProperties/VB.NET/SlabProperties.vbproj
@@ -30,7 +30,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/SlabShapeEditing/CS/SlabShapeEditing.csproj b/SDK/Samples/SlabShapeEditing/CS/SlabShapeEditing.csproj
index 8a56b485..29fdc89c 100644
--- a/SDK/Samples/SlabShapeEditing/CS/SlabShapeEditing.csproj
+++ b/SDK/Samples/SlabShapeEditing/CS/SlabShapeEditing.csproj
@@ -10,7 +10,7 @@
Properties
SlabShapeEditing
SlabShapeEditing
- v4.7
+ v4.8
diff --git a/SDK/Samples/SolidSolidCut/CS/SolidSolidCut.csproj b/SDK/Samples/SolidSolidCut/CS/SolidSolidCut.csproj
index ea329ee6..4937c6dc 100644
--- a/SDK/Samples/SolidSolidCut/CS/SolidSolidCut.csproj
+++ b/SDK/Samples/SolidSolidCut/CS/SolidSolidCut.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.SolidSolidCut.CS
SolidSolidCut
- v4.7
+ v4.8
diff --git a/SDK/Samples/SpanDirection/CS/SpanDirection.csproj b/SDK/Samples/SpanDirection/CS/SpanDirection.csproj
index 3bef9325..85ddd385 100644
--- a/SDK/Samples/SpanDirection/CS/SpanDirection.csproj
+++ b/SDK/Samples/SpanDirection/CS/SpanDirection.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.SpanDirection.CS
SpanDirection
- v4.7
+ v4.8
diff --git a/SDK/Samples/SpotDimension/CS/SpotDimension.csproj b/SDK/Samples/SpotDimension/CS/SpotDimension.csproj
index 02331d60..de29b01d 100644
--- a/SDK/Samples/SpotDimension/CS/SpotDimension.csproj
+++ b/SDK/Samples/SpotDimension/CS/SpotDimension.csproj
@@ -10,7 +10,7 @@
Properties
SpotDimension
SpotDimension
- v4.7
+ v4.8
diff --git a/SDK/Samples/StairsAutomation/CS/StairsAutomation.csproj b/SDK/Samples/StairsAutomation/CS/StairsAutomation.csproj
index f3db93a1..497f41c4 100644
--- a/SDK/Samples/StairsAutomation/CS/StairsAutomation.csproj
+++ b/SDK/Samples/StairsAutomation/CS/StairsAutomation.csproj
@@ -12,7 +12,7 @@
StairsAutomation
- v4.7
+ v4.8
diff --git a/SDK/Samples/StructSample/CS/StructSample.csproj b/SDK/Samples/StructSample/CS/StructSample.csproj
index 542d2e87..bdb1f662 100644
--- a/SDK/Samples/StructSample/CS/StructSample.csproj
+++ b/SDK/Samples/StructSample/CS/StructSample.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.StructSample.CS
StructSample
- v4.7
+ v4.8
diff --git a/SDK/Samples/StructuralLayerFunction/CS/StructuralLayerFunction.csproj b/SDK/Samples/StructuralLayerFunction/CS/StructuralLayerFunction.csproj
index c1fcf7a0..f7cf1044 100644
--- a/SDK/Samples/StructuralLayerFunction/CS/StructuralLayerFunction.csproj
+++ b/SDK/Samples/StructuralLayerFunction/CS/StructuralLayerFunction.csproj
@@ -27,7 +27,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/StructuralLayerFunction/VB.NET/StructuralLayerFunction.vbproj b/SDK/Samples/StructuralLayerFunction/VB.NET/StructuralLayerFunction.vbproj
index 46b97487..09d98948 100644
--- a/SDK/Samples/StructuralLayerFunction/VB.NET/StructuralLayerFunction.vbproj
+++ b/SDK/Samples/StructuralLayerFunction/VB.NET/StructuralLayerFunction.vbproj
@@ -30,7 +30,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/TagBeam/CS/TagBeam.csproj b/SDK/Samples/TagBeam/CS/TagBeam.csproj
index 24b14193..c4b1d714 100644
--- a/SDK/Samples/TagBeam/CS/TagBeam.csproj
+++ b/SDK/Samples/TagBeam/CS/TagBeam.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.TagBeam.CS
TagBeam
- v4.7
+ v4.8
diff --git a/SDK/Samples/TestFloorThickness/VB.NET/TestFloorThickness.vbproj b/SDK/Samples/TestFloorThickness/VB.NET/TestFloorThickness.vbproj
index d77a99c5..f822186f 100644
--- a/SDK/Samples/TestFloorThickness/VB.NET/TestFloorThickness.vbproj
+++ b/SDK/Samples/TestFloorThickness/VB.NET/TestFloorThickness.vbproj
@@ -10,7 +10,7 @@
Revit.SDK.Samples.TestFloorThickness.VB.NET
TestFloorThickness
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/TestWallThickness/VB.NET/TestWallThickness.vbproj b/SDK/Samples/TestWallThickness/VB.NET/TestWallThickness.vbproj
index ac11e89c..957354a1 100644
--- a/SDK/Samples/TestWallThickness/VB.NET/TestWallThickness.vbproj
+++ b/SDK/Samples/TestWallThickness/VB.NET/TestWallThickness.vbproj
@@ -10,7 +10,7 @@
Revit.SDK.Samples.TestWallThickness.VB.NET
TestWallThickness
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/TransactionControl/CS/TransactionControl.csproj b/SDK/Samples/TransactionControl/CS/TransactionControl.csproj
index 646aaab3..73e755ee 100644
--- a/SDK/Samples/TransactionControl/CS/TransactionControl.csproj
+++ b/SDK/Samples/TransactionControl/CS/TransactionControl.csproj
@@ -10,7 +10,7 @@
Properties
TransactionControl
TransactionControl
- v4.7
+ v4.8
diff --git a/SDK/Samples/TraverseSystem/CS/TraverseSystem.csproj b/SDK/Samples/TraverseSystem/CS/TraverseSystem.csproj
index 34891cdb..4ac4d964 100644
--- a/SDK/Samples/TraverseSystem/CS/TraverseSystem.csproj
+++ b/SDK/Samples/TraverseSystem/CS/TraverseSystem.csproj
@@ -10,7 +10,7 @@
Properties
TraverseSystem
TraverseSystem
- v4.7
+ v4.8
diff --git a/SDK/Samples/Truss/CS/Truss.csproj b/SDK/Samples/Truss/CS/Truss.csproj
index cfeb65ed..4504783c 100644
--- a/SDK/Samples/Truss/CS/Truss.csproj
+++ b/SDK/Samples/Truss/CS/Truss.csproj
@@ -10,7 +10,7 @@
Properties
Truss
Truss
- v4.7
+ v4.8
diff --git a/SDK/Samples/TypeSelector/VB.NET/TypeSelector.vbproj b/SDK/Samples/TypeSelector/VB.NET/TypeSelector.vbproj
index dfe7412b..de0e5ad9 100644
--- a/SDK/Samples/TypeSelector/VB.NET/TypeSelector.vbproj
+++ b/SDK/Samples/TypeSelector/VB.NET/TypeSelector.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/UIAPI/CS/UIAPI.csproj b/SDK/Samples/UIAPI/CS/UIAPI.csproj
index 0cac586e..ce66f6bc 100644
--- a/SDK/Samples/UIAPI/CS/UIAPI.csproj
+++ b/SDK/Samples/UIAPI/CS/UIAPI.csproj
@@ -10,7 +10,7 @@
Properties
Revit.SDK.Samples.UIAPI.CS
UIAPI
- v4.7
+ v4.8
512
diff --git a/SDK/Samples/Units/CS/FormatForm.cs b/SDK/Samples/Units/CS/FormatForm.cs
index 399bffcc..16ea7e4c 100644
--- a/SDK/Samples/Units/CS/FormatForm.cs
+++ b/SDK/Samples/Units/CS/FormatForm.cs
@@ -39,7 +39,7 @@ namespace Revit.SDK.Samples.Units.CS
public partial class FormatForm : Form
{
//Required designer variable.
- private Autodesk.Revit.DB.UnitType m_unittype;
+ private Autodesk.Revit.DB.ForgeTypeId m_specTypeId;
private Autodesk.Revit.DB.FormatOptions m_formatoptions;
///
@@ -57,11 +57,11 @@ namespace Revit.SDK.Samples.Units.CS
/// Initialize GUI with FormatData
///
///// relevant data from revit
- public FormatForm(Autodesk.Revit.DB.UnitType unittype, Autodesk.Revit.DB.FormatOptions formatoptions)
+ public FormatForm(Autodesk.Revit.DB.ForgeTypeId specTypeId, Autodesk.Revit.DB.FormatOptions formatoptions)
{
InitializeComponent();
- m_unittype = unittype;
- m_formatoptions = new Autodesk.Revit.DB.FormatOptions(formatoptions.DisplayUnits, formatoptions.UnitSymbol);
+ m_specTypeId = specTypeId;
+ m_formatoptions = new Autodesk.Revit.DB.FormatOptions(formatoptions.GetUnitTypeId(), formatoptions.GetSymbolTypeId());
m_formatoptions.UseDefault = formatoptions.UseDefault;
m_formatoptions.Accuracy = formatoptions.Accuracy;
m_formatoptions.SuppressTrailingZeros = formatoptions.SuppressTrailingZeros;
@@ -86,12 +86,12 @@ namespace Revit.SDK.Samples.Units.CS
// Initialize the combo box and check box.
this.DisplayUnitTypecomboBox.BeginUpdate();
this.DisplayUnitcomboBox.BeginUpdate();
- foreach (Autodesk.Revit.DB.DisplayUnitType displayUnitType in Autodesk.Revit.DB.UnitUtils.GetValidDisplayUnits(m_unittype))
+ foreach (Autodesk.Revit.DB.ForgeTypeId unitTypeId in Autodesk.Revit.DB.UnitUtils.GetValidUnits(m_specTypeId))
{
- this.DisplayUnitTypecomboBox.Items.AddRange(new object[] { displayUnitType });
- this.DisplayUnitcomboBox.Items.Add(Autodesk.Revit.DB.LabelUtils.GetLabelFor(displayUnitType));
+ this.DisplayUnitTypecomboBox.Items.AddRange(new object[] { unitTypeId });
+ this.DisplayUnitcomboBox.Items.Add(Autodesk.Revit.DB.LabelUtils.GetLabelForUnit(unitTypeId));
}
- this.DisplayUnitTypecomboBox.SelectedItem = m_formatoptions.DisplayUnits;
+ this.DisplayUnitTypecomboBox.SelectedItem = m_formatoptions.GetUnitTypeId();
this.DisplayUnitcomboBox.SelectedIndex = this.DisplayUnitTypecomboBox.SelectedIndex;
this.DisplayUnitTypecomboBox.EndUpdate();
this.DisplayUnitcomboBox.EndUpdate();
@@ -107,7 +107,7 @@ namespace Revit.SDK.Samples.Units.CS
m_formatoptions.UseDefault = isUseDefault;
this.UseDefaultcheckBox.Checked = m_formatoptions.UseDefault;
- if (!Autodesk.Revit.DB.Units.IsModifiableUnitType(m_unittype))
+ if (!Autodesk.Revit.DB.Units.IsModifiableSpec(m_specTypeId))
{
this.Text = "This unit type is unmodifiable";
this.UseDefaultcheckBox.Checked = true;
@@ -151,12 +151,12 @@ namespace Revit.SDK.Samples.Units.CS
if (!m_formatoptions.UseDefault)
{
this.DisplayUnitTypecomboBox.SelectedIndex = this.DisplayUnitcomboBox.SelectedIndex;
- m_formatoptions.DisplayUnits = (Autodesk.Revit.DB.DisplayUnitType)this.DisplayUnitTypecomboBox.SelectedItem;
+ m_formatoptions.SetUnitTypeId((Autodesk.Revit.DB.ForgeTypeId)this.DisplayUnitTypecomboBox.SelectedItem);
m_formatoptions.Accuracy = double.Parse(this.AccuracytextBox.Text);
this.UnitSymbolTypecomboBox.SelectedIndex = this.UnitSymbolcomboBox.SelectedIndex;
- m_formatoptions.UnitSymbol = (Autodesk.Revit.DB.UnitSymbolType)this.UnitSymbolTypecomboBox.SelectedItem;
+ m_formatoptions.SetSymbolTypeId((Autodesk.Revit.DB.ForgeTypeId)this.UnitSymbolTypecomboBox.SelectedItem);
m_formatoptions.SuppressTrailingZeros = this.SuppressTrailingZeroscheckBox.Checked;
m_formatoptions.SuppressLeadingZeros = this.SuppressLeadingZeroscheckBox.Checked;
@@ -183,23 +183,23 @@ namespace Revit.SDK.Samples.Units.CS
this.UnitSymbolTypecomboBox.BeginUpdate();
this.UnitSymbolcomboBox.BeginUpdate();
- foreach (Autodesk.Revit.DB.UnitSymbolType unitSymbolType in Autodesk.Revit.DB.FormatOptions.GetValidUnitSymbols((Autodesk.Revit.DB.DisplayUnitType)this.DisplayUnitTypecomboBox.SelectedItem))
+ foreach (Autodesk.Revit.DB.ForgeTypeId symbolTypeId in Autodesk.Revit.DB.FormatOptions.GetValidSymbols((Autodesk.Revit.DB.ForgeTypeId)this.DisplayUnitTypecomboBox.SelectedItem))
{
- this.UnitSymbolTypecomboBox.Items.AddRange(new object[] { unitSymbolType });
- if (unitSymbolType == Autodesk.Revit.DB.UnitSymbolType.UST_NONE)
+ this.UnitSymbolTypecomboBox.Items.AddRange(new object[] { symbolTypeId });
+ if (symbolTypeId.Empty())
{
this.UnitSymbolcomboBox.Items.Add("");
}
else
{
- this.UnitSymbolcomboBox.Items.Add(Autodesk.Revit.DB.LabelUtils.GetLabelFor(unitSymbolType));
+ this.UnitSymbolcomboBox.Items.Add(Autodesk.Revit.DB.LabelUtils.GetLabelForSymbol(symbolTypeId));
}
}
- this.UnitSymbolTypecomboBox.SelectedItem = m_formatoptions.UnitSymbol;
+ this.UnitSymbolTypecomboBox.SelectedItem = m_formatoptions.GetSymbolTypeId();
if (this.UnitSymbolTypecomboBox.SelectedIndex < 0)
{
this.UnitSymbolTypecomboBox.SelectedIndex = 0;
- m_formatoptions.UnitSymbol = (Autodesk.Revit.DB.UnitSymbolType)this.UnitSymbolTypecomboBox.SelectedItem;
+ m_formatoptions.SetSymbolTypeId((Autodesk.Revit.DB.ForgeTypeId)this.UnitSymbolTypecomboBox.SelectedItem);
}
this.UnitSymbolcomboBox.SelectedIndex = this.UnitSymbolTypecomboBox.SelectedIndex;
this.UnitSymbolTypecomboBox.EndUpdate();
diff --git a/SDK/Samples/Units/CS/Units.csproj b/SDK/Samples/Units/CS/Units.csproj
index 4d2d2a67..4a8ef487 100644
--- a/SDK/Samples/Units/CS/Units.csproj
+++ b/SDK/Samples/Units/CS/Units.csproj
@@ -12,7 +12,7 @@
Units
- v4.7
+ v4.8
diff --git a/SDK/Samples/Units/CS/UnitsForm.cs b/SDK/Samples/Units/CS/UnitsForm.cs
index f5750990..d6d5dbae 100644
--- a/SDK/Samples/Units/CS/UnitsForm.cs
+++ b/SDK/Samples/Units/CS/UnitsForm.cs
@@ -119,15 +119,15 @@ namespace Revit.SDK.Samples.Units.CS
{
// using the static example value 1234.56789
int count = 0;
- foreach (Autodesk.Revit.DB.UnitType unittype in Autodesk.Revit.DB.UnitUtils.GetValidUnitTypes())
+ foreach (Autodesk.Revit.DB.ForgeTypeId specTypeId in Autodesk.Revit.DB.UnitUtils.GetAllSpecs())
{
- if (Autodesk.Revit.DB.UnitUtils.GetUnitGroup(unittype).ToString() == this.disciplineCombox.SelectedItem.ToString())
+ if (Autodesk.Revit.DB.UnitUtils.GetUnitGroup(specTypeId).ToString() == this.disciplineCombox.SelectedItem.ToString())
{
this.dataGridView.Rows.Add();
- this.dataGridView["UnitType", count].Value = unittype;
- this.dataGridView["Label_UnitType", count].Value = Autodesk.Revit.DB.LabelUtils.GetLabelFor(unittype);
+ this.dataGridView["UnitType", count].Value = specTypeId;
+ this.dataGridView["Label_UnitType", count].Value = Autodesk.Revit.DB.LabelUtils.GetLabelForSpec(specTypeId);
this.dataGridView["FormatOptions", count].Value =
- Autodesk.Revit.DB.UnitFormatUtils.Format(m_units, unittype, 1234.56789, false, false);
+ Autodesk.Revit.DB.UnitFormatUtils.Format(m_units, specTypeId, 1234.56789, false);
count++;
}
}
@@ -144,8 +144,8 @@ namespace Revit.SDK.Samples.Units.CS
if (e.ColumnIndex == 2)
{
// show UI
- Autodesk.Revit.DB.UnitType unittype = (Autodesk.Revit.DB.UnitType)this.dataGridView["UnitType", e.RowIndex].Value;
- using (FormatForm displayForm = new FormatForm(unittype, m_units.GetFormatOptions(unittype)))
+ Autodesk.Revit.DB.ForgeTypeId specTypeId = (Autodesk.Revit.DB.ForgeTypeId)this.dataGridView["UnitType", e.RowIndex].Value;
+ using (FormatForm displayForm = new FormatForm(specTypeId, m_units.GetFormatOptions(specTypeId)))
{
DialogResult result;
while (DialogResult.Cancel != (result = displayForm.ShowDialog()))
@@ -154,9 +154,9 @@ namespace Revit.SDK.Samples.Units.CS
{
try
{
- this.m_units.SetFormatOptions((Autodesk.Revit.DB.UnitType)this.dataGridView["UnitType", e.RowIndex].Value, displayForm.FormatOptions);
+ this.m_units.SetFormatOptions((Autodesk.Revit.DB.ForgeTypeId)this.dataGridView["UnitType", e.RowIndex].Value, displayForm.FormatOptions);
this.dataGridView["FormatOptions", e.RowIndex].Value =
- Autodesk.Revit.DB.UnitFormatUtils.Format(m_units, (Autodesk.Revit.DB.UnitType)this.dataGridView["UnitType", e.RowIndex].Value, 1234.56789, false, false);
+ Autodesk.Revit.DB.UnitFormatUtils.Format(m_units, (Autodesk.Revit.DB.ForgeTypeId)this.dataGridView["UnitType", e.RowIndex].Value, 1234.56789, false);
break;
}
catch (System.Exception ex)
@@ -174,10 +174,10 @@ namespace Revit.SDK.Samples.Units.CS
Autodesk.Revit.DB.FormatValueOptions formatvalueoptions = new Autodesk.Revit.DB.FormatValueOptions();
formatvalueoptions.AppendUnitSymbol = false;
- Autodesk.Revit.DB.FormatOptions formatoptions = new Autodesk.Revit.DB.FormatOptions(Autodesk.Revit.DB.DisplayUnitType.DUT_CURRENCY, Autodesk.Revit.DB.UnitSymbolType.UST_NONE);
+ Autodesk.Revit.DB.FormatOptions formatoptions = new Autodesk.Revit.DB.FormatOptions(Autodesk.Revit.DB.UnitTypeId.Currency, new Autodesk.Revit.DB.ForgeTypeId());
formatoptions.UseDefault = false;
- formatoptions.DisplayUnits = Autodesk.Revit.DB.DisplayUnitType.DUT_CURRENCY;
- formatoptions.UnitSymbol = Autodesk.Revit.DB.UnitSymbolType.UST_NONE;
+ formatoptions.SetUnitTypeId(Autodesk.Revit.DB.UnitTypeId.Currency);
+ formatoptions.SetSymbolTypeId(new Autodesk.Revit.DB.ForgeTypeId());
formatoptions.Accuracy = 0.01;
//formatoptions.SuppressLeadingZeros = true;
formatoptions.SuppressSpaces = false;
@@ -187,7 +187,7 @@ namespace Revit.SDK.Samples.Units.CS
formatvalueoptions.SetFormatOptions(formatoptions);
- return Autodesk.Revit.DB.UnitFormatUtils.Format(m_units, Autodesk.Revit.DB.UnitType.UT_Number, 123456789.0, false, false, formatvalueoptions);
+ return Autodesk.Revit.DB.UnitFormatUtils.Format(m_units, Autodesk.Revit.DB.SpecTypeId.Number, 123456789.0, false, formatvalueoptions);
}
diff --git a/SDK/Samples/VSProps/SDKSamples.Steel.targets b/SDK/Samples/VSProps/SDKSamples.Steel.targets
index d3749949..65e80e6f 100644
--- a/SDK/Samples/VSProps/SDKSamples.Steel.targets
+++ b/SDK/Samples/VSProps/SDKSamples.Steel.targets
@@ -31,19 +31,19 @@
This must come after the import of the common targets -->
- C:\Program Files\Autodesk\Revit 2020\Addins\SteelConnections\ASObjectsMgd.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\Addins\SteelConnections\ASObjectsMgd.dll
False
- C:\Program Files\Autodesk\Revit 2020\Addins\SteelConnections\ASGeometryMgd.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\Addins\SteelConnections\ASGeometryMgd.dll
False
- C:\Program Files\Autodesk\Revit 2020\Addins\SteelConnections\ASCADLinkMgd.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\Addins\SteelConnections\ASCADLinkMgd.dll
False
-
- C:\Program Files\Autodesk\Revit 2020\Addins\SteelConnections\RvtDwgAddon.dll
+
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\Addins\SteelConnections\Autodesk.SteelConnectionsDB.dll
False
diff --git a/SDK/Samples/VSProps/SDKSamples.VB.targets b/SDK/Samples/VSProps/SDKSamples.VB.targets
index 7e191e62..f4225cb1 100644
--- a/SDK/Samples/VSProps/SDKSamples.VB.targets
+++ b/SDK/Samples/VSProps/SDKSamples.VB.targets
@@ -8,12 +8,12 @@
False
- C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\RevitAPI.dll
False
False
- C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\RevitAPIUI.dll
False
diff --git a/SDK/Samples/VSProps/SDKSamples.targets b/SDK/Samples/VSProps/SDKSamples.targets
index 8b9e7948..662ac676 100644
--- a/SDK/Samples/VSProps/SDKSamples.targets
+++ b/SDK/Samples/VSProps/SDKSamples.targets
@@ -32,16 +32,16 @@
False
- C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\RevitAPI.dll
False
- C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\RevitAPIUI.dll
False
False
- C:\Program Files\Autodesk\Revit 2020\RevitAddInUtility.dll
+ $(SolutionDir)..\..\..\..\$(ConfigurationName)$(PlatformName)\RevitAddInUtility.dll
False
diff --git a/SDK/Samples/VersionChecking/CS/VersionChecking.csproj b/SDK/Samples/VersionChecking/CS/VersionChecking.csproj
index eb425653..3bfdd626 100644
--- a/SDK/Samples/VersionChecking/CS/VersionChecking.csproj
+++ b/SDK/Samples/VersionChecking/CS/VersionChecking.csproj
@@ -18,7 +18,7 @@
- v4.7
+ v4.8
diff --git a/SDK/Samples/ViewPrinter/CS/ViewPrinter.csproj b/SDK/Samples/ViewPrinter/CS/ViewPrinter.csproj
index 9e303815..16c20bee 100644
--- a/SDK/Samples/ViewPrinter/CS/ViewPrinter.csproj
+++ b/SDK/Samples/ViewPrinter/CS/ViewPrinter.csproj
@@ -15,7 +15,7 @@
2.0
- v4.7
+ v4.8
diff --git a/SDK/Samples/ViewTemplateCreation/CS/ViewTemplateCreation.csproj b/SDK/Samples/ViewTemplateCreation/CS/ViewTemplateCreation.csproj
index 118c91b1..3c2266af 100644
--- a/SDK/Samples/ViewTemplateCreation/CS/ViewTemplateCreation.csproj
+++ b/SDK/Samples/ViewTemplateCreation/CS/ViewTemplateCreation.csproj
@@ -1,11 +1,5 @@
-
+
-
-
- None
-
-
-
Debug
AnyCPU
@@ -18,7 +12,7 @@
ViewTemplateCreation
- v4.7
+ v4.8
true
@@ -81,4 +75,4 @@
set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"
-
+
\ No newline at end of file
diff --git a/SDK/Samples/Viewers/AnalyticalViewer/VB.NET/AnalyticalViewer.vbproj b/SDK/Samples/Viewers/AnalyticalViewer/VB.NET/AnalyticalViewer.vbproj
index b881b164..03a05e3a 100644
--- a/SDK/Samples/Viewers/AnalyticalViewer/VB.NET/AnalyticalViewer.vbproj
+++ b/SDK/Samples/Viewers/AnalyticalViewer/VB.NET/AnalyticalViewer.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/Viewers/ElementViewer/VB.NET/ElementViewer.vbproj b/SDK/Samples/Viewers/ElementViewer/VB.NET/ElementViewer.vbproj
index aa133e7e..230dac90 100644
--- a/SDK/Samples/Viewers/ElementViewer/VB.NET/ElementViewer.vbproj
+++ b/SDK/Samples/Viewers/ElementViewer/VB.NET/ElementViewer.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/Viewers/RevitViewer/VB.NET/RevitViewer.vbproj b/SDK/Samples/Viewers/RevitViewer/VB.NET/RevitViewer.vbproj
index 813c6202..693b6cc3 100644
--- a/SDK/Samples/Viewers/RevitViewer/VB.NET/RevitViewer.vbproj
+++ b/SDK/Samples/Viewers/RevitViewer/VB.NET/RevitViewer.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/Viewers/RoomViewer/VB.NET/RoomViewer.vbproj b/SDK/Samples/Viewers/RoomViewer/VB.NET/RoomViewer.vbproj
index 8432a8eb..2652a20e 100644
--- a/SDK/Samples/Viewers/RoomViewer/VB.NET/RoomViewer.vbproj
+++ b/SDK/Samples/Viewers/RoomViewer/VB.NET/RoomViewer.vbproj
@@ -31,7 +31,7 @@
Windows
- v4.7
+ v4.8
diff --git a/SDK/Samples/VisibilityControl/CS/VisibilityControl.csproj b/SDK/Samples/VisibilityControl/CS/VisibilityControl.csproj
index 751846cd..fdd6a8b9 100644
--- a/SDK/Samples/VisibilityControl/CS/VisibilityControl.csproj
+++ b/SDK/Samples/VisibilityControl/CS/VisibilityControl.csproj
@@ -10,7 +10,7 @@
Properties
VisibilityControl
VisibilityControl
- v4.7
+ v4.8
diff --git a/SDK/Samples/WinderStairs/CS/WinderStairs.csproj b/SDK/Samples/WinderStairs/CS/WinderStairs.csproj
index c9453c87..c9c94ade 100644
--- a/SDK/Samples/WinderStairs/CS/WinderStairs.csproj
+++ b/SDK/Samples/WinderStairs/CS/WinderStairs.csproj
@@ -12,7 +12,7 @@
WinderStairs
- v4.7
+ v4.8