Idea

Sebastian Hemmann avatar image
4 Likes"
Sebastian Hemmann suggested Jordan Johnson commented

Edit Mode for Conveyor Module

conveyordecision pointsphoto eyes
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Comment

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson commented

You can make a button on your toolbar that acts like a switch, disabling layout changes:

int mode = -1;
forobjecttreeunder(model()) {
	if (isclasstype(a, "Conveyor::Conveyor")) {
		if (mode == -1) {
			mode = !switch_protected(a, -1);
		}		
		switch_protected(a, mode);
	}
}

When I did this, I was still able to add and edit decision points and photo eyes, even when I couldn't move the conveyors.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sebastian Hemmann avatar image Sebastian Hemmann commented ·
0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Sebastian Hemmann commented ·
1 Like 1 ·

Write a Comment

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.