Skip to content

Commit 8d2830b

Browse files
committed
printCount off by default
1 parent 7d96dad commit 8d2830b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Src/Scripting_Selection.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ module AutoOpenSelection =
252252
/// Minimum count of objects allowed to be selected</param>
253253
/// <param name="maximumCount">(int) Optional, default value: <c>0</c>
254254
/// Maximum count of objects allowed to be selected</param>
255-
/// <param name="printCount">(bool) Optional, default value: <c>true</c> Print object count to command window.</param>
255+
/// <param name="printCount">(bool) Optional, default value: <c>false</c> Print object count to command window.</param>
256256
/// <param name="customFilter">(Input.Custom.GetObjectGeometryFilter) Optional, Will be ignored if 'objects' are set. Calls a custom function in the script and passes
257257
/// the Rhino Object, Geometry, and component index and returns true or false indicating if the object can be selected</param>
258258
/// <returns>(Guid ResizeArray) List of identifiers of the picked objects.
@@ -265,7 +265,7 @@ module AutoOpenSelection =
265265
[<OPT;DEF(null:Guid seq)>]objectsToSelectFrom:Guid seq,
266266
[<OPT;DEF(1)>]minimumCount:int,
267267
[<OPT;DEF(0)>]maximumCount:int,
268-
[<OPT;DEF(true)>]printCount:bool,
268+
[<OPT;DEF(false)>]printCount:bool,
269269
[<OPT;DEF(null:Input.Custom.GetObjectGeometryFilter)>]customFilter:Input.Custom.GetObjectGeometryFilter) : ResizeArray<Guid> =
270270
let get () =
271271
if not <| preselect then
@@ -297,7 +297,7 @@ module AutoOpenSelection =
297297
rc.Add(objref.ObjectId)
298298
let obj = objref.Object()
299299
if select && notNull obj then obj.Select(select) |> ignore<int>
300-
if printCount then PrettySetup.printfnBlue "RhinoScriptSyntax.GetObjects(...) returned %s" (RhinoScriptSyntax.ObjectDescription(rc))
300+
if printCount then PrettySetup.printfnBlue $"RhinoScriptSyntax.GetObjects(\"{message}\") returned {RhinoScriptSyntax.ObjectDescription rc}"
301301
rc
302302
RhinoSync.DoSyncRedrawHideEditor get
303303

@@ -320,7 +320,7 @@ module AutoOpenSelection =
320320
/// <param name="select">(bool) Optional, default value: <c>false</c>
321321
/// Select the picked objects. If False, the objects that are
322322
/// picked are not selected</param>
323-
/// <param name="printCount">(bool) Optional, default value: <c>true</c> Print object count to command window</param>
323+
/// <param name="printCount">(bool) Optional, default value: <c>false</c> Print object count to command window</param>
324324
/// <param name="objectsToSelectFrom">(Guid seq) Optional, List of object identifiers specifying objects that are
325325
/// allowed to be selected</param>
326326
/// <returns>((Guid*bool*int*Point3d*string) ResizeArray) List containing the following information
@@ -335,7 +335,7 @@ module AutoOpenSelection =
335335
[<OPT;DEF(true)>]group:bool,
336336
[<OPT;DEF(true)>]preselect:bool,
337337
[<OPT;DEF(false)>]select:bool,
338-
[<OPT;DEF(true)>]printCount:bool,
338+
[<OPT;DEF(false)>]printCount:bool,
339339
[<OPT;DEF(null:Guid seq)>]objectsToSelectFrom:Guid seq) : (Guid*bool*DocObjects.SelectionMethod*Point3d*string) ResizeArray =
340340
let get () =
341341
if not <| preselect then
@@ -374,7 +374,7 @@ module AutoOpenSelection =
374374
rc
375375
|> RArr.map ( fun (id, _, _, _, _) -> id )
376376
|> RhinoScriptSyntax.ObjectDescription
377-
|> PrettySetup.printfnBlue "RhinoScriptSyntax.GetObjectsEx(...) returned %s"
377+
|> PrettySetup.printfnBlue "RhinoScriptSyntax.GetObjectsEx(\"%s\") returned %s" message
378378
rc
379379
RhinoSync.DoSyncRedrawHideEditor get
380380

0 commit comments

Comments
 (0)