Frame Generator Unique Number

Frame Generator Unique Number

Anonymous
Not applicable
807 Views
1 Reply
Message 1 of 2

Frame Generator Unique Number

Anonymous
Not applicable

I am looking for a way to reduce the digits of the unique number generated in the filename of frame generated parts.  The excessive 0's in the name cause confusion among our workers and cause problems with the machine code for our tube laser software.  By default it is an 8 digit number, 3 would be ideal for us.  We allow duplicate file names in the vault so that is not an issue.  Attached part is a custom profile with the default filename.  

 

Anyone have ideas?  

0 Likes
808 Views
1 Reply
Reply (1)
Message 2 of 2

AlexFielder
Advisor
Advisor

Hi @Anonymous,

 

I've often wondered if this was possible, but never really looked into it until I read your post just now.

 

Having just checked, the theory behind achieving this would revolve around capturing the OnActivateCommand event that fires when you launch the Frame Generator Tool (or at the very least store an attribute internally that it has been started).

 

Then you would simply need to wait for that command to end before firing and intercepting the .OnSaveDocument command to modify the filename of any part file whose name includes the default "umpteen zeroes".

 

I say "simply" above but this is far from simple.

 

It speaks volumes that there are several Ideas floating around for adding prefixes/modifications to the FG-created files as per your request, several of which I myself have added my +1.

 

I created the attached assembly as an example and also attached you will see the "Event Watcher log.txt" file which contains Event traffic captured whilst creating and then saving the resultant document as an example of what needs to be monitored.

 

TL;DR: It's doable, but not easy to implement.

 

Cheers,

 

Alex.

0 Likes