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: 29.0
Syntax
VB
Function GetAppearanceAsset ( assetName As String, libraryName As String ) As AssetWrapper
C#
AssetWrapper GetAppearanceAsset( string assetName, string libraryName )
Parameters
- assetName
- Type: System.String
The asset name. - libraryName
- Type: System.String
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"