Machsupport Forum
Mach Discussion => Mach Screens => Machscreen Screen Designer => Topic started by: Andre_DE on March 26, 2023, 12:38:51 PM
-
Good afternoon!
How can I display a picture based on a condition?
i.e. based on customDRO value or triggered by VBA change the .png image source for an image object.
Thanks!
André
_
Background of my request:
I am currently building a custom screen for my machine, inspired by the neat PA screen. My machine will soon get a 30 place chain-style tool magazine and I wanted to integrate it into the screen.
The plan is to take a download from the Fusion360 tool library and import it into Mach3 (working already) whenever there are new tools. Depending on the part I am machining, either the tool is already in the magazin or will be loaded into the magazine. By decoupling tool number and tool position, I will no longer need to fiddle with my Fusion360 tool numbers before exporting.
There is set of 15 PNGs resembling the basic tool type (endmill, ballnose, dovetail, etc.), which I want to display.
-
the only way i can imagine might be:
-insert in screen a picture for each TC place ( TCplace1.png to TCplacexx.png)
-create images for each tooltype empty.png,drill.png,endmill.png ...
-copy with a VB script condition based for example drill.png -> TCplace1.png
-reload screen sheet
not tested, just an idea.