# Macro (adding command line option)

**URL:** <https://discourse.mcneel.com/t/macro-adding-command-line-option/110666>\
**Category:** Rhino for Windows\
**Created:** [October 20, 2020, 6:48am UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666 "2020-10-20T06:48:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yelenaye](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yelenaye/32/542790_2.png) [@yelenaye](https://discourse.mcneel.com/u/yelenaye)\
**Post date:** [October 20, 2020, 6:48am UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/1 "2020-10-20T06:48:02Z")

</div>

trying to set ‘copy’ option to ‘no’ for ExtractSrf  
for example, this works:  
_\_move vertical=yes 0 \_pause \_selnone_  
but this doesn’t:  
_\_extractsrf copy=no_

thnx!

---

<div class="post-metadata">

**Author:** ![wim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wim/32/747482_2.png) [@wim](https://discourse.mcneel.com/u/wim)\
**Post date:** [October 20, 2020, 9:48am UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/2 "2020-10-20T09:48:24Z")

</div>

Hi -

> [@yelenaye](#):
>
> but this doesn’t:  
> _\_extractsrf copy=no_

That appears to be working fine here.  
Which version of Rhino are you trying this on?  
-wim

---

<div class="post-metadata">

**Author:** ![yelenaye](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yelenaye/32/542790_2.png) [@yelenaye](https://discourse.mcneel.com/u/yelenaye)\
**Post date:** [October 20, 2020, 2:27pm UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/3 "2020-10-20T14:27:05Z")

</div>

on the latest I think: Version 6 SR29  
it’s reading copy=no as a command, instead of an option  
 ![nope](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/4/84a20890b8056992896a00bfbacf14550e5c5af0.png)  
thnx @wim

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [October 20, 2020, 2:48pm UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/4 "2020-10-20T14:48:02Z")

</div>

Hello - Can you please get a few more lines of the command history? F2 will open a window with the entire recent history.

-Pascal

---

<div class="post-metadata">

**Author:** ![yelenaye](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yelenaye/32/542790_2.png) [@yelenaye](https://discourse.mcneel.com/u/yelenaye)\
**Post date:** [October 20, 2020, 3:13pm UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/5 "2020-10-20T15:13:42Z")

</div>

here you go!  
thnx @pascal  
 ![nope](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/7/4724287c31a0ec1c7c3b896ea7a03698d8bc8b59.png)

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [October 20, 2020, 5:11pm UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/6 "2020-10-20T17:11:48Z")

</div>

Hello - I guess you are preselecting a face with sub-object selection? The command was not, I guess, originally intended to be used with preselection. I will see if this can be tuned up…

[RH-61071](https://mcneel.myjetbrains.com/youtrack/issue/RH-61071) ExtractSrf - Copy option with preselection

-Pascal

---

<div class="post-metadata">

**Author:** ![yelenaye](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yelenaye/32/542790_2.png) [@yelenaye](https://discourse.mcneel.com/u/yelenaye)\
**Post date:** [October 20, 2020, 5:14pm UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/7 "2020-10-20T17:14:45Z")

</div>

I see! thnx Pascal

---

<div class="post-metadata">

**Author:** ![yelenaye](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yelenaye/32/542790_2.png) [@yelenaye](https://discourse.mcneel.com/u/yelenaye)\
**Post date:** [December 9, 2020, 4:38am UTC](https://discourse.mcneel.com/t/macro-adding-command-line-option/110666/8 "2020-12-09T04:38:07Z")

</div>

awesome!  
 ![Capture](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/9/a/39ada34c881984f5f1e3cbd2f70588ec3669e969.png)  
_(now little things like this helps: ‘poly surfaces’)_

[https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/4/3/d4391a55d3604a113c92525015920bcedc52b437.mp4](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/4/3/d4391a55d3604a113c92525015920bcedc52b437.mp4)
  
big thanks!
