Share

ContentFamily Object


Description

The ContentFamily object represents a content center family and provides access to the information associated with a family.

Methods

Name Description
CreateMember Method that creates a member part for the specified table row. The full filename of the created member is returned. If the creation fails the FailureReason argument indicates the reason for failure.
GetCustomData Method that gets the specified custom data from the family. The custom data is returned if it exists or this method will fail if the specified custom data does not exist. You can use the HasCustomData property to determine if custom data exists.
HasCustomData Property indicates if the family has the specified custom data. Returns True if the data exists.
Save Method that saves the changes that have been made to this family. This method fails if the family is not modifiable

Properties

Name Description
ActiveCell Property that returns a floating cell object that caller can use for iterating the table using indices. Set the Row and Column properties on the returned object to iterate through the table.
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.
ContentIdentifier Property that returns the identifier for this object. This can be used with the GetContentObject method of the ContentCenter object to obtain this object at a later time.
Description Gets/Sets the description of this family.
DesignationColumn Property that returns the column representing family designation values.
DisplayName Gets/Sets the name of this family.
FamilyType Property that returns the constant that indicates what type of family this family is; kContentPartFamily or kContentFeatureFamily.
FileNameColumn Property that returns the column representing family file name values.
InternalName Property that returns the internal name of the ContentFamily. The internal name uniquely identifies this family with respect to other families in the library and it cannot be changed so it will remain consistent.
IsCustom Property that indicates if this family is a custom or standard family. A custom family has at least one custom column and requires the additional input of the values for the custom columns and a filename when creating a member of the family.
IsModifiable Property that indicates if this library is writable or not. Returns True in the case where the library is modifiable.
LibraryInternalName Property that returns the internal name of the library this family is defined within.
LibraryName Property that returns the display name of the library this family is defined within.
Manufacturer Gets/Sets the manufacturer of the parts within this family.
MemberDirectory Gets/Sets the name of the directory where family members are saved.
RevisionId Property that returns the family revision Id, which is a GUID in string format.
Standard Gets/Sets the standard this family is based on.
StandardOrganization Gets/Sets the standard organization this family is part of.
StandardRevision Gets/Sets the standard revision this family is based on.
TableColumns Property that returns the collection of columns for the table associated with this family.
TableRows Property that returns the collection of rows for the table associated with this family.
Thumbnail Gets/Sets the image used for the thumbnail of this family.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

ContentFamiliesEnumerator.Item, ContentTableCell.Parent, ContentTableColumn.Parent, ContentTableRow.Parent

Samples

Name Description
Replace content center part This sample demonstrates how to replace the content part referenced by an assembly occurrence.
Place Content Center Parts Places all of the items in a specified family within an assembly. The specific family is identified by the strings where it's setting the HexHeadNode variable.

Version

Introduced in version 2010

Was this information helpful?