Share

AssetCategory Object


Description

The AssetCategory object represents a category within a library.

Methods

Name Description
AddAsset Adds the specified asset to this category. The asset must exist in the same library as the category and the library must not be read-only. If the asset is already in another category, it will be moved to this category.
Delete Method that deletes this category from the library. Any assets associated with the category will also be deleted.

Properties

Name Description
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.
Assets Gets the assets associated with category.
DisplayName Gets and sets the name of this category as seen in the Material or Appearance Browser.
Parent Gets the parent object from whom this object can logically be reached.
Type Read-only property returning kAssetCategoryObject indicating this object’s type.

Accessed From

Asset.Category, AssetCategories.Add, AssetCategories.Item, MaterialAsset.Category

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.

Version

Introduced in version 2014

Was this information helpful?