PrimaryContentItemBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# PrimaryContentItemBuilder Class

class `NXOpen.Drafting.``PrimaryContentItemBuilder`

  Bases: `NXOpen.TaggedObject`, `NXOpen.GeometricUtilities.IComponentBuilder`

  Represents a `NXOpen.Drafting.PrimaryContentItemBuilder`.

  This class is used to specify information pertaining to the primary content of a Drawing Booklet. Each instance represents a single drawing in a booklet.

  To create a new instance of this class, use `NXOpen.Drafting.AutomationManager.CreatePrimaryContentItemBuilder()`

  New in version NX8.0.0.

# Properties

Property | Description
--- | ---
Content | Returns the content.
GeometryTemplate | Returns or sets the geometry template.
Tag | Returns the Tag for this object.

# Methods

Method | Description
--- | ---
Validate | Validate whether the inputs to the component are sufficient for commit to be called.

# Property Detail

## Content

`PrimaryContentItemBuilder.``Content`

  Returns the content.

  `-------------------------------------`

  Getter Method

  Signature `Content`

  Returns: |
  Return type: | `NXOpen.Assemblies.SelectComponentList`

  New in version NX8.0.0.

  License requirements: None.

## GeometryTemplate

`PrimaryContentItemBuilder.``GeometryTemplate`

  Returns or sets the geometry template.

  `-------------------------------------`

  Getter Method

  Signature `GeometryTemplate`

  Returns: |
  Return type: | str

  New in version NX8.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `GeometryTemplate`

  Parameters: | geometryTemplate (str) –

  New in version NX8.0.0.

  License requirements: nx_drawing_auto (“NX Drawing Automation”)

# Method Detail

## Validate

`PrimaryContentItemBuilder.``Validate`

  Validate whether the inputs to the component are sufficient for commit to be called.

  If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

  Signature `Validate()`

  Returns: | Was self validation successful
  Return type: | bool

  New in version NX3.0.1.

  License requirements: None.