Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Jan 3, 2022
1 parent 397a4c0 commit 6f4bad2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions RevitLookup/Views/Geometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private void AddObjectsToTree(Element elem, TreeNodeCollection nodes)
nodes.Add(rootNode1);
foreach (ViewDetailLevel detailLevel in Enum.GetValues(typeof(ViewDetailLevel)))
{
var treeNode = new TreeNode($"Detail Level = {detailLevel}");
var treeNode = new TreeNode($"Detail Level: {detailLevel}");
// IMPORTANT!!! Need to create options each time when you are
// getting geometry. In other case, all the geometry you got at the
// previous step will be overridden according with the latest DetailLevel
Expand All @@ -54,14 +54,14 @@ private void AddObjectsToTree(Element elem, TreeNodeCollection nodes)
rootNode1.Nodes.Add(treeNode);
}

var rootNode2 = new TreeNode("Undefined View, include not visible objects");
var rootNode2 = new TreeNode("Undefined View, including non-visible objects");
nodes.Add(rootNode2);
foreach (ViewDetailLevel viewDetailLevel in Enum.GetValues(typeof(ViewDetailLevel)))
foreach (ViewDetailLevel detailLevel in Enum.GetValues(typeof(ViewDetailLevel)))
{
var treeNode = new TreeNode($"Detail Level = {viewDetailLevel}");
var treeNode = new TreeNode($"Detail Level: {detailLevel}");
var options2 = new Options
{
DetailLevel = viewDetailLevel,
DetailLevel = detailLevel,
ComputeReferences = true,
IncludeNonVisibleObjects = true
};
Expand Down Expand Up @@ -90,7 +90,7 @@ private void AddObjectsToTree(Element elem, TreeNodeCollection nodes)
IncludeNonVisibleObjects = true
};

var rootNode4 = new TreeNode("Active View, include not visible objects");
var rootNode4 = new TreeNode("Active View, including non-visible objects");
nodes.Add(rootNode4);
rootNode4.Tag = elem.get_Geometry(options4);
}
Expand Down

0 comments on commit 6f4bad2

Please sign in to comment.