DraftingManager Class¶
-
class
NXOpen.
DraftingManager
¶ Bases:
object
Represents an object that manages drafting objects and member views.
To obtain an instance of this class, refer to
NXOpen.Part
New in version NX4.0.0.
“SectionLines”, “Section Line Collection ” “AutomationManager”, “Returns the
NXOpen.Drafting.AutomationManager
belonging to this session ” “BordersAndZonesObjects”, “Borders and Zones Collection “
Methods¶
Method | Description |
---|---|
AddCutObject | Identify object to be drawn as Cut in Drafting |
CreateDrawingsPropertiesBuilder | Create the DrawingsPropertiesBuilder |
CreateImportAutocadBlockBuilder | Creates the Builder for the AutoCAD Block Importer |
CreateImportSymbolBuilder | Creates the Builder for the Symbol Importer |
CreateMarkAsTemplateBuilder | Creates a NXOpen.Drawings.MarkAsTemplateBuilder |
CreateSheetZoneReferenceBuilder | Creates the Sheet Zone Reference builder |
EnterDraftingApplication | Enter the drafting application |
ExitDraftingApplication | Exit the drafting application |
GetTemplateInstantiationIsComplete | Get the drawing template instantiation status |
IsCutObject | Is this object to be drawn as Cut? |
RestoreUnpastedObjects | Restores unpasted cut objects to their original drawing state |
RestoreUnpastedObjectsOfPart | Restores unpasted cut objects of the specified part to their original drawing state |
SetDrawingLayout | Set a drafting layout |
SetTemplateInstantiationIsComplete | Set the drawing template instantiation status |
VersionUpAllDraftingObjects | Converts all older drafting objects (including member views) in the part to the latest version. |
VersionUpSelectedDraftingObjects | Converts selected drafting objects (including member views) in the part to the latest version. |
SectionLines¶
-
DraftingManager.
SectionLines
¶ Section Line Collection
Signature
SectionLines
New in version NX6.0.0.
Returns: Return type: NXOpen.Drawings.SectionLineCollection
AutomationManager¶
-
DraftingManager.
AutomationManager
¶ Returns the
NXOpen.Drafting.AutomationManager
belonging to this sessionSignature
AutomationManager
New in version NX8.0.0.
Returns: Return type: NXOpen.Drafting.AutomationManager
BordersAndZonesObjects¶
-
DraftingManager.
BordersAndZonesObjects
¶ Borders and Zones Collection
Signature
BordersAndZonesObjects
New in version NX8.0.0.
Returns: Return type: NXOpen.Drawings.BordersAndZonesCollection
Method Detail¶
AddCutObject¶
-
DraftingManager.
AddCutObject
¶ Identify object to be drawn as Cut in Drafting
Signature
AddCutObject(object)
Parameters: object ( NXOpen.DisplayableObject
) –New in version NX8.0.0.
License requirements: None.
CreateDrawingsPropertiesBuilder¶
-
DraftingManager.
CreateDrawingsPropertiesBuilder
¶ Create the DrawingsPropertiesBuilder
Signature
CreateDrawingsPropertiesBuilder(objects)
Parameters: objects (list of NXOpen.DisplayableObject
) – the array of part occurrencesReturns: Return type: NXOpen.Drawings.DrawingsPropertiesBuilder
New in version NX11.0.0.
License requirements: drafting (“DRAFTING”)
CreateImportAutocadBlockBuilder¶
-
DraftingManager.
CreateImportAutocadBlockBuilder
¶ Creates the Builder for the AutoCAD Block Importer
Signature
CreateImportAutocadBlockBuilder()
Returns: Return type: NXOpen.Annotations.ImportAutocadBlockBuilder
New in version NX8.0.0.
License requirements: nx_layout (“NX Layout”)
CreateImportSymbolBuilder¶
-
DraftingManager.
CreateImportSymbolBuilder
¶ Creates the Builder for the Symbol Importer
Signature
CreateImportSymbolBuilder()
Returns: Return type: NXOpen.Annotations.ImportSymbolBuilder
New in version NX7.5.0.
License requirements: nx_layout (“NX Layout”)
CreateMarkAsTemplateBuilder¶
-
DraftingManager.
CreateMarkAsTemplateBuilder
¶ Creates a
NXOpen.Drawings.MarkAsTemplateBuilder
Signature
CreateMarkAsTemplateBuilder()
Returns: Return type: NXOpen.Drawings.MarkAsTemplateBuilder
New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
CreateSheetZoneReferenceBuilder¶
-
DraftingManager.
CreateSheetZoneReferenceBuilder
¶ Creates the Sheet Zone Reference builder
Signature
CreateSheetZoneReferenceBuilder()
Returns: Return type: NXOpen.Drawings.SheetZoneReferenceBuilder
New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
EnterDraftingApplication¶
-
DraftingManager.
EnterDraftingApplication
¶ Enter the drafting application
Signature
EnterDraftingApplication()
New in version NX11.0.0.
License requirements: None.
ExitDraftingApplication¶
-
DraftingManager.
ExitDraftingApplication
¶ Exit the drafting application
Signature
ExitDraftingApplication()
New in version NX11.0.0.
License requirements: None.
GetTemplateInstantiationIsComplete¶
-
DraftingManager.
GetTemplateInstantiationIsComplete
¶ Get the drawing template instantiation status
Signature
GetTemplateInstantiationIsComplete()
Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
IsCutObject¶
-
DraftingManager.
IsCutObject
¶ Is this object to be drawn as Cut?
Signature
IsCutObject(object)
Parameters: object ( NXOpen.DisplayableObject
) –Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
RestoreUnpastedObjects¶
-
DraftingManager.
RestoreUnpastedObjects
¶ Restores unpasted cut objects to their original drawing state
This method is used by NX user interface to restore drafting objects that were cut but not pasted. If called by an automation program, this method can cause unexpected results.
Signature
RestoreUnpastedObjects()
New in version NX8.0.0.
License requirements: None.
RestoreUnpastedObjectsOfPart¶
-
DraftingManager.
RestoreUnpastedObjectsOfPart
¶ Restores unpasted cut objects of the specified part to their original drawing state
Signature
RestoreUnpastedObjectsOfPart(partOfUnpastedObject)
Parameters: partOfUnpastedObject ( NXOpen.Part
) –New in version NX11.0.0.
License requirements: None.
SetDrawingLayout¶
-
DraftingManager.
SetDrawingLayout
¶ Set a drafting layout
Signature
SetDrawingLayout(setToDrawingLayout)
Parameters: setToDrawingLayout (bool) – true for drafting drawing layout, false for drafting model layout New in version NX11.0.0.
License requirements: None.
SetTemplateInstantiationIsComplete¶
-
DraftingManager.
SetTemplateInstantiationIsComplete
¶ Set the drawing template instantiation status
Signature
SetTemplateInstantiationIsComplete(templateInstantiationStatus)
Parameters: templateInstantiationStatus (bool) – New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
VersionUpAllDraftingObjects¶
-
DraftingManager.
VersionUpAllDraftingObjects
¶ Converts all older drafting objects (including member views) in the part to the latest version.
Signature
VersionUpAllDraftingObjects()
New in version NX4.0.0.
License requirements: None.
VersionUpSelectedDraftingObjects¶
-
DraftingManager.
VersionUpSelectedDraftingObjects
¶ Converts selected drafting objects (including member views) in the part to the latest version.
Signature
VersionUpSelectedDraftingObjects(draftingObjects)
Parameters: draftingObjects (list of NXOpen.NXObject
) –New in version NX4.0.0.
License requirements: None.