From 875dc2ceff65dd3936aefde03c76f7b77d2836fd Mon Sep 17 00:00:00 2001 From: janne Date: Wed, 11 May 2022 19:30:06 +0200 Subject: [PATCH] #6871 Use the variable 'cam_file' instead of trying to read an non-existing document. --- src/Mod/Path/PathScripts/post/nccad_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/post/nccad_post.py b/src/Mod/Path/PathScripts/post/nccad_post.py index ab9a03cdf1..2683870157 100644 --- a/src/Mod/Path/PathScripts/post/nccad_post.py +++ b/src/Mod/Path/PathScripts/post/nccad_post.py @@ -71,7 +71,7 @@ HEADER = """;Exported by FreeCAD ;CAM file: {} ;Output Time: {} """.format( - __name__, FreeCAD.ActiveDocument.FileName, str(datetime.datetime.now()) + __name__, cam_file, str(datetime.datetime.now()) )