12/5/2023 0 Comments Librecad pythonLocal 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. If you are an Ubuntu user, you can simply install it from the Ubuntu Software Center as well. Get the builder object (will be renamed later) 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. 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. ryan Reply Threaded More 2:15am spline with ezdxf (python) Hi, I am trying to display a spline done with the python ezdxf package and impossible to do it. Lua is the default scripting language and will be available for most simple scripting needs. One of the scripting languages LibreCAD support's is. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |