DrawingRegionRulesBuilder Class

class NXOpen.Drawings.DrawingRegionRulesBuilder

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

Represents a Drawing region rules builder

New in version NX8.0.0.

Properties

Property Description
Tag Returns the Tag for this object.

Methods

Method Description
GetRules Get Rules
RemoveRules Remove Rules
SetRules Set Rules
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Method Detail

GetRules

DrawingRegionRulesBuilder.GetRules

Get Rules

Signature GetRules()

Returns:
Return type:list of str

New in version NX8.0.0.

License requirements: None.

RemoveRules

DrawingRegionRulesBuilder.RemoveRules

Remove Rules

Signature RemoveRules(rules)

Parameters:rules (list of str) –

New in version NX8.0.0.

License requirements: nx_drawing_auto (“NX Drawing Automation”)

SetRules

DrawingRegionRulesBuilder.SetRules

Set Rules

Signature SetRules(rules)

Parameters:rules (list of str) –

New in version NX8.0.0.

License requirements: nx_drawing_auto (“NX Drawing Automation”)

Validate

DrawingRegionRulesBuilder.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.