Interface: FileLinkMgr

Previously available in Autodesk VIZ, the FileLinkMgr is now part of 3ds Max 7 and higher.

Properties:

.numLinks : integer : Read

Returns the number of linked files. Read-only.

Methods:

<bool>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.

<bool>AttachWithPreset <String>filename <&TSTR>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.

<bool>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>Detach <integer>which

Detaches the specified indexed File Link. Returns True on success.

<bool>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>ChangeFilename <integer>which <&TSTR>filename

Changes the file name of the specified indexed File Link. Returns True on success.

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

ClearCurrentSel default value: true

<bool>Bind <integer>which

Removes specified indexed File Link. Returns True on success.

<bool>ChangeFilename <integer>which <&TSTR>filename

Changes the file name of the specified indexed File Link. Returns True on success.

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

Selects all nodes in the scene associated with specified indexed File Link. Returns True on success.