Hi Guys,
Thanks for the enthusiasm, I have to highlight some important points:

1. I started this as a hack initially to control some drawing constraints, then it grows to something bigger.
2. I used the standard Inkscape extension mechanism. So this "plugin" is a simple python extension.
3. I am not an Autocad user, so I can't compare with Autocad's lisp macro system.
4. What you get: In your script you can manipulate the current svg document. You can do whatever you want with it.
5. I have coded a general purpose Path object wrapper to create and modify paths in an OOP fashion.
6. The code of this extension is simple, not rocket science ;)
7. I am on travel, but next week I will push it to gitlab.
8. There is a lot of room for improvement.
9. Two more screenshots attached ;)

Cheers,
Frank.



On Sat, Mar 23, 2019 at 4:02 AM C R <cajhne@...155...> wrote:
Really exciting news! Thanks for your work! 

On Sat, 23 Mar 2019, 03:27 , <doctormo@...2149....155...> wrote:
Dear Frank Martínez,

This work looks really exciting. I'd love to get you in touch with
Thomas Wiesner who has done a similar work in progress merge request:

https://gitlab.com/inkscape/inkscape/merge_requests/417

This functionality is similar, although not exactly the same. I believe
though that issues around how python accesses the internal svg document
are going to be the same.

The landing plan for such a feature would have to be post 1.0, so if
you were able to produce a branch on GitLab, then we would review it
but only want to merge it in after the 1.0 release is out the door.

You can also join us at https://chat.inkscape.org to talk more to other
developers as well as sending your message to the inkscape-devel
mailing list.

Best Regards, Martin Owens

On Fri, 2019-03-22 at 20:42 -0500, Frank Martínez wrote:
> Hi Guys,
>
> Inkscape is amazing!, I am a professional software developer, I have
> been working in an embedded scripting plugin for Inkscape, I started
> doing it for my own purposes (designing electric guitars and CNC
> parts) And now I have complete support for python scripting inside
> inkscape. I will release the code as open source in Github or Gitlab
> as soon as I can write some documentation. The attached screenshot
> shows how it looks. The plugin has its own code editor with syntax
> highlight, compilation check, and run. It uses only python and gtk3,
> my working environment is Linux Mint, I am not sure if it will work
> out of the box in windows or mac yet, but i  am pretty sure it will
> run in all platforms eventually soon.
>
> The scripting environment gives full access to the svg document, xml
> manipulation and also Object Oriented wrappers (mainly for path
> creation and manipulation). Full python environment is also
> available. The scripting code is stored inside the document (<script>
> tags) and you can import external libraries too of course.
>
> I hope some contributions will make the project better with time.
> This is not a macro system, you can not record actions or invoke GUI
> actions, you can just write scripts inside the document and
> manipulate the document itself, move, transform, change attributes,
> create objects etc.. from python scripts.
>
> All your feedback will be welcome and I will be very pleased if the
> project result useful for the community.
>
> Cheers,
>
> Frank.
>
> _______________________________________________
> Inkscape-user mailing list
> Inkscape-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/inkscape-user



_______________________________________________
Inkscape-user mailing list
Inkscape-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user
_______________________________________________
Inkscape-user mailing list
Inkscape-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user


--
Frank D. Martínez M.