AdvancedHMI Software

General Category => Support Questions => Topic started by: Holmux on December 20, 2018, 10:00:43 AM

Title: Rotate pipe 45 degrees
Post by: Holmux on December 20, 2018, 10:00:43 AM
Hi all

Anyone have an idea how I can rotate a pipe 45 degrees ?

Thanks
/Holmux
Title: Re: Rotate pipe 45 degrees
Post by: Phrog30 on December 20, 2018, 09:33:02 PM
When using AHMI, you have to approach graphics differently than other conventional programs. AHMI is winforms, so there is only so much you can do with graphics. I attempted to do some drawing tools and they were ok, but what I noticed is you get so much on the form and it slows things down. I recommend drawing outside and importing as a picture. Also, lifelike graphics are a waste in my opinion. If you want to show flow just use a line. Microsoft has an adder for a line that you can draw at any angle.
Title: Re: Rotate pipe 45 degrees
Post by: Godra on December 20, 2018, 10:08:33 PM
This topic has a control that can rotate an image:

https://www.advancedhmi.com/forum/index.php?topic=1429.0

If you can understand its code then you can modify it or just use the control as it is.
Title: Re: Rotate pipe 45 degrees
Post by: Holmux on December 26, 2018, 02:56:15 AM
Thanks for the input

I ended up drawing the system in Autocad and imported it as a background picture on the page itself.

Works great, just a bit of a hassel when you want to change things on the layout.

Thanks
/Holmux