07-24-2017
12:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-24-2017
12:16 PM
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)
Fusion