like autolisp for autocad what is it for librecad?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
agr
Reply | Threaded
Open this post in threaded view
|

like autolisp for autocad what is it for librecad?

agr
like autolisp for autocad what is  it for librecad?
Reply | Threaded
Open this post in threaded view
|

Re: like autolisp for autocad what is it for librecad?

R. van Twisk
Administrator
Agr,

for LibreCAD 2 we unfortunately don't have anything with scripting capabilities.

For LibreCAD 3 we do have a working lua implementation and it would be 
a lot easer to implement additional scripting languages. However,
LibreCAD 3 is still in early development and we don't have anything usefull
working.



On Jan 21, 2015, at 11:00 AM, agr [via LibreCAD] <[hidden email]> wrote:

like autolisp for autocad what is  it for librecad?


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/like-autolisp-for-autocad-what-is-it-for-librecad-tp5710999.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: like autolisp for autocad what is it for librecad?

joseph
autolisp for autocad

lua for librecad

lua for Surveyors?

Lau supports oops at some levels, could this be a language the our COGO effort could be written in?  I would expect that it could, but with what kind of difficulty?

Joe
Reply | Threaded
Open this post in threaded view
|

Re: like autolisp for autocad what is it for librecad?

R. van Twisk
Administrator
Joe,

without knowing your exact requirements but knowing lua I am pretty sure COGO functions can be written in Lua.

What we don't have in LibreCAD 2 is a scripting language, but we do support plugins. If you need a full fledged COGO tool this year, then LibreCAD + plugin is the way to go.

If you really need a scripting language for COGO and/or you need your own UI that can visualise stuff but can export to DXF then I think this could be done with LibreCAD 3 code. What Lua in LibreCAD 3 currently does is operate on entities in the kernel, mostly creation is tested but it should be easy to include modification. Lua in LibreCAD 3 cannot present menu's/graphics and dialog boxes yet. If you are planning to use LibreCAD 3 kernel do be prepared to accept changes to API's once a while and be prepared to understand that LibreCAD 3 doesn't have a working UI with mouse cursor capabilities etc... But soon I will be adding this. We can zoom and select.

Hope that helps.

Reply | Threaded
Open this post in threaded view
|

Re: like autolisp for autocad what is it for librecad?

joseph

The timing sounds good for LibreCAD 3.  I say this because one year sounds good.  Also we might be able to find some good testers of LibreCAD 3 within the Cogo team.

I have  a lot going on, but Cogo can take up a lot of my time this year.  Cogo was originally a language, like lua, granted without much functionality,  except with regards to coordinate geometry and batch processing.

Briefly, Cogo 3 sounds like a great candidate for LibreCAD 3.

Joe
Reply | Threaded
Open this post in threaded view
|

Re: like autolisp for autocad what is it for librecad?

geopython1916
In reply to this post by R. van Twisk
To Administrator...

I'm replying to your post some 7 years back.  I hope you are still active.

Our plan is still the same.  I'm now working with Laing Survey LLC of Lake Worth Florida.

I'm planning to use a program called SWIG which automates the embedding process for Lua into C++ applications such as LibreCad.

I work by myself and Laing Survey is supporting my efforts.  Which is a great help.

Need to get in touch with a developer from LibreCad to discuss moving forward.

A reply is appropriated.

Joseph OC
Reply | Threaded
Open this post in threaded view
|

Re: like autolisp for autocad what is it for librecad?

LordOfBikes
Administrator
see https://forum.librecad.org/Lua-Scripting-Language-tp5721597p5721606.html
investing less than half an hour into Search function can save hours or days of waiting for a solution