LayoutDrawingSheetCollection Class¶
-
class
NXOpen.Layout2d.
LayoutDrawingSheetCollection
¶ Bases:
object
Represents a collection of :py:class:`NXOpen.Layout2d.LayoutDrawingSheet`s.
To obtain an instance of this class, refer to
NXOpen.Part
New in version NX12.0.0.
Methods¶
Method | Description |
---|---|
CreateConvertLayoutToSheetBuilder | Creates a NXOpen.Layout2d.ConvertLayoutToSheetBuilder |
CreateConvertSheetToLayoutBuilder | Creates a NXOpen.Layout2d.ConvertSheetToLayoutBuilder |
CreateLayoutDrawingSheetBuilder | Creates a NXOpen.Layout2d.LayoutDrawingSheetBuilder |
FindObject | Finds the NXOpen.Layout2d.LayoutDrawingSheet with the given identifier as recorded in a journal. |
InsertSheet | Inserts a layout drawing sheet into a part. |
Method Detail¶
CreateConvertLayoutToSheetBuilder¶
-
LayoutDrawingSheetCollection.
CreateConvertLayoutToSheetBuilder
¶ Creates a
NXOpen.Layout2d.ConvertLayoutToSheetBuilder
Signature
CreateConvertLayoutToSheetBuilder()
Returns: the convert layout to sheet builder Return type: NXOpen.Layout2d.ConvertLayoutToSheetBuilder
New in version NX12.0.0.
License requirements: nx_layout (“NX Layout”)
CreateConvertSheetToLayoutBuilder¶
-
LayoutDrawingSheetCollection.
CreateConvertSheetToLayoutBuilder
¶ Creates a
NXOpen.Layout2d.ConvertSheetToLayoutBuilder
Signature
CreateConvertSheetToLayoutBuilder()
Returns: the convert sheet to layout builder Return type: NXOpen.Layout2d.ConvertSheetToLayoutBuilder
New in version NX12.0.0.
License requirements: nx_layout (“NX Layout”)
CreateLayoutDrawingSheetBuilder¶
-
LayoutDrawingSheetCollection.
CreateLayoutDrawingSheetBuilder
¶ Creates a
NXOpen.Layout2d.LayoutDrawingSheetBuilder
Signature
CreateLayoutDrawingSheetBuilder(layoutDrawingSheet)
Parameters: layoutDrawingSheet ( NXOpen.Layout2d.LayoutDrawingSheet
) – reserved for future use, set to 0Returns: the layout drawing sheet builder Return type: NXOpen.Layout2d.LayoutDrawingSheetBuilder
New in version NX12.0.0.
License requirements: nx_layout (“NX Layout”)
FindObject¶
-
LayoutDrawingSheetCollection.
FindObject
¶ Finds the
NXOpen.Layout2d.LayoutDrawingSheet
with the given identifier as recorded in a journal.An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
Signature
FindObject(journalIdentifier)
Parameters: journalIdentifier (str) – Identifier of the Layout drawing sheet you want Returns: Layout drawing sheet with this identifier Return type: NXOpen.Layout2d.LayoutDrawingSheet
New in version NX12.0.0.
License requirements: nx_layout (“NX Layout”)
InsertSheet¶
-
LayoutDrawingSheetCollection.
InsertSheet
¶ Inserts a layout drawing sheet into a part.
Signature
InsertSheet(name, units, numerator, denominator, projectionAngle)
Parameters: - name (str) – Layout drawing sheet name
- units (
NXOpen.Drawings.DrawingSheetUnit
) – Unit of sheet size - numerator (float) – Numerator of the scale of layout
- denominator (float) – Denominator of the scale of layout
- projectionAngle (
NXOpen.Drawings.DrawingSheetProjectionAngleType
) – Projection angle
Returns: the inserted layout drawing sheet
Return type: New in version NX12.0.0.
License requirements: nx_layout (“NX Layout”)