Author Topic: RC Modelers  (Read 3164 times)

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: RC Modelers
« Reply #30 on: August 19, 2016, 05:11:26 PM »
Correct, and I'm also planning on supporting SVG files too. My plan is to be able to read in PDF and SVG files and convert them to DXF and output to a file or a file stream. I'm also looking at handling rasters too so that objects can be traced or scanned and hopefully make it to where you and Zax can both benefit from it.

I have an idea of what needs to be done but I'd like to bounce it off of you and Zax and see if I'm headed in the right direction.

The PDF library can access the individual graphics and text in the PDF but it can also convert the entire PDF to an image. I don't see a way around tracing so a full page to image followed by tracing the image and text might work.

Right now I'm just using a PDF explorer app to look through different PDFs to see how Inkscape and other programs are laying out the objects in the PDF.

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 1934
  • Pilot Instructor
    • View Profile
Re: RC Modelers
« Reply #31 on: August 19, 2016, 05:26:07 PM »
Please keep in mind what .dxf drawing objects BCL supports...images is not one of them. A converter from PDF to image will help T2 Laser and I am ALL FOR THAT. But it won't help BCL.

As a reminder, here are the .dxf drawing objects that BCL currently supports:

1. Lines.
2. Arcs.
3. Circles.
4. Polylines.
5. Ellipses.
6. Elliptical Arcs (E-Arcs).
7. Text (regular text/single line text).
8. MText (multi-line text).
9. Splines.
Ralph--Admin -- support_BenCutLaser_us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.3a.exe.zip
http://www.BenCutLaser.us/BCLVirtualLaserMachineSetup1.8.2.exe.zip
BCL Paid license: $39.95
VLM Paid license: $19.95 (stand alone version)
via Paypal to bclpp@primemail.com

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: RC Modelers
« Reply #32 on: August 19, 2016, 06:58:19 PM »
Thanks, I was going to go back through the forum and see if I could find that list but you saved me the time :)

Yes, I was thinking about having an option to include or exclude images, that way you could always set it to exclude and Zax could set it to include (assuming Zax would be interested lol). Since you won't be needing them, no need to waste the time to render them.

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3511
    • View Profile
    • T2Laser
Re: RC Modelers
« Reply #33 on: August 20, 2016, 05:14:10 AM »
I'm interested for sure, just don't know how to implement it.

Images in a PDF are easily copied and saved, but SVG import of some kind would be great. If we could get the raster and vector that would be awesome.

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: RC Modelers
« Reply #34 on: August 20, 2016, 09:36:50 AM »
Thanks Zax, I will work closely with you and Ralph to make sure it meets both of your needs.

One option I have thought of is to return a file stream which would allow you to treat it as a file and work with the code you have. I can also return objects that have the properties you would need as well. My hope is to make it where you guys don't have to do much code alterations to implement it in your applications.

I have the three open source libraries I need for each piece and I'm getting my head wrapped around how each works so I can figure out how to bring them all together. Along with that I'm working on getting more familiar with the PDF, DXF, and SVG file types. Once I have a better understanding of all this, I'll be able to come up with a solution to make it all work.

If you guys don't mind, I'm sure I'll have a few questions along the way and I'd like to bounce ideas off the both of you. If you would wrather, we can discuss the details over PMs.

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 1934
  • Pilot Instructor
    • View Profile
Re: RC Modelers
« Reply #35 on: August 20, 2016, 09:47:34 AM »
We can communicate via PMs or emails or I could create a board just for this project. That way, anyone who might be interested in watching how these kinds of things are developed can read the threads...those that have no interest can ignore. I'll go with what ever method you two prefer...it makes no difference to me.

Agastar, we should have a name for your project...we need a way to identify it when we are talking about it...what project names come to mind?
Ralph--Admin -- support_BenCutLaser_us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.3a.exe.zip
http://www.BenCutLaser.us/BCLVirtualLaserMachineSetup1.8.2.exe.zip
BCL Paid license: $39.95
VLM Paid license: $19.95 (stand alone version)
via Paypal to bclpp@primemail.com

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: RC Modelers
« Reply #36 on: August 20, 2016, 10:05:05 AM »
lol, I'm horrible with project names. I've been trying to figure out what to even name the project and solution lol. I'm certainly open to suggestions. Only thing I have come up with so far was PDFnSVG2DXF but the output won't be just DXF if it also handles rasters too. Yeah, definitely open to suggestions :)

I don't mind sharing the details or even the source code on here, just thought I'd throw that out there in case either of you wanted to keep the interfacing aspects private. We can certainly aim for something generic so that anyone can import this into their project and use it as well. 

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 1934
  • Pilot Instructor
    • View Profile
Re: RC Modelers
« Reply #37 on: August 20, 2016, 10:20:18 AM »
@Zax and I have used each other as technical resources and have answered questions by sending examples of our code to each other.

Your working with open source code so its fine to show snippets of it here. I don't have any issues with exposing my interface code to your code. But we may not even have to do that. Once you provide us with the way to make a given call and the arguments needed, we'll be able to figure out how to make the call in our code.

Anyway, let's see what Mr. Zax has to say about where he wants us to communicate from: PMs, Emails or a dedicated Board here.

Project name...yeah...hmmmm....still thinking...
Ralph--Admin -- support_BenCutLaser_us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.3a.exe.zip
http://www.BenCutLaser.us/BCLVirtualLaserMachineSetup1.8.2.exe.zip
BCL Paid license: $39.95
VLM Paid license: $19.95 (stand alone version)
via Paypal to bclpp@primemail.com

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: RC Modelers
« Reply #38 on: August 20, 2016, 10:24:01 AM »
Sounds good, I'm open to whatever works best for you guys.

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 1934
  • Pilot Instructor
    • View Profile
Re: RC Modelers
« Reply #39 on: August 20, 2016, 10:28:05 AM »
@Agastar

There are a couple of ways for your project to work:

1. You provide a .dll and we (@Zax and I) use it and write code in our apps to do the conversion to get the target .dxf file and auto-load it into our software.

2. You write an application that anyone can start up and they select the source .pdf or source .svg file and then click on a Convert button and it writes out a .dxf file.
This second option is more flexible because it gives users the ability to generate the .dxf outside of T2/BCL and then they COULD load that .dxf into their CAD software and edit it if they needed to and I'm thinking some will need to. They wouldn't get that option if we sucked in their pdf/svg files and spit out a .dxf file that we auto-load.

Are you able to write an application to work like that? And what are your thoughts on those two options?
Ralph--Admin -- support_BenCutLaser_us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.3a.exe.zip
http://www.BenCutLaser.us/BCLVirtualLaserMachineSetup1.8.2.exe.zip
BCL Paid license: $39.95
VLM Paid license: $19.95 (stand alone version)
via Paypal to bclpp@primemail.com

treinbert

  • Full Member
  • ***
  • Posts: 156
  • Just into laser cutting & 3D-printing
    • View Profile
Re: RC Modelers
« Reply #40 on: August 20, 2016, 11:30:10 AM »
The second option is indeed more flexible and users can use it also for other purposes.

Regards,
Bert
Hartelijke groeten/Best regards/Freundlichen Gruessen,
Bert Mengerink

Prusa I3/Renkforce 100,
Benbox A3 with 2500mW/3500mW laser
Various Raspberry PI's (2 & 3)
Windows 10
MAC OSX

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: RC Modelers
« Reply #41 on: August 20, 2016, 02:33:46 PM »
Sure! I normally include a console app project in my solution for testing but I can certainly add a windows application project in there instead. The dll will still be compiled as part of the class library project so it can be used in the app or anyone else's app.

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 1934
  • Pilot Instructor
    • View Profile
Re: RC Modelers
« Reply #42 on: August 20, 2016, 02:35:14 PM »
Sounds perfect...!!!
Ralph--Admin -- support_BenCutLaser_us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.3a.exe.zip
http://www.BenCutLaser.us/BCLVirtualLaserMachineSetup1.8.2.exe.zip
BCL Paid license: $39.95
VLM Paid license: $19.95 (stand alone version)
via Paypal to bclpp@primemail.com

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3511
    • View Profile
    • T2Laser
Re: RC Modelers
« Reply #43 on: August 20, 2016, 03:16:38 PM »
I sent Agastar a PM suggesting e-mail but I'm also open to discussion here.

It sounds very interesting, a DLL would probably be easiest for integration to T2Laser but a standalone GUI for people that don't want to use T2Laser sounds like a good suggestion also.


Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 1934
  • Pilot Instructor
    • View Profile
Re: RC Modelers
« Reply #44 on: August 20, 2016, 03:26:21 PM »
Let's get some help with a name and then once we have a name, I will create a dedicated board in the Software group for the project.

Here are some names to get the ball rolling:

PDFtoDXF
PDF2DXF
Convert2DXF
PDFRecaster
PDFTransformer
PDFintoDXF
PDFWizard
PDFMagic
Ralph--Admin -- support_BenCutLaser_us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.3a.exe.zip
http://www.BenCutLaser.us/BCLVirtualLaserMachineSetup1.8.2.exe.zip
BCL Paid license: $39.95
VLM Paid license: $19.95 (stand alone version)
via Paypal to bclpp@primemail.com