![]() ![]() Local b=lc.operation.EntityBuilder(document)ī:appendOperation(lc.operation.Copy(lc.geo.Coordinate(0,0)))ī:appendOperation(lc.operation.Rotate(lc.geo.Coordinate(0,0), math.rad(45)))Ĭreate a line and copy/rotate the line 7 times, then copy the result and move that to location 100,0ī:appendOperation(lc.operation.Copy(lc.geo. Get the builder object (will be renamed later) Lb:setEndPoint(lc.geo.Coordinate(10,100)) This create 128 entities, because the Copy operation copy all the lines on each loop. To run the examples, open the Lua script window in the toolbar "Lua" > "Run script".Ĭreate a line and copy/rotate the line 7 times. After each step the result of the step is passed along to the next step. ![]() From there you can apply steps to process the entities. To create entities within a document there is a builder object that allows to add new entities or append selected entities into the build. LibreCAD 3 kickoff tries to make a new codebase, completely rewritten use modern techniques and designs. Please see Lua's reference manual for more information. Lua is very powerful but at the same time provides a easy to understand programming language. Lua is the default scripting language and will be available for most simple scripting needs. One of the scripting languages LibreCAD support's is. Snap functions to accurately draw with end points, middle points, center of arcs, intersection of lines. Lua is a powerful, fast, lightweight, embeddable scripting language developed by a team at PUC-Rio, the Pontifical Catholic University of Rio de Janeiro in Brazil. LibreCAD 3 GUI Revamp GSoC 2020 Phase 2 Posted on Augby Akhil Nair Hi With the end of another fun coding period, I’m here to bring you the updates on what work has been done in this period. Local coordinates system: you can choose a new origin to input ang get coordinates. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |