Share

AssetLibrary Object


Description

The AssetLibrary object represents a material and appearance library which exists as a .asdklib file. A library can contain both appearance and physical material information.

Methods

Name Description
Remove Method that removes the library from the set of loaded libraries. The associated .adsklib file is not affected.

Properties

Name Description
AppearanceAssetCategories Gets the AssetCategories collection which provides access to the appearance related categories defined within this library.
AppearanceAssets Gets an Assets collection which provides access to all of the appearance assets in this library.
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
DisplayName Gets and sets the name of this library as seen in the Material or Appearance Browser.
FullFileName Gets the full filename of this library.
InternalName Gets the unique internal name of this library.
IsReadOnly Gets the boolean flag that indicates if this library is read-only. If True any attempted edits will fail.
MaterialAssetCategories Gets the AssetCategories collection which provides access to the material related categories defined within this library.
MaterialAssets Gets the Assets collection which provides access to all of the materials in this library.
PhysicalAssets Gets an Assets collection which provides access to all of the physical assets in this library. A physical asset defines the physical properties that are associated with a material.
Type Read-only property returning kAssetLibraryObject indicating this object’s type.

Accessed From

Application.ActiveAppearanceLibrary, Application.ActiveMaterialLibrary, AssetCategory.Parent, AssetLibraries.Add, AssetLibraries.Item, AssetLibraries.Open, InventorServer.ActiveAppearanceLibrary, InventorServer.ActiveMaterialLibrary, InventorServerObject.ActiveAppearanceLibrary, InventorServerObject.ActiveMaterialLibrary

Samples

Name Description
Write out all appearance information to a file. This sample writes out information about all of the appearances in all libraries. This can be useful when trying to use the API to modify existing appearances by allowing to easily see what information is available for an appearance.
Write out all materials to a file. This sample writes out information about all of the materials in all libraries. This can be useful when trying to use the API to modify existing materials by allowing to easily see what information is available for a material.
Write out all physical properties to a file. This sample writes out information about all of the physical properties in all libraries. This can be useful when trying to use the API to modify existing materials by allowing to easily see what information is available for a physical property.
Set the appearance of an occurrence. Sets the appearance of a selected occurrence in an assembly.

Version

Introduced in version 2014

Was this information helpful?