Author Topic: BCL dfx file  (Read 750 times)

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1286
    • View Profile
BCL dfx file
« on: October 07, 2016, 07:56:57 PM »
My first attempt at using BCL with my own design file fails with error message:

"Premature end of entity definition"

My work path is openScad 3d design projected onto a 2D image and exported to either SVG or DFX. Up to now it has been svg and the cutting application was home brew on Linux. Loaded BCL 1.52 on a Windows 10 laptop and her I be.
dfx file attached. BTW, the dfx file opens ok with LibreOffice on Windows.
SARCASM - Just one more service we offer here.

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 2105
  • Pilot Instructor
    • View Profile
Re: BCL dfx file
« Reply #1 on: October 07, 2016, 10:14:24 PM »
The .dxf file does not load into BCL because there are no drawing objects that show up in the file.

I can load the file in QCAD and LibreCad but its internal structure shows 0 Entities (no drawing objects).

>projected onto a 2D image
I believe this is the reason but let me verify that.

See attachment.

Let me dig deeper into this file and I'll post back here what I find out.

Thanks for your patience.
« Last Edit: October 07, 2016, 10:18:38 PM by Administrator »
Admin -- Ralph -- support @ BenCutLaser dot us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.4a.exe.zip
BCL Paid license: $39.95
via Paypal to bclpp@primemail.com

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
    • View Profile
    • T2Laser
Re: BCL dfx file
« Reply #2 on: October 08, 2016, 04:33:49 AM »
There must be something in the file as it opens in T2Laser, of course I don't know if it opens correctly  ;D

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1286
    • View Profile
Re: BCL dfx file
« Reply #3 on: October 08, 2016, 05:13:56 AM »
Thanks. That is what it looks like. Rectangle with 2 rounded corners and three slots.
SARCASM - Just one more service we offer here.

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1286
    • View Profile
Re: BCL dfx file
« Reply #4 on: October 08, 2016, 05:21:10 AM »
@ralph - The 2d projection is an extra step for me. I have been using it to generate svg files where the arcs have been translated to a series of short lines by the host, not the laser CPU.
SARCASM - Just one more service we offer here.

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: BCL dfx file
« Reply #5 on: October 08, 2016, 07:05:17 AM »
When I opened the file in version 1.5.0 of BCL it said that the file needed to be in MM or IN so I opened it up in Draftsight and changed the units from unitless to millimeters.

Before Ralph fusses at me I'm going to go download the latest version of BCL and try it there too. ;)

Agastar

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1878
    • View Profile
Re: BCL dfx file
« Reply #6 on: October 08, 2016, 07:12:49 AM »
Ok, so BCL 1.5.0 told me what the problem was but BCL 1.5.3 gave the same error "Premature end of entity definition".

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 2105
  • Pilot Instructor
    • View Profile
Re: BCL dfx file
« Reply #7 on: October 08, 2016, 07:19:09 AM »
Yes, @Agastar was correct: the file had 'None' for drawing units.

I set it to Inches and then did a 'Save As' and then it loaded into BCL ok.

However, the drawing still has two problems, one of them major:

1. Minor: While the drawing objects used will work, it is not efficient. The corners are done using very short straight lines. These should be changed to Arcs if possible.

2. Major: The problem here is the drawing scale. The height of this part is 23.3 feet (280 inches). By using the Virtual Laser Machine (VLM) within BCL, I was able to easily see the scaling problem. The picture shows the lower left corner of the part against material that is 4x6 inches.

UPDATE: Once Rulers are added to BCL main canvas, the scaling problem will be seen right away.

See attachments.
« Last Edit: October 08, 2016, 07:24:50 AM by Administrator »
Admin -- Ralph -- support @ BenCutLaser dot us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.4a.exe.zip
BCL Paid license: $39.95
via Paypal to bclpp@primemail.com

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 2105
  • Pilot Instructor
    • View Profile
Re: BCL dfx file
« Reply #8 on: October 08, 2016, 07:22:55 AM »
Ok, so BCL 1.5.0 told me what the problem was but BCL 1.5.3 gave the same error "Premature end of entity definition".

I'm going to work on BCL giving better error messages. Thanks for pointing this out.
Admin -- Ralph -- support @ BenCutLaser dot us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.4a.exe.zip
BCL Paid license: $39.95
via Paypal to bclpp@primemail.com

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
    • View Profile
    • T2Laser
Re: BCL dfx file
« Reply #9 on: October 08, 2016, 08:59:36 AM »
You made it that large by using inches, set it to mm and it makes sense.

In T2Laser I have settings to select either mm (default) or inches if no units are specified, that may be something you could ask the user if it detects the error.

Administrator

  • Administrator
  • Hero Member
  • *****
  • Posts: 2105
  • Pilot Instructor
    • View Profile
Re: BCL dfx file
« Reply #10 on: October 08, 2016, 09:31:38 AM »
Yeah, it should be MM. When I went into QCAD's Drawing Preferences, I saw Paper was set to Inches so that's what I set the Drawing Units to...but clearly that wasn't correct. I should have set them both to MM as you said.

Attached is how it looks with MM set in the VLM with the material set to 4x12 inches (152.4x304.8 mm).
Admin -- Ralph -- support @ BenCutLaser dot us
http://www.BenCutLaser.us/BenCutLaserSetup1.8.4a.exe.zip
BCL Paid license: $39.95
via Paypal to bclpp@primemail.com

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1286
    • View Profile
Re: BCL dfx file
« Reply #11 on: October 08, 2016, 10:43:41 AM »
Thanks for doing this effort. We are away for a couple of days. Gee, no laser but I did bring the L7 controller.
SARCASM - Just one more service we offer here.