# rs.Command() Suppress echo problem

**URL:** <https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163>\
**Category:** Scripting\
**Created:** [October 28, 2016, 7:50am UTC](https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163 "2016-10-28T07:50:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico\_de\_Meester](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nico_de_meester/32/491738_2.png) [@Nico\_de\_Meester](https://discourse.mcneel.com/u/Nico_de_Meester)\
**Post date:** [October 28, 2016, 7:50am UTC](https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163/1 "2016-10-28T07:50:07Z")

</div>

Hi-

In the python code below I try to suppress the echos on the command line but it still shows the “command:” echo.  
Is it possible to suppress this aswell?

```auto
##################################
import rhinoscriptsyntax as rs
import Rhino

def MergeEdge():
    ArrObject=rs.GetObjects("Select Parts",16)
    rs.EnableRedraw(False)
    for srf in ArrObject:
        rs.Command("_MergeAllEdges _SelId "+ str(srf) + " _Enter",False)
    rs.EnableRedraw(True)
if __name__ == " __main__":
    MergeEdge()
#####################################

```

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [October 28, 2016, 3:13pm UTC](https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163/2 "2016-10-28T15:13:09Z")

</div>

Try preceding the command name with `_NoEcho`.

– Dale

---

<div class="post-metadata">

**Author:** ![Nico\_de\_Meester](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nico_de_meester/32/491738_2.png) [@Nico\_de\_Meester](https://discourse.mcneel.com/u/Nico_de_Meester)\
**Post date:** [October 31, 2016, 9:51am UTC](https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163/3 "2016-10-31T09:51:37Z")

</div>

Hi Dale

It Didn’t work.  
I modified the commanline but still the command echo appear.

rs.Command("\_NoEcho \_MergeAllEdges \_SelId “+ str(srf) + " \_Enter”,False)

See attached files

–Nico

[MergeAllEdges.py](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/f/2fbd81c84d9994d94a56970b41e4047cd3b6bffe.py) (323 Bytes)  
[MergeAllEdges.3dm](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/1/e/1e41ebb716d0c9e33c09745af8d261b57513e499.3dm) (230.6 KB)

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [October 31, 2016, 4:55pm UTC](https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163/4 "2016-10-31T16:55:15Z")

</div>

I am not seeing anything echoed to the command line, other than the `Select Parts` prompt.

What am I missing?

– Dale

---

<div class="post-metadata">

**Author:** ![spb](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/spb/32/635310_2.png) [@spb](https://discourse.mcneel.com/u/spb)\
**Post date:** [October 31, 2016, 11:07pm UTC](https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163/5 "2016-10-31T23:07:27Z")

</div>

I’m seeing the same as Nico.

A `Command`: is printed for each repeat of the loop.

Also, an additional `Select Parts. Press Enter when done:` is printed after Enter is pressed.

For example, after window-selecting 4 surfaces at once and pressing Enter, this is printed:

```
Select Parts:
Select Parts. Press Enter when done:
Select Parts. Press Enter when done:
Command:
Command:
Command:

```

@Nico_de_Meester  
A workaround is:

```python
def MergeEdge():
    ArrObject=rs.GetObjects("Select Parts",16,select=True)
    rs.EnableRedraw(False)
    rs.Command("_MergeAllEdges",False)
    rs.UnselectAllObjects()
    rs.EnableRedraw(True)

```

Steve

---

<div class="post-metadata">

**Author:** ![Nico\_de\_Meester](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nico_de_meester/32/491738_2.png) [@Nico\_de\_Meester](https://discourse.mcneel.com/u/Nico_de_Meester)\
**Post date:** [November 1, 2016, 6:53am UTC](https://discourse.mcneel.com/t/rs-command-suppress-echo-problem/38163/6 "2016-11-01T06:53:00Z")

</div>

Hi Dale

I got the same as what Steve showed.  
When you want to merge for example 100 parts you probably got 100 Command: lines in the history.  
But the workaround off Steve works.  
So I am happy.  
Thanks for you reactions.

Nico
