MoI discussion forum
MoI discussion forum

Full Version: Setting the default number of array copies

From: Metin (METIN_SEVEN)
5 May 2021   [#1]
Hi,

Is it possible to set the default number of copies of the ArrayDir command? I'd love to set it to 3, so I can quickly make two copies of a shape to serve as profiles for the outer ends and center of a rail sweep.

I could use the Copy command, but ArrayDir with a custom default value would be just a little faster.

Thanks!
From: Michael Gibson
5 May 2021   [#2] In reply to [#1]
Hi Metin, the default value for ArrayDir can be set by editing the ArrayDir.htm file inside the commands sub-folder in the install.

It's on line #45:

code:
					<td><moi:UnsignedIntegerInput id="NumItems" default="5"/></td>


Set the default="5" to instead be default="3" and it should then behave like you're asking.

- Michael
From: Psygorn (DRILLBIT)
5 May 2021   [#3] In reply to [#1]
Hi Metin, Could you give an example of what you want to do? I would like to visualize what you mean. :)
From: Metin (METIN_SEVEN)
6 May 2021   [#4]
Thanks a lot Michael!

Psygorn, I've made a little visual explanation of my intention:

Image Attachments:
3-circle Sweep example.png 


From: Psygorn (DRILLBIT)
6 May 2021   [#5] In reply to [#4]
Thanks. :)