Help to develop / define new command

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

Help to develop / define new command

VyasG_007
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Help to develop / define new command

LordOfBikes
Administrator
It is not clear to me, what kind of help you need.
What do you mean with how to execute the same in software?

Basically your changes look fine, they should build without issues.

I recommend to use "ct2" instead of "ttr" as alias.
This is more conform with the "ct3" alias in the lines below your changes.
Or do you have strong arguments for "ttr"?

Armin
Reply | Threaded
Open this post in threaded view
|

Re: Help to develop / define new command

VyasG_007
CONTENTS DELETED
The author has deleted this message.
ACL
Reply | Threaded
Open this post in threaded view
|

Re: Help to develop / define new command

ACL
I think the rs_commands file should have a standardized command and shortcut in it, and your personal preference for the alias should be in your aliases file. A lot of commands need to be entered into rs_commands.
Reply | Threaded
Open this post in threaded view
|

API or similar tools for LibreCAD

VyasG_007
In reply to this post by VyasG_007
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: API or similar tools for LibreCAD

flywire
Are you aware https://github.com/LibreCAD/LibreCAD_3 is being developed? If you are interested in development goto https://librecad.zulipchat.com/login/ and discuss it with the devs.
Reply | Threaded
Open this post in threaded view
|

Re: API or similar tools for LibreCAD

LordOfBikes
Administrator
@VyasG_007, I moved your post here as it is direct related with this thread.

So I understood now that you need help to get changes from source code into the application.
This is a bit too much to handle here, I'll give you some hints, but maybe you should start with some HelloWorld C++ tutorial for a better understanding.

When you change a config file like LibreCAD's command aliases, then this file is read by the binary LibreCAD application and a restart of the application is enough.

But when you change any source code file, you have to create a new binary application from the source code. This requires a tool chain with at least a compiler and linker and often some other tools like make, which automatizes a part of the build process.
Additionally external libraries are used, which brings in ready to use functionality.
To make things not too easy, everything depends on your operating system too.

So how to create the binary application from source is explained here:
https://librecad.readthedocs.io/en/latest/appx/build.html
You can try to follow these instructions and see if it works for you.

Concerning your API question:
Qt is an application frame work which makes GUI programming easier, some installer for Windows even contain the compiler/linker tool chain.
muparser is a library we use for command parsing
and boost is a multiple purpose C++ extension library

Basically Plugins are the easy API to extend LibreCAD without knowing much about the internal work flow.
They have to be written in C++ too and have a interface to interact with the active drawing.
This interface allows to add, modify or delete entities to the active document.
Existing plugins are in the plugins folder of the source code.

Find more information about LibreCAD development here (follow the links):
https://dokuwiki.librecad.org/doku.php/community:developer

At least, when you consider to put more efforts into this, git is a must have too.
Reply | Threaded
Open this post in threaded view
|

Re: API or similar tools for LibreCAD

VyasG_007
In reply to this post by flywire
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: API or similar tools for LibreCAD

VyasG_007
In reply to this post by LordOfBikes
CONTENTS DELETED
The author has deleted this message.