IManagedAssemblyGetAppearanceAsset Method (String, String) |
Gets an appearance asset from the document. If that fails it gets the appearance asset from a library and copies it to the document.
An error will occur if the appearance is not found.
Namespace:
Autodesk.iLogic.Interfaces
Assembly:
Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax Function GetAppearanceAsset (
assetName As String,
libraryName As String
) As AssetWrapper
AssetWrapper GetAppearanceAsset(
string assetName,
string libraryName
)
Parameters
- assetName
- Type: SystemString
The asset name. - libraryName
- Type: SystemString
The name of the asset library (e.g. "Inventor Material Library").
Return Value
Type:
AssetWrapperRemarks
For portability of code with asset names in different languages, the AssetNameLanguge
rule property is available. See the remarks section in IManagedAssembly.
It's best to use English names for the standard libraries. The AssetNameLanguge
property does not affect the search for libraries.
The available libraries are:
- "Autodesk Appearance Library"
- "Autodesk Material Library"
- "Inventor Material Library"
See Also