PropertySet Object
Description
Object that represents a PropertySet. This is a collection of related Properties. See the article in the overviews section.
Methods
Add |
Adds a new Property to this PropertySet. |
Delete |
Method that deletes this PropertySet. |
GetPropertyInfo |
Method that returns property info in the PropertySet. |
SetPropertyValues |
Method that batch sets property values in the PropertySet. If a specified name is not existent in the property set a new property with the specified name will be created. |
Properties
Count |
Property that returns the number of items in this collection. |
Dirty |
Property that returns a Boolean flag that indicates whether any of the Properties have been edited, deleted or created. |
DisplayName |
Gets/Sets the human-readable name associated with this Property Set. |
InternalName |
Gets the unambiguous, internal name (FMTID) associated with this PropertySet. |
Item |
Gets the Property given either its name or its sequential index. |
ItemByPropId |
Gets the Property in this set by its PropId. |
Name |
Gets the name of this PropertySet. |
Parent |
Property that returns the parent object from whom this object can logically be reached. |
Type |
Returns an ObjectTypeEnum indicating this object's type. |
Accessed From
Property.Parent,
PropertySets.Add,
PropertySets.Item
Samples
Using the BOM APIs |
This sample demonstrates the Bill of Materials API functionality in assemblies. |
Update iProperty values using Apprentice |
Updates some iProperty values using Apprentice. The document specified in the code for the Open method must exist. |
Create custom iProperties |
Creates custom iProperties of various types. A document must be open when this sample is run. |
Create or update custom iProperty |
This example creates a custom iProperty if it doesn't exist and updates the value if it does already exist. A part document must be open before runnin the sample. |
Get value of iProperty |
Demonstrates getting the values of the "Part Number" iProperty. Any property can be retrieved by accesing the correct property set and property.
A document must be open when this sample is run. |
Version
Introduced in version 4