two CAM-like plugins, and other stuff

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

two CAM-like plugins, and other stuff

DietmarKuehn
Hallo people,
i am new on this list.
Since 10 years i worked with qcad. Some days ago i tried librecad, and
now it is my working platform.
By profession i'm a CNC programmer for milling machines.

The "list entities" -plugin give me the idea of writing my own plugins,
usable like a simple CAM.
The first experiment write lines for milling contours, and the second
creates bore hole patterns.

See https://github.com/DietmarK/librecad for more details. The code is
not professional, but it works for me.
The generated CNC-code is for Heidenhain-NC. It can be modified for
other NC's, such as G-code.

For a better work with librecad i added some modifications to the code,
see readme-librecad-modified-sources.
Try it out!

I hope it is helpful.

Dietmar
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

R. van Twisk
Administrator
Dietmar,

that's pretty cool!
I started my own CAM plugins for profiling and pocketing, but didn't had time to finnish that myself.
There is some new light though since a Libreary is in development that allows for doing that.

note to myself, may be it's a good idea to start a LibreCAD plugins project where people can submit code?
And may be a way for plugin naming… just some random thoughts.

Ries

On Jan 20, 2012, at 2:16 PM, DietmarKuehn [via LibreCAD] wrote:

Hallo people,
i am new on this list.
Since 10 years i worked with qcad. Some days ago i tried librecad, and
now it is my working platform.
By profession i'm a CNC programmer for milling machines.

The "list entities" -plugin give me the idea of writing my own plugins,
usable like a simple CAM.
The first experiment write lines for milling contours, and the second
creates bore hole patterns.

See https://github.com/DietmarK/librecad for more details. The code is
not professional, but it works for me.
The generated CNC-code is for Heidenhain-NC. It can be modified for
other NC's, such as G-code.

For a better work with librecad i added some modifications to the code,
see readme-librecad-modified-sources.
Try it out!

I hope it is helpful.

Dietmar



If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161438.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

dxli
In reply to this post by DietmarKuehn
Hi Dietmar,

Just one comment:

It seems that you have being modifying the rs_grid part, where improvement is needed, as shown here:

http://sourceforge.net/tracker/index.php?func=detail&aid=3437105&group_id=342582&atid=1433847

Thanks,

Dongxu

On Fri, Jan 20, 2012 at 2:16 PM, DietmarKuehn [via LibreCAD] <[hidden email]> wrote:
Hallo people,
i am new on this list.
Since 10 years i worked with qcad. Some days ago i tried librecad, and
now it is my working platform.
By profession i'm a CNC programmer for milling machines.

The "list entities" -plugin give me the idea of writing my own plugins,
usable like a simple CAM.
The first experiment write lines for milling contours, and the second
creates bore hole patterns.

See https://github.com/DietmarK/librecad for more details. The code is
not professional, but it works for me.
The generated CNC-code is for Heidenhain-NC. It can be modified for
other NC's, such as G-code.

For a better work with librecad i added some modifications to the code,
see readme-librecad-modified-sources.
Try it out!

I hope it is helpful.

Dietmar



If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161438.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML



--
Dongxu Li, Ph.D.
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

Rallaz
Hello Dietmar,

Yours changes in doc_plugin_interface.cpp and plugins/document_interface.h are Ok
Only one thing, I changed the line 102 for:
        REVERSED=291    /*!< bool: true if arc is reversed (clockwise) */
to maintain the "dxf like" and I send a pull request and these lines are part of master source
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

DietmarKuehn
In reply to this post by R. van Twisk
Hallo Ries,
i am happy about Your response. But I am not suitable for leading a project, i am a absolute beginner in programming with QT.
It was a big work for me to create an account on github today, it takes many hours.
Some years ago i wrote something in C (an simulation for CNC-milling programs) and in PHP, but with C++ i'm not so familiar.
You can see it in my code. But i am disposed to collaborate in such a projekt.
Excuse my bad english, i have forgotten most of them in last 40 years.

An other thing: it would make me happy, if someone could add some of my suggestions in the main code. It would release me from changing the code manually after every git clone.

Dietmar


Am 20.01.2012 20:22, schrieb R. van Twisk [via LibreCAD]:
Dietmar,

that's pretty cool!
I started my own CAM plugins for profiling and pocketing, but didn't had time to finnish that myself.
There is some new light though since a Libreary is in development that allows for doing that.

note to myself, may be it's a good idea to start a LibreCAD plugins project where people can submit code?
And may be a way for plugin naming… just some random thoughts.

Ries

On Jan 20, 2012, at 2:16 PM, DietmarKuehn [via LibreCAD] wrote:

Hallo people,
i am new on this list.
Since 10 years i worked with qcad. Some days ago i tried librecad, and
now it is my working platform.
By profession i'm a CNC programmer for milling machines.

The "list entities" -plugin give me the idea of writing my own plugins,
usable like a simple CAM.
The first experiment write lines for milling contours, and the second
creates bore hole patterns.

See https://github.com/DietmarK/librecad for more details. The code is
not professional, but it works for me.
The generated CNC-code is for Heidenhain-NC. It can be modified for
other NC's, such as G-code.

For a better work with librecad i added some modifications to the code,
see readme-librecad-modified-sources.
Try it out!

I hope it is helpful.

Dietmar



If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161438.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161453.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

DietmarKuehn
In reply to this post by dxli
Hallo Dongxu,
i modified the grid spacing from 1-10-100-1000  to 1-2-5-10-20-50 .
This behavior should be switchable in the settings menu, for users that
dont like it.
I need it for creating start and end-points for milling contours and so one.
It should go automatically, depending on zoom, not by user settings.

please look at my code pieces and try it out.

Dietmar


Am 20.01.2012 20:29, schrieb dxli [via LibreCAD]:

> Hi Dietmar,
>
> Just one comment:
>
> It seems that you have being modifying the rs_grid part, where
> improvement is needed, as shown here:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=3437105&group_id=342582&atid=1433847 
> <http://sourceforge.net/tracker/index.php?func=detail&aid=3437105&group_id=342582&atid=1433847>
>
> Thanks,
>
> Dongxu
>

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

R. van Twisk
Administrator
In reply to this post by DietmarKuehn
Dietmar,

I was actually thinking of having some for of a plugin structure within LibreCAD on github where people
can send and merge there code. This way, when persons clone LibreCAD they will automatically get
all available plugins everybody wrote…. random thoughts :)

Ries




On Jan 20, 2012, at 3:06 PM, DietmarKuehn [via LibreCAD] wrote:

Hallo Ries,
i am happy about Your response. But I am not suitable for leading a project, i am a absolute beginner in programming with QT.
It was a big work for me to create an account on github today, it takes many hours.
Some years ago i wrote something in C (an simulation for CNC-milling programs) and in PHP, but with C++ i'm not so familiar.
You can see it in my code. But i am disposed to collaborate in such a projekt.
Excuse my bad english, i have forgotten most of them in last 40 years.

An other thing: it would make me happy, if someone could add some of my suggestions in the main code. It would release me from changing the code manually after every git clone.

Dietmar


Am 20.01.2012 20:22, schrieb R. van Twisk [via LibreCAD]:
Dietmar,

that's pretty cool!
I started my own CAM plugins for profiling and pocketing, but didn't had time to finnish that myself.
There is some new light though since a Libreary is in development that allows for doing that.

note to myself, may be it's a good idea to start a LibreCAD plugins project where people can submit code?
And may be a way for plugin naming… just some random thoughts.

Ries

On Jan 20, 2012, at 2:16 PM, DietmarKuehn [via LibreCAD] wrote:

Hallo people,
i am new on this list.
Since 10 years i worked with qcad. Some days ago i tried librecad, and
now it is my working platform.
By profession i'm a CNC programmer for milling machines.

The "list entities" -plugin give me the idea of writing my own plugins,
usable like a simple CAM.
The first experiment write lines for milling contours, and the second
creates bore hole patterns.

See https://github.com/DietmarK/librecad for more details. The code is
not professional, but it works for me.
The generated CNC-code is for Heidenhain-NC. It can be modified for
other NC's, such as G-code.

For a better work with librecad i added some modifications to the code,
see readme-librecad-modified-sources.
Try it out!

I hope it is helpful.

Dietmar



If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161438.html
To start a new topic under LibreCAD, email <a moz-do-not-send="true" href="x-msg://1040/user/SendEmail.jtp?type=node&amp;node=5161453&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from LibreCAD, <a moz-do-not-send="true" href="x-msg://1040/" target="_top" rel="nofollow" link="external">click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161453.html
To start a new topic under LibreCAD-dev, email <a href="x-msg://1040/user/SendEmail.jtp?type=node&amp;node=5161553&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from LibreCAD-dev, <a moz-do-not-send="true" href="x-msg://1040/" target="_top" rel="nofollow" link="external">click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161553.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

DietmarKuehn
In reply to this post by Rallaz
hallo Rallaz,
thank you.

i have another question: how can i report a bug, when i found it in newest github-version? I have never maked a bug report.
Pease help me.

Dietmar


Am 20.01.2012 21:04, schrieb Rallaz [via LibreCAD]:
Hello Dietmar,

Yours changes in doc_plugin_interface.cpp and plugins/document_interface.h are Ok
Only one thing, I changed the line 102 for:
        REVERSED=291    /*!< bool: true if arc is reversed (clockwise) */
to maintain the "dxf like" and I send a pull request and these lines are part of master source



If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5161548.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

DietmarKuehn
In reply to this post by R. van Twisk
Ries,
it's a good idea. But i think, somebody has to overwork my code, i'm not
a professional.

Dietmar


Am 20.01.2012 21:17, schrieb R. van Twisk [via LibreCAD]:

> Dietmar,
>
> I was actually thinking of having some for of a plugin structure
> within LibreCAD on github where people
> can send and merge there code. This way, when persons clone LibreCAD
> they will automatically get
> all available plugins everybody wrote…. random thoughts :)
>
> Ries
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

maqifrnswa
On Fri, Jan 20, 2012 at 3:31 PM, DietmarKuehn [via LibreCAD]
<[hidden email]> wrote:
> Ries,
> it's a good idea. But i think, somebody has to overwork my code, i'm not
> a professional.

Don't feel like you can not contribute because you are not a
professional, I think very few who contribute are professional coders
but knowledgeable users like you!

Here's where you can submit bugs and feature requests:
http://sourceforge.net/tracker/?group_id=342582
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

anders.e.e.wallin
Here's some recent progress with my openvoronoi-project. It can now
take points and line-segments (simple polygons with islands) as input.
It can produce an approximate medial-axis (for v-carving), as well as
interior and exterior offsets.
http://www.anderswallin.net/2012/01/emc2-filters/

this is under very active development so things crash easily and APIs
can and will change abruptly without notice. I can help if someone
wants to write a plugin to librecad for this, but it's unlikely I can
do this on my own (unless you provide very easy examples+tutorials!)

Anders
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

R. van Twisk
Administrator

On Jan 21, 2012, at 6:52 AM, anders.e.e.wallin [via LibreCAD] wrote:

Here's some recent progress with my openvoronoi-project. It can now
take points and line-segments (simple polygons with islands) as input.
It can produce an approximate medial-axis (for v-carving), as well as
interior and exterior offsets.
http://www.anderswallin.net/2012/01/emc2-filters/

this is under very active development so things crash easily and APIs
can and will change abruptly without notice.

I can help if someone
wants to write a plugin to librecad for this, but it's unlikely I can
do this on my own (unless you provide very easy examples+tutorials!)

Anders,
I already started on the plugin we discussed.
High priority for me now are moving the blog and translation server over to the LibreCAD server
and create the wiki system for LibreCAD.

please…stay tuned :)

Ries


Anders



If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/two-CAM-like-plugins-and-other-stuff-tp5161438p5162504.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

diegoroman17_2
Hi guys,

I am interesting in can do a software cam based in LibreCAD. I have a cnc Laser run under LinuxCNC. Is posible to adapt LibreCAD to generate G-Code of cutting and engraver for LinuxCNC?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

R. van Twisk
Administrator
Through the plugin interface some basic CAM functionalities and G-Code generation should be perfectly possible.



On Jul 18, 2012, at 10:29 AM, diegoroman17_2 [via LibreCAD] wrote:

Hi guys,

I am interesting in can do a software cam based in LibreCAD. I have a cnc Laser run under LinuxCNC. Is posible to adapt LibreCAD to generate G-Code of cutting and engraver for LinuxCNC?

Thanks


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/two-CAM-like-plugins-and-other-stuff-tp5161438p5706900.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

diegoroman17_2
How I can use this plugin?I control the power laser with velocity spidle commands. Is it posible with the plugin?
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

Dubstar_04
In reply to this post by R. van Twisk
Ries,

Do you have any code for the CAM work that you have done?

I am currently looking at how to impliment such a plugin and i would like to see / use anything you have so far.

Thanks,

Dubstar_04
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

R. van Twisk
Administrator
Hey,

I did some initial work overhere : https://github.com/LibreCAM/LibreCAM

The current status is that some dialogs are working, but non of the CAM functions are implemented.
However, it does give you an idea how plugins in LibreCAD works.

Ries


On Dec 6, 2012, at 7:58 AM, Dubstar_04 [via LibreCAD] wrote:

Ries,

Do you have anycode for the CAM work that you have done?

I am currently looking at how to impliment such a plugin and i would like to see / use anything you have so far.

Thanks,

Dubstar_04


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/two-CAM-like-plugins-and-other-stuff-tp5161438p5707276.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: two CAM-like plugins, and other stuff

anders.e.e.wallin
In reply to this post by Dubstar_04



On Thu, Dec 6, 2012 at 2:58 PM, Dubstar_04 [via LibreCAD] <[hidden email]> wrote:
Ries,

Do you have anycode for the CAM work that you have done?

I am currently looking at how to impliment such a plugin and i would like to see / use anything you have so far.

I have done zero work on the plugin coding/API of LibreCAD, but if you were asking about the CAM algorithms for 2D or 2.5D toolpaths then I have been working on a library called openvoronoi. Take a look at the gallery:
https://picasaweb.google.com/106188605401091280402/OpenVoronoiExamples

There's been some interest in using openvoronoi from dxf2gcode ( a simple 2D/2.5D g-code generator), freecad (a 3D parametric CAD modeler), slic3r (a 3d-printer g-code generator), pycam, and so on. I hope to improve openvoronoi (there are corner-cases that cause crashes), and support some of these GUIs/Applications eventually.
If there's someone who is familiar with the LibreCAD geometry data representation and with the cam-plugin and GUI APIs then I can help with the openvoronoi integration. Note that openvoronoi requires an input format similar to PSLG described here:
https://www.cs.cmu.edu/~quake/triangle.defs.html


Anders

Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

Dubstar_04
Hi Anders,

I have been looking at your library with the intention of using it in a CAM plugin. I use HeeksCAD (CNC mill) and Slic3r (reprap) at the moment but i would like to use LibreCAD more for my CNC work.

I have only started looking at LibreCAD this week but i should be able to get a plugin GUI and CAM framework drafted up in the next few weeks.

I would really like it if you could help me use your library in LibreCAD and get a working cam plugin.

Once i have the GUI close and the CAM framework drafted together i will post here and hopefully we can move forward together.

Do you have any documentation i could look at in the meantime?

Examples using openvoronoi with C++ would be great.

Thanks,

Dubstar_04
Reply | Threaded
Open this post in threaded view
|

Re: two CAM-like plugins, and other stuff

getSurreal
So is there a functional CAM plugin for LibreCAD?
12