Hello Guest it is April 29, 2024, 12:18:07 PM

Author Topic: Show image based on condition / tool magazine visualization  (Read 981 times)

0 Members and 1 Guest are viewing this topic.

Show image based on condition / tool magazine visualization
« 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.

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Show image based on condition / tool magazine visualization
« Reply #1 on: March 28, 2023, 06:22:28 AM »
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.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.