Author Topic: Rotate pipe 45 degrees  (Read 1217 times)

Holmux

  • Newbie
  • *
  • Posts: 34
    • View Profile
Rotate pipe 45 degrees
« on: December 20, 2018, 10:00:43 AM »
Hi all

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

Thanks
/Holmux

Phrog30

  • Guest
Re: Rotate pipe 45 degrees
« Reply #1 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.

Godra

  • Hero Member
  • *****
  • Posts: 1446
    • View Profile
Re: Rotate pipe 45 degrees
« Reply #2 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.

Holmux

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Rotate pipe 45 degrees
« Reply #3 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