Checking or changing objects dimensions using code.

sntr37
2022-11-30
2024-11-19
  • sntr37 - 2022-11-30

    Hello, I want to check dimensions of the Rectangle in Visualization using FB written in ST and change them when the button is pressed. How can I do that? Can I put a variable in a "Height" or "Width" property?

     
  • pistola - 2024-11-19

    Any chance you came up with a solution for this?

     
    • Strucc.c

      Strucc.c - 2024-11-19

      That time it was not answered.
      But yes, it is possible. Search for "Relative movement" properties of the rectangle element. Might need to enable advanced features in the property browser.

      https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_elem_rectangle.html

       
      • pistola - 2024-11-19

        That works, thanks, I was trying to get a variable into the Position>Height and was struggling, then I was using absolute movement, never though to try relative movement.

         

        Last edit: pistola 2024-11-19

Log in to post a comment.