Share

Asset Object


Description

The Asset object represents an appearance, material, or physical asset within a library.

Methods

Name Description
CopyTo Method that copies this asset to the specified target and returns the new asset. A failure will occur if you attempt to replace the asset itself..
Delete Method that deletes this asset from the library. An asset can only be deleted if it is not currently being used, which you can determine using the IsUsed property.
Duplicate Method that creates a copy of this asset within the document using a new display name. This method is only valid when called on an asset that is owned by a document. A failure will occur if you attempt to copy an asset that isn’t owned by a document and if the.

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.
AssetType Gets the data type that returns whether this is an appearance, physical properties, or material asset.
Category Gets the category that this asset is a member of. A value of Nothing indicates this asset is not a member of a category. A value of Nothing is also returned when an Asset is associated with a document, rather than a library. Categories don’t exist in a documen.
CategoryName Gets the name of the category this Asset is designated to be in. This can include the the category and subcategories which are delimited by a colon.
Count Gets the number of items in this collection.
DisplayName Gets and sets the name of this asset as seen in the Material or Appearance Browser.
HasTexture Gets the flag that indicates if this asset has texture.
IsReadOnly Gets the boolean flag that indicates if this asset is read-only. If True any attempted edits will fail.
IsUsed Gets the boolean flag that indicates if this asset is being used in the document or in a material definition.
Item Allows integer-indexed access to items in the collection.
LocalType Returns the local type of this asset. This is applicable to appearance asset.
Name Gets the key name of the asset. This name will remain constant for all languages and is the name used as input to the Item property.
Parent Read-only property that returns the parent object of this asset. This can return an AssetLibrary, or Document object.
Type Gets the constant that indicates the type of this object.

Accessed From

AliasFreeformFeature.Appearance, AliasFreeformFeatureProxy.Appearance, AssemblyComponentDefinition.DefaultVirtualComponentMaterial, Asset.CopyTo, Asset.Duplicate, Assets.Add, Assets.Item, AssetsEnumerator.Item, AssetValue.Parent, BendFeature.Appearance, BendFeatureProxy.Appearance, BendPartFeature.Appearance, BendPartFeatureProxy.Appearance, BooleanAssetValue.Parent, BossFeature.Appearance, BossFeatureProxy.Appearance, BoundaryPatchFeature.Appearance, BoundaryPatchFeatureProxy.Appearance, ChamferFeature.Appearance, ChamferFeatureProxy.Appearance, ChoiceAssetValue.Parent, CircularPatternFeature.Appearance, CircularPatternFeatureProxy.Appearance, ClientFeature.Appearance, ClientFeatureProxy.Appearance, CoilFeature.Appearance, CoilFeatureProxy.Appearance, ColorAssetValue.Parent, CombineFeature.Appearance, CombineFeatureProxy.Appearance, ComponentOccurrence.Appearance, ComponentOccurrenceProxy.Appearance, ContourFlangeFeature.Appearance, ContourFlangeFeatureProxy.Appearance, ContourRollFeature.Appearance, ContourRollFeatureProxy.Appearance, CoreCavityFeature.Appearance, CoreCavityFeatureProxy.Appearance, CornerChamferFeature.Appearance, CornerChamferFeatureProxy.Appearance, CornerFeature.Appearance, CornerFeatureProxy.Appearance, CornerRoundFeature.Appearance, CornerRoundFeatureProxy.Appearance, CosmeticBendFeature.Appearance, CosmeticBendFeatureProxy.Appearance, CutFeature.Appearance, CutFeatureProxy.Appearance, DecalFeature.Appearance, DecalFeatureProxy.Appearance, DeleteFaceFeature.Appearance, DeleteFaceFeatureProxy.Appearance, DirectEditFeature.Appearance, DirectEditFeatureProxy.Appearance, EmbossFeature.Appearance, EmbossFeature.TopFaceAppearance, EmbossFeatureProxy.Appearance, EmbossFeatureProxy.TopFaceAppearance, ExtendFeature.Appearance, ExtendFeatureProxy.Appearance, ExtrudeFeature.Appearance, ExtrudeFeatureProxy.Appearance, Face.Appearance, FaceDraftFeature.Appearance, FaceDraftFeatureProxy.Appearance, FaceFeature.Appearance, FaceFeatureProxy.Appearance, FaceOffsetFeature.Appearance, FaceOffsetFeatureProxy.Appearance, FaceProxy.Appearance, FilenameAssetValue.Parent, FilletFeature.Appearance, FilletFeatureProxy.Appearance, FinishDefinition.Appearance, FinishFeature.Appearance, FinishFeatureProxy.Appearance, FlangeFeature.Appearance, FlangeFeatureProxy.Appearance, FloatAssetValue.Parent, FoldFeature.Appearance, FoldFeatureProxy.Appearance, FreeformFeature.Appearance, FreeformFeatureProxy.Appearance, GraphicsNode.Appearance, GraphicsNodeProxy.Appearance, GrillFeature.Appearance, GrillFeatureProxy.Appearance, HemFeature.Appearance, HemFeatureProxy.Appearance, HoleFeature.Appearance, HoleFeatureProxy.Appearance, iFeature.Appearance, iFeatureProxy.Appearance, IntegerAssetValue.Parent, KnitFeature.Appearance, KnitFeatureProxy.Appearance, LipFeature.Appearance, LipFeatureProxy.Appearance, LoftedFlangeFeature.Appearance, LoftedFlangeFeatureProxy.Appearance, LoftFeature.Appearance, LoftFeatureProxy.Appearance, MarkFeature.Appearance, MarkFeatureProxy.Appearance, MaterialAsset.AppearanceAsset, MaterialAsset.CopyTo, MaterialAsset.Duplicate, MaterialAsset.PhysicalPropertiesAsset, MeshFeature.Appearance, MeshFeatureProxy.Appearance, MidSurfaceFeature.Appearance, MidSurfaceFeatureProxy.Appearance, MirrorFeature.Appearance, MirrorFeatureProxy.Appearance, MoveFaceFeature.Appearance, MoveFaceFeatureProxy.Appearance, MoveFeature.Appearance, MoveFeatureProxy.Appearance, NonParametricBaseFeature.Appearance, NonParametricBaseFeatureProxy.Appearance, PartDocument.ActiveAppearance, PartDocument.ActiveMaterial, PartFeature.Appearance, PresentationComponent.Appearance, PresentationExplodedView.Appearance, PresentationMeshFeature.Appearance, PublicationComponent.Appearance, PunchToolFeature.Appearance, PunchToolFeatureProxy.Appearance, RectangularPatternFeature.Appearance, RectangularPatternFeatureProxy.Appearance, ReferenceAssetValue.Parent, ReferenceAssetValue.Value, ReferenceAssetValue.Values, ReferenceFeature.Appearance, ReferenceFeatureProxy.Appearance, RefoldFeature.Appearance, RefoldFeatureProxy.Appearance, ReplaceFaceFeature.Appearance, ReplaceFaceFeatureProxy.Appearance, RestFeature.Appearance, RestFeatureProxy.Appearance, RevolveFeature.Appearance, RevolveFeatureProxy.Appearance, RibFeature.Appearance, RibFeatureProxy.Appearance, RipFeature.Appearance, RipFeatureProxy.Appearance, RuledSurfaceFeature.Appearance, RuledSurfaceFeatureProxy.Appearance, RuleFilletFeature.Appearance, RuleFilletFeatureProxy.Appearance, SculptFeature.Appearance, SculptFeatureProxy.Appearance, ShellFeature.Appearance, ShellFeatureProxy.Appearance, SketchDrivenPatternFeature.Appearance, SketchDrivenPatternFeatureProxy.Appearance, SnapFitFeature.Appearance, SnapFitFeatureProxy.Appearance, SplitFeature.Appearance, SplitFeatureProxy.Appearance, StringAssetValue.Parent, SurfaceBody.Appearance, SurfaceBodyProxy.Appearance, SurfaceGraphicsFace.Appearance, SweepFeature.Appearance, SweepFeatureProxy.Appearance, TextureAssetValue.Parent, ThickenFeature.Appearance, ThickenFeatureProxy.Appearance, ThreadFeature.Appearance, ThreadFeatureProxy.Appearance, TrimFeature.Appearance, TrimFeatureProxy.Appearance, UnfoldFeature.Appearance, UnfoldFeatureProxy.Appearance, UnwrapFeature.Appearance, UnwrapFeatureProxy.Appearance, VirtualComponentDefinition.ActiveMaterial, WeldmentComponentDefinition.DefaultVirtualComponentMaterial, WeldmentComponentDefinition.WeldBeadAppearance, WeldmentComponentDefinition.WeldBeadMaterial, WeldmentComponentDefinition.WeldEndFillAppearance

Derived Classes

MaterialAsset

Samples

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

Was this information helpful?