FileResolution
The FileResolution event notifies the client whenever Inventor needs to find the location of a file on disk (file resolution), for example for each referenced document when an assembly is opened. The event is sent before Inventor starts its standard resolution, so a custom full file name can be supplied instead. Only _Pre is available.
EventNames:
FileResolution_Pre
Parameters
Type |
Name |
Description |
|---|---|---|
String |
libraryName |
If the document is a library part, this argument provides the name of the library as defined in the active project. If it is not a library part this will be an empty string. |
String |
relativeFileName |
The relative filename of the document. This is typically just the filename but may also include relative path information. Inventor uses this in combination with the paths defined by the active project to resolve the location of the file. |
Examples:
FileResolution_Pre:
Register-InventorEvent -EventName FileResolution_Pre -Action 'PreFileResolution'
function PreFileResolution($libraryName, $relativeFileName) {
#Write event code here
}