MoI discussion forum
MoI discussion forum

Full Version: Rebuild

Show messages: All  1  2-6

From: Phiro
30 Mar 2022   [#2]
Rebuild is not a plugin.
It's a MOI's native function but which has not an icon.

So, you have to hit the TAB key and write Rebuild to use it.


There is another way with alternative UI.
But for using alternative UI, you have to install this UI manually.
Search help on this in forum or in resssouce pages to find how to install it if you want use it.
From: Death
30 Mar 2022   [#3] In reply to [#2]
You can also make a shortcut key and assign the rebuild command to it...
From: jawiest (100BONNIE100)
30 Mar 2022   [#4]
Thanks guys
From: Cuboctahedron
20 Dec 2025   [#5]
Hi,

I'm trying to add this to the UI. I've got the icon in place and the string set and it shows up, but clicking on it with a curve selected doesn't seem to fire the command. Here's the string in SidePane.htm:

What am I doing wrong?
<moi:CommandButton icon="icons/Rebuild.png" commandset="rebuild"><moi:text textid="Rebuild"></moi:CommandButton>

From: Michael Gibson
20 Dec 2025   [#6] In reply to [#5]
Hi Cuboctahedron,

re:
> I'm trying to add this to the UI. I've got the icon in place and the string set and it shows up, but
> clicking on it with a curve selected doesn't seem to fire the command.

Instead of commandset="rebuild" put command="rebuild"

A "commandset" is one of those clusters of commands like this one for Circles:




A commandset has an XML file like Circles.xml :

<commandset>
    <command>circle</command>
    <command>circlediameter</command>
    <command>circle3pt</command>
    <command>circletangent</command>
</commandset>

And also an .htm file for the UI like Circles.htm

So in your case, having a commandset="rebuild" makes it look for a rebuild.xml that has the related commands listed in it.

Also if you just want some fixed text for the text label and you aren't going to set up translations in other languages, you can skip putting it in the Strings.txt file and omit the <moi:Text> element.

So like this:
<moi:CommandButton icon="icons/Rebuild.png" command="rebuild">Rebuild</moi:CommandButton>

- Michael

Image Attachments:
circles_command_set.png 


Show messages: All  1  2-6