TitleBlockDefinition Object
Description
The TitleBlockDefinition object represents a title block definition.
Methods
CopyTo |
Method that copies the definition to the target drawing document. |
Delete |
Method that deletes the TitleBlockDefinition object. This method will fail in the case where the definition is being referenced. This can be determined by using the IsReferenced property. |
Edit |
Method that opens a copy of the title block definition's sketch for edit in the Sketch environment. Returns \Output DrawingSketch created by copying the sketch associated with the title block definition. |
ExitEdit |
Method that closes the currently active sketch (see below for limitations) and depending on the input parameters, replaces the sketch of the title block definition with the edited sketch. |
GetReferenceKey |
Method that generates and returns the reference key for this entity. |
Properties
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. |
AttributeSets |
Property that returns the AttributeSets collection object associated with this object. |
IsReferenced |
Property that specifies if the title block definition is being referenced or not. A title block definition is referenced whenever it is used on a sheet. A referenced title block definition cannot be deleted. |
Name |
Gets and sets the name of the title block definition. |
Parent |
Property returning the parent . |
Sketch |
Property that returns the sketch associated with the title block definition. The DrawingSketch returned by the Sketch property supports all query functionality but cannot be edited. To edit the contents of a title block definition, use the Edit method. This creates a copy of the title block definition's sketch for edit. The ExitEdit method of the TitleBlockDefinition can then be used to save the edited sketch as the title block definition's sketch. |
Type |
Returns an ObjectTypeEnum indicating this object's type. |
Accessed From
SheetFormat.ReferencedTitleBlockDefinition,
TitleBlock.Definition,
TitleBlockDefinition.CopyTo,
TitleBlockDefinitions.Add,
TitleBlockDefinitions.Item
Samples
Title Block Definition Create and Insert |
This sample illustrates creating a new title block definition object and inserting it into the active sheet. This sample consists of two subs. The first demonstrates the creation of a title block definition and the second inserts it into the active sheet. |
Copying a title block definition |
This sample demonstrates copying a title block definition from one drawing to another and replacing the existing title blocks in the drawing with the new title block. |
Version
Introduced in version 5.3