Share

AssetsEnumerator Object


Description

The AssetsEnumerator collection object provides access to a set of assets.

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.
Count Gets the number of items in this collection.
Item Read-only property that returns the specified Asset object from the collection.
Type Read-only property returning kAssetsEnumeratorObject indicating this object’s type.

Accessed From

Application.FavoriteAssets, AssemblyDocument.AppearanceAssets, AssemblyDocument.MaterialAssets, AssemblyDocument.PhysicalAssets, AssetCategory.Assets, AssetLibrary.AppearanceAssets, AssetLibrary.MaterialAssets, AssetLibrary.PhysicalAssets, InventorServer.FavoriteAssets, InventorServerObject.FavoriteAssets, PartDocument.AppearanceAssets, PartDocument.MaterialAssets, PartDocument.PhysicalAssets, PresentationDocument.AppearanceAssets

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.
Write out all document appearances This sample writes out information about all of the appearances in the active document. This can be useful when trying to use the API to modify existing appearances by allowing you to easily see what information is available for an appearance.
Write out all document materials to a file. This sample writes out information about all of the materials in the active document. This can be useful when trying to use the API to modify existing materials by allowing you to easily see what information is available for a material.
Write out all document physical properties to a file. This sample writes out information about all of the physical properties in the active document. This can be useful when trying to use the API to modify existing materials by allowing you to easily see what information is available for a physical property

Version

Introduced in version 2014