You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Description("Returns the 'depth' property of a markup object as a double. If the value cannot be converted to a double (if the value is null or blank for example) then an error will be provided and -1 will be returned.")]
46
+
[Description("Returns the 'depth' property of a markup object as a double. If the value cannot be converted to a double (if the value is null or blank for example) then an error will be provided and 0 will be returned.")]
47
47
[Input("markup","A markup object which contains the 'depth' property.")]
48
-
[Output("depth","The depth value as a double, or -1 if the value could not be converted to a double.")]
48
+
[Output("depth","The depth value as a double, or 0 if the value could not be converted to a double.")]
49
49
publicstaticdoubleDepth(thisMarkupmarkup)
50
50
{
51
51
if(markup==null)
52
-
return-1;
52
+
return0;
53
53
54
54
try
55
55
{
@@ -58,7 +58,7 @@ public static double Depth(this Markup markup)
58
58
catch(Exceptione)
59
59
{
60
60
BH.Engine.Base.Compute.RecordError($"Could not convert XMLDepth value {markup.Depth} to numerical depth.");
Copy file name to clipboardExpand all lines: XML_oM/Bluebeam/Markup.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
23
23
usingSystem;
24
24
usingSystem.Collections.Generic;
25
+
usingSystem.ComponentModel;
25
26
usingSystem.Linq;
26
27
usingSystem.Text;
27
28
usingSystem.Threading.Tasks;
@@ -64,6 +65,7 @@ public class Markup : BluebeamObject
64
65
[XmlElement("Label")]
65
66
publicvirtualstringLabel{get;set;}
66
67
68
+
[Description("By default this is an XML String representation. Most software will automatically handle the conversion to a numerical representation but users can also use the Query.Depth(Markup) method if necessary.")]
0 commit comments