11th June

Today I have drawn tried some more figures in LibreCAD. I had almost completed the water tank but I forgot to save the code as a file. Okay, So I tried to do some newer commands like “copy” and “rotate” in LibreCAD.

With the help of copy function, we can copy any figure made and paste it anywhere at new coordinates.

layer=active.proxy.layerByName("0")
d=active.document()
b=Builder(d)
l=Line(Coord(0,0),Coord(100,100),layer)
b:append(l):copy(Coord(100,0))
b:push()
b:loop(2)
b:execute()

The output of the above program will be:
copy command

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s