Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OpenSCAD version 2019.01-RC2 Import fails without error when using relative path
- translate([0,0,50]) import ("PRINT3D/FILE.stl"); // this one is displayed
- translate([0,0,-50]) import ("FILE.stl");
- I'm trying to import a stl file, which is located at /home/ben/Documents/PRINT3D/FILE.stl, the file NOTFOUND.stl don't exist.
- when i start a new file by starting new instance of openscad, then select "new" without saving the file,
- i type the following code
- import ("PRINT3D/NOTFOUND1.stl");
- translate([-50,0,50]) import ("Documents/PRINT3D/FILE.stl"); // this one is displayed
- translate([0,0,50]) import ("PRINT3D/FILE.stl");
- import ("PRINT3D/NOTFOUND2.stl");
- translate([0,0,-50]) import ("FILE.stl");
- import ("NOTFOUND3.stl");
- Compiling design (CSG Tree generation)...
- DEPRECATED: Imported file (Documents/PRINT3D/FILE.stl) found in document root instead of relative to the importing module. This behavior is deprecated
- Compiling design (CSG Products generation)...
- WARNING: Can't open import file '/home/PRINT3D/NOTFOUND1.stl', import() at line 1
- WARNING: Can't open import file '/home/PRINT3D/FILE.stl', import() at line 3
- WARNING: Can't open import file '/home/PRINT3D/NOTFOUND2.stl', import() at line 4
- WARNING: Can't open import file '/home/FILE.stl', import() at line 5
- WARNING: Can't open import file '/home/NOTFOUND3.stl', import() at line 6
- Geometries in cache: 6
- when i start a new file by starting new instance of openscad, then select "open recent file" (recent file in /home/ben/Documents/PRINT3D/ ), then select file, new , without saving the file,
- import ("PRINT3D/NOTFOUND1.stl");
- translate([-50,0,50]) import ("Documents/PRINT3D/FILE.stl");
- translate([0,0,50]) import ("PRINT3D/FILE.stl"); // this one is displayed
- import ("PRINT3D/NOTFOUND2.stl");
- translate([0,0,-50]) import ("FILE.stl");
- import ("NOTFOUND3.stl");
- Compiling design (CSG Tree generation)...
- DEPRECATED: Imported file (Documents/PRINT3D/FILE.stl) found in document root instead of relative to the importing module. This behavior is deprecated
- Compiling design (CSG Products generation)...
- WARNING: Can't open import file '/home/ben/Documents/PRINT3D/NOTFOUND1.stl', import() at line 1
- WARNING: Can't open import file '/home/ben/Documents/PRINT3D/NOTFOUND2.stl', import() at line 4
- WARNING: Can't open import file '/home/ben/Documents/FILE.stl', import() at line 5
- WARNING: Can't open import file '/home/ben/Documents/NOTFOUND3.stl', import() at line 6
- Geometries in cache: 5
- i save the project under /home/ben/Documents/PRINT3D/test.scad , then press F5
- import ("PRINT3D/NOTFOUND1.stl");
- translate([-50,0,50]) import ("Documents/PRINT3D/FILE.stl");
- translate([0,0,50]) import ("PRINT3D/FILE.stl");
- import ("PRINT3D/NOTFOUND2.stl");
- translate([0,0,-50]) import ("FILE.stl"); // this one is displayed
- import ("NOTFOUND3.stl");
- Compiling design (CSG Products generation)...
- WARNING: Can't open import file '/home/ben/Documents/PRINT3D/PRINT3D/NOTFOUND1.stl', import() at line 1
- WARNING: Can't open import file '/home/ben/Documents/PRINT3D/Documents/PRINT3D/FILE.stl', import() at line 2
- WARNING: Can't open import file '/home/ben/Documents/PRINT3D/PRINT3D/FILE.stl', import() at line 3
- WARNING: Can't open import file '/home/ben/Documents/PRINT3D/PRINT3D/NOTFOUND2.stl', import() at line 4
- WARNING: Can't open import file '/home/ben/Documents/PRINT3D/NOTFOUND3.stl', import() at line 6
- Geometries in cache: 10
- then i press F5
- Parsing design (AST generation)...
- Compiling design (CSG Tree generation)...
- Compiling design (CSG Products generation)...
- Geometries in cache: 10
- Geometry cache size in bytes: 2047616
- CGAL Polyhedrons in cache: 0
- CGAL cache size in bytes: 0
- Compiling design (CSG Products normalization)...
- Normalized CSG tree has 6 elements
- Compile and preview finished.
- Total rendering time: 0 hours, 0 minutes, 0 seconds
- and there is no more warning about file not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement