Interface: FileLinkMgr

Interfaces > Core Interfaces > FileLinkMgr

Previously available in Autodesk VIZ, this Core Interface is now part of 3ds Max 7 and higher.

Properties:

FileLinkMgr.numLinks : integer : Read 	 

Returns the number of linked files. Read-only.

   

Methods:

<bool>FileLinkMgr.Attach <String>filename fileformat:<enum> showUI:<bool>   

filename is In parameter   
fileformat enums: {#UseFileExt | #DWG | #DXF}   
fileformat default value: #UseFileExt   
showUI default value: false 

Attaches the specified file to the current scene. By default, the file extension of the specified file will determine the file format to be linked.

When the optional showUI parameter is set to True , the File Linking dialog will be displayed.

When set to False or not specified, the linking will be performed silently.

Returns True on success, False on failure.

   

<bool>FileLinkMgr.AttachWithPreset <String>filename <String>preset showUI:<bool> 

filename is In parameter 
preset is In parameter 
showUI default value: false 

Attaches the specified file name using the supplied preset.

When the optional showUI parameter is set to True , the File Linking dialog will be displayed.

Returns True on success, False on failure.

The preset string is the name of the preset inside <3dsmax>\plugcfg\filelink.ini, not the name of the file itself.

   

<bool>FileLinkMgr.Reload <integer>which showUI:<bool> translateMaterials:<bool> 

showUI default value: false 
translateMaterials default value: true 

Reloads the specified indexed File Link.

Returns True on success.

   

<bool>FileLinkMgr.Detach <integer>which 

Detaches the specified indexed File Link.

Returns True on success, False on failure.

   

<bool>FileLinkMgr.Bind <integer>which 

Removes specified indexed File Link.

Returns True on success, False on failure.

   

<bool>FileLinkMgr.IsAnyLinked <&node array>nodes 

nodes is In parameter 

Returns True if any of the specified nodes the supplied array originates from a linked file.

   

<bool>FileLinkMgr.ChangeFilename <integer>which <String>filename 

Changes the file name of the specified indexed File Link.

Returns True on success, False on failure.

   

<bool>FileLinkMgr.SelectNodes <integer>which clearCurrentSel:<bool> 

ClearCurrentSel default value: true 

Selects all nodes in the scene associated with specified indexed File Link.

Returns True on success, False on failure.