Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
randyT9V9C
in reply to: cj.abraham

I include this code after the comments section in the post which adds the file name, date, and etc.

 

if (hasGlobalParameter("generated-at"))                      
  {                                                    
      var value = getGlobalParameter("generated-at");
      if (value)
     {
      writeComment(value);
      }
  }

if (hasGlobalParameter("generated-by"))                      
  {                                                    
      var value = getGlobalParameter("generated-by");
      if (value)
     {
      writeComment(value);
      }
  }

if (hasGlobalParameter("document-path"))                      
  {                                                    
      var value = getGlobalParameter("document-path");
      if (value)
     {
      writeComment(value);
      }
  }

if (hasGlobalParameter("username"))                      
  {                                                    
      var value = getGlobalParameter("username");
      if (value)
     {
      writeComment(value);
      }
  }

It produces additional output like this, with the date, fusion 360 version, file name, and the designer login name. I normally include operation as the comment. Understand the date and time is in UTC not local time.

 

;(Monday, July 24, 2017 7:10:16 PM)
;(Fusion 360 CAM 2.0.3174)
;(plug v1)
;(randy)