Read filename from Autodesk Inventor's internal clipboard

Read filename from Autodesk Inventor's internal clipboard

Rene-J
Collaborator Collaborator
451 Views
4 Replies
Message 1 of 5

Read filename from Autodesk Inventor's internal clipboard

Rene-J
Collaborator
Collaborator
I am trying to read Filename from Autodesk Inventor's internal clipboard,
using the CommandManager.PeekPrivateEvent((PrivateEventTypeEnum.kFileNameEvent, ???))
but I don't understand how it works.
What do put in to " Data" ?

René J
0 Likes
452 Views
4 Replies
Replies (4)
Message 2 of 5

Rene-J
Collaborator
Collaborator
I'm still stumped on this. Any help would be appreciated

René J
0 Likes
Message 3 of 5

Anonymous
Not applicable
Why not just use Document.FullFileName? Where Document represents a document object (any document, part assembly, drawing, presentation)
0 Likes
Message 4 of 5

Anonymous
Not applicable
you can also use ...

ThisApplication.FileManager.GetFullFileName(filePathAsString)

this allows you get the name without having to open/store the file as a variable if you are just looking for the name to process real quick.
0 Likes
Message 5 of 5

Rene-J
Collaborator
Collaborator
Sorry
I know how to get the fullfilename from a document.
What I am trying to do, is get the filename before it appears in filesaveasdialog.
If I have understand Inventor behavior. Inventor is using the internal clipboard to send
filename to filesaveasdialog.
examble. If I place a file from the CC flatbar steel, Inventor is generete a filename
I will like to get the filename before I it appears in filesaveasdialog
If I understand the Inventor help, this function will do it.

CommandManager.PeekPrivateEvent((PrivateEventTypeEnum.kFileNameEvent, ???))

René J
0 Likes