When importing a DXF file into a PIX4Dcloud project, it is possible to encounter issues that prevent the correct file display in the 2D viewer. This article provides solutions to the most common problems encountered after importing a DXF file as a Design Overlay.
IN THIS ARTICLE
DXF file is not displayed in the 2D viewer
DXF shifted with respect to the orthomosaic in the 2D viewer
Incorrect bounding box
Objects unsupported by the 2D viewer
DXF with incorrect scale
DXF with incorrect rotation
DXF file is not displayed in the 2D viewer
The DXF file has to be in the same coordinate system as the project created in PIX4Dcloud. If the coordinates are different, the file is not visible at the expected location, but it shows away from the project area.
This can happen when a DXF file is in a local coordinate system that is different from the project coordinate system. For this reason, it is necessary to georeference the DXF file before importing it into the project.
- Open the project on PIX4Dcloud and identify a point (Point 1) in the orthomosaic that is easy to find in the DXF file.
- Save the (x,y) coordinates of Point 1 in a text file.
- Open the drawing in AutoCAD.
- In the console, type Move.
- Select all objects of the DXF and hit Enter.
- Specify a Base Point (Point 1 that was identified in PIX4Dcloud) and hit Enter.
- In the console, write the coordinates of Point 1 (x,y) stored in the text file and hit Enter.
All the objects in the DXF file are now written in the project coordinate system. - Save the changes by clicking the save icon on the Menu bar.
- File name: Type the desired name.
- File of types: Select AutoCAD 2018 DXF (*.dxf).
- Import the new file into PIX4Dcloud.
For more information, Import a design file in DXF format into PIX4Dcloud.
DXF shifted with respect to the orthomosaic in the 2D viewer
It is possible that, when importing the DXF file as a Desing Overlay in PIX4Dcloud, it appears off with respect to the orthomosaic in the 2D viewer. The most common causes are the following.
Incorrect bounding box
There are elements outside the project area that make the bounding box of the data very large.
- Open the project on PIX4Dcloud and identify a point (Point 1) in the orthomosaic that is easy to find in the DXF file.
- Save the (x,y) coordinates of Point 1 in a text file.
- Open the drawing in AutoCAD.
- Select only the elements that must be seen on PIX4Dcloud and copy them by clicking Copy Clip on the Clipboard bar.
- Create a new CAD template and paste the selected objects of the DXF.
- In the new template, follow these steps:
- In the console, type Move.
- Select all the objects in the drawing and hit Enter.
- In the console, write the coordinates of Point 1 (x,y) stored in the text file and hit Enter.
- Save the changes by clicking the save icon on the Menu bar.
- File name: Type the desired name.
- File of types: Select AutoCAD 2018 DXF (*.dxf).
- Import the new DXF file into PIX4Dcloud.
Objects unsupported by the 2D viewer
The DXF file contains objects that the PIX4Dcloud viewer does not support.
- Open the drawing in AutoCAD.
- Select all the objects in the drawing.
- In the console, type EXPLODE.
- Save the file in the DXF format.
- Import the DXF file on PIX4Dcloud.
DXF with incorrect scale
It is possible that, when comparing the distance between two georeferenced points, the distance is not correct, and in this case, it is necessary to rescale the drawing.
Open the DXF file in AutoCAD and follow the instructions on how to scale a drawing in AutoCAD: How to resize or rescale an AutoCAD drawing.
DXF with incorrect rotation
It is possible that, when comparing the position of some points selected as a reference, the drawing is not rotated in the correct position.
Open the DXF file in AutoCAD and follow the instructions on how to rotate the drawing in AutoCAD: ROTATE (command).
Two other possible workarounds are described in the following link, Importing DXF - distortion/rotation issue.