Author Topic: [41] SOLVED - DXF import, part rotated by 90 degrees on import.  (Read 5643 times)

Offline dkemppai

  • Storm Trooper
  • ***
  • Posts: 121
    • View Profile
[41] SOLVED - DXF import, part rotated by 90 degrees on import.
« on: December 28, 2013, 20:22:42 pm »
Hi,

I have a DXF file generated in autocad 2K, that when I imported it into cambam rotated part of the part by 90 degrees.

See attached files.

Thanks,
Dan
« Last Edit: July 07, 2018, 00:43:29 am by dh42 »

Offline kvom

  • CNC Jedi
  • *****
  • Posts: 1579
    • View Profile
Re: DXF import, part rotated by 90 degrees on import.
« Reply #1 on: December 29, 2013, 13:43:52 pm »
I loaded the DXF into Draftsight and exploded the main object.  Then it loads into CB correctly.

Offline dkemppai

  • Storm Trooper
  • ***
  • Posts: 121
    • View Profile
Re: DXF import, part rotated by 90 degrees on import.
« Reply #2 on: December 29, 2013, 14:42:49 pm »
Hi,

Thanks, I understand that it can be forced to load correctly. I was able to complete my machining, as the rotated part was only for reference anyway.

This file was generated by actual AutoCad. As such, my opinion is any issues importing the file would most likely be issues in the CamBam DXF import routines. My reason for posting the file is to bring attention to a potential weakness in the import routine itself. Possibly with a routines that read block positions or rotation angles?

FYI, Autocad opens, and saves the DXF file without issue.

I've experienced this a few times now. Has anyone else experienced similar issues?

Thanks,
Dan

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6078
    • View Profile
    • Cambam V1.0 French Doc
Re: DXF import, part rotated by 90 degrees on import.
« Reply #3 on: December 29, 2013, 16:17:41 pm »
Hello,

Same thing for me, I open the dxf in Autocad LT 2002, I explodes the shape and I re-saves the file in dxf and it's ok under Cambam.

++
David

Offline blowlamp

  • CNC Jedi
  • *****
  • Posts: 1183
    • View Profile
Re: DXF import, part rotated by 90 degrees on import.
« Reply #4 on: December 29, 2013, 16:39:38 pm »
All my software opens the part in the lower right quadrant - is that what's wrong?

Martin.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6078
    • View Profile
    • Cambam V1.0 French Doc
Re: DXF import, part rotated by 90 degrees on import.
« Reply #5 on: December 29, 2013, 16:47:32 pm »
All my software opens the part in the lower right quadrant - is that what's wrong?

Martin.

Hello Martin,

No, the problem is that the shape is rotated 90° around it's center in Cambam.

++
David

Offline blowlamp

  • CNC Jedi
  • *****
  • Posts: 1183
    • View Profile
Re: DXF import, part rotated by 90 degrees on import.
« Reply #6 on: December 29, 2013, 17:48:41 pm »
Got you, David.


Martin.

Offline kvom

  • CNC Jedi
  • *****
  • Posts: 1579
    • View Profile
Re: DXF import, part rotated by 90 degrees on import.
« Reply #7 on: December 29, 2013, 21:27:22 pm »
Using Draftsight to experiment, it seems that the components are aggregated into a 'block', and CB doesn't handle blocks properly.  I've never used blocks in any drawings,  but it seems they would be useful since selecting one is equivalent to selecting all the components at once.

Offline dkemppai

  • Storm Trooper
  • ***
  • Posts: 121
    • View Profile
Re: DXF import, part rotated by 90 degrees on import.
« Reply #8 on: December 30, 2013, 03:50:10 am »
Using Draftsight to experiment, it seems that the components are aggregated into a 'block', and CB doesn't handle blocks properly.  I've never used blocks in any drawings,  but it seems they would be useful since selecting one is equivalent to selecting all the components at once.

The objects were in a block when the file was saved into a DXF. You are correct that blocks are useful. I use them all the time!

As for the earlier comment about the 4th quadrant, that's primarily the quadrant I use. Upper left corner is where I set my zero. Reason for that is the milling vice back jaw is the fixed one. Different parts all have the same reference corner that way!

Dan