UiPath Robot draws a picture | RPA | Automation | Robot drawing sketch | Sketching Robot

preview_player
Показать описание
Hi Guys,

In this post, I wish to show how a UiPath robot draws a picutre in Microsoft Paint.

You can see the logic behind this robot and workflow in this video

This reminded me what I had done 10 years back when I was exploring VBA in Excel. At that time, I did a fun project to map a picture by coloring the Excel cells using VBA. Basically, I used a VBA code to read all the XY cordinates and color of a picture into an array and I colored each cell in a worksheet using the array imagining it is a pixel of a picture. Then if you keep the zooming of the worksheet to 10%, it will exactly looks like the same picture.

This made me thinking that why can't I upgrade my project to a robot. In fact, UiPath also works on the Microsoft .NET background. So it's not a big task to to upgrade VBA to UiPath.

Then after spending couple of hours, I managed to upgrade the sketching project to UiPath.

But there is a big change I made to overcome the constraints :

I was reading the actual colors of the picture in my old project and making the same color in Excel cell. Since I'm using MS Paint to draw the picture, there is easy shortcut available to change the color or the brush for each pixel. If I use the UI elements in Paint to change the color on each color, my robot will take a day to paint a picture. So I just read only the cordinates of the darker shades of the picture and mapped only those dots in Paint to imitate the picture.

The outcome is not so fantastic like my old project, but still it's enough to showcase the power of the UiPath robot.

Рекомендации по теме
Комментарии
Автор

Interesting, please share the process.

indrarahmat
Автор

its very nice, how it draw, can you explain the process of uipath studio

sudheernimmagadda
Автор

how to do loop thou and mark pixels, can you please double click on each activity and show me in other video

sudheernimmagadda