Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Generate objects by code

agarcia
2 days ago
2 days ago
  • agarcia

    agarcia - 2 days ago

    I'm trying to create code to generate objects in a visualization and sort them like boxes on a pallet. I have been searching in different topics and I have not found anything similar. Could someone tell me if this option is possible?

    On the other hand, can the width and length of a rectangle be modified? Because another option would be to create a specific number of objects and modify their position and size.

     

    Last edit: agarcia 2 days ago
  • i-campbell

    i-campbell - 2 days ago

    For me, if you can fix the number of objects, this is the best. Yes, rectangles can move. In its properties assign variables to Absolute movement, relative movement. These include position and scaling 'movements'.
    You can generate these with multiply elements..
    https://help.codesys.com/webapp/_visu_create_similar_elements_in_many_cases;product=core_visualization;version=3.5.15.0

     
    👍
    1
    • agarcia

      agarcia - 2 days ago

      Thanks for your answer.

      If I have understood this correctly, I will be able to multiply already created objects, correct?

      Do you know any way to modify the width and length of the rectangles?

       

Log in to post a comment.