CamBam
News:
 
*
Welcome, Guest. Please login or register. April 23, 2014, 18:28:21 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Import Issues  (Read 740 times)
Haiduk
CNC Ewok
*
Offline Offline

Posts: 11


View Profile
« on: January 11, 2012, 05:41:23 am »

I do a lot of r/c aircraft modeling.  I tend to use DraftSight for the 2D work and 3DS Max for the 3d work.  

DXF files are exported as ANSII ver R12 from DraftSight, but some of the components get mirrored when imported into CamBam.  I have similar issues when importing 3ds files from 3DS Max.  Some components get rotated, mirrored, or lose their position when imported.  I can easily re-mirror the components imported via DXF with the extras plugin, but the 3DS imports are more difficult to reposition accurately in CamBam.  

I took some screenshots.  Take a look.


* DXF Import.jpg (87.65 KB, 1024x604 - viewed 83 times.)

* Should Be.jpg (96.2 KB, 1017x720 - viewed 78 times.)

* 3DS TEST export.jpg (167.62 KB, 980x754 - viewed 126 times.)

* 3DS TEST import.jpg (77.82 KB, 1188x737 - viewed 73 times.)
« Last Edit: January 11, 2012, 06:26:39 am by Haiduk » Logged
blowlamp
CNC Jedi
*****
Online Online

Posts: 1103


View Profile
« Reply #1 on: January 11, 2012, 08:20:03 am »

If you upload one of the dxf's that is showing the effect, we can see how it imports into our own CAD programs to see where the problem is.


Martin.
Logged
kvom
CNC Jedi
*****
Offline Offline

Posts: 916


View Profile
« Reply #2 on: January 11, 2012, 18:40:07 pm »

I've been exporting from Draftsight in 2007-2009 DXF mode, and have never had a problem with these files in CB.
Logged
Haiduk
CNC Ewok
*
Offline Offline

Posts: 11


View Profile
« Reply #3 on: January 11, 2012, 18:54:55 pm »

This file (Albatross-Sample.dxf) imports correctly into DraftSight, AutoCad R12, 3DS Max 2010, and SketchUp.  It has partial mirroring issues when importing into CamBam (see photos).

I also noticed that text imported via DXF doesn't consistently position and size as in the original drawing, especially if center or right justification is used.  I assume this is because CamBam only supports left justified text.

I suspect there was an oversight in the CamBam import routines that overlooks aspects in the objects world space position, world space displacement, or the objects coordinate system (OCS). I especially notice the issues when objects have been mirrored/rotated in the original drawing in DraftSight, AutoCad R12, or 3DSMax.

Note:  I found a work around for the issue with the 3DS import from 3DS MAX.  Basic steps are:  Create a new Box of any size centered on world coordinates x=y=z=0, attach all geometry to the box, delete just the box object, then detach all of the geometry.  This seems to confirm my suspicions about object orientation oversights in the DXF/3DS format import functions in CamBam.

EDIT:  Forgot to note I'm running CamBam 0.98L


* Sample-Imported.jpg (70.45 KB, 1209x750 - viewed 70 times.)

* Sample-ShouldBe.jpg (74.18 KB, 1079x612 - viewed 74 times.)
* Albatross-Sample.dxf (299.13 KB - downloaded 47 times.)
« Last Edit: January 11, 2012, 19:43:39 pm by Haiduk » Logged
blowlamp
CNC Jedi
*****
Online Online

Posts: 1103


View Profile
« Reply #4 on: January 11, 2012, 21:31:41 pm »

Your file loaded correctly into ViaCAD as well, so I saved it back out of ViaCAD and then it loaded into CamBam OK.

File attached.


Martin.

* alb.dxf (62.37 KB - downloaded 29 times.)
Logged
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 1948


Coding Jedi


View Profile WWW
« Reply #5 on: January 11, 2012, 22:06:29 pm »

Thank you for pointing this problem out.
I'll try and get this fixed for the next 'M' update.

The text problem may be a little tricky.  I remember there were problems handling DXF text which assumes default internal CAD (AutoCAD) fonts as the size/metrics of these fonts is not stored in the DXF.
I will look into it though as it has been a while since the DXF text importing was last looked at.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.145 seconds with 17 queries.

Copyright © 2008 HexRay Ltd. | Sitemap