Skip to main content

Is it possible drawing a rectangle with predefined size?

Comments

2 comments

  • Kevin Penner
    Hi Dario,

     

    I did something recently where I made a rectable based on predefined length and width using workflow.

     

    What I did was let the user click an area where you place the rectangle. Then I took the click point, and added 100 using the x value to have two points. I then did a distance task to calculate the distance between the two points. From there I can calculate the aproximate distance which each map unit represents. Now it's easy to figure out how many units I need to add to each point to create a rectangle with specific dimensions. My calculations were within 1% accuracy when I passed the final shape into the measure area task.

     

    -Kevin
    0
  • Permanently deleted user
    The best way here is to get xy coordinates, add width and and length and then place the second point of MBR.

     

    -Abdul
    0

Please sign in to leave a comment.