Share

Assets Object


Description

The Assets collection object provides access to assets within a library and supports the creation of new assets. Depending on where the Assets object was obtained from it will provide access to different types of assets.

Methods

Name Description
Add Method that creates a new asset. The new created Asset object is returned. Currently only material and appearance assets can be created. When a material asset is created a physical asset is automatically created that is associated with it that you can edit.

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 kAssetsObject indicating this object’s type.

Accessed From

AssemblyDocument.Assets, PartDocument.Assets

Samples

Name Description
Create a simple appearance. Creates a sample appearance in the active part or assembly document.
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?