SHAPER  9.15.0
PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle Class Reference
Inheritance diagram for PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle:
Inheritance graph

Public Member Functions

def __init__ (self)
 
def getKind (self)
 
def initAttributes (self)
 
def isMacro (self)
 
def execute (self)
 
def attributeChanged (self, theID)
 

Static Public Member Functions

def ID ()
 
def START_ID ()
 
def END_ID ()
 
def AUXILIARY_ID ()
 
def LINES_LIST_ID ()
 
def RECTANGLE_TYPE_ID ()
 
def RECTANGLE_BY_CORNERS_ID ()
 
def RECTANGLE_CENTERED_ID ()
 
def CENTER_ID ()
 
def CENTER_REF_ID ()
 
def CORNER_ID ()
 

Detailed Description

Implementation of rectangle creation.

It produced 2 horizontal lines and 2 vertical lines connected by coincidence constraints

Constructor & Destructor Documentation

◆ __init__()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.__init__ (   self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Member Function Documentation

◆ ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.ID ( )
static
Rectangle feature kind.

◆ START_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.START_ID ( )
static
Returns ID of first corner.

◆ END_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.END_ID ( )
static
Returns ID of second corner.

◆ AUXILIARY_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.AUXILIARY_ID ( )
static
Returns whether the rectangle is accessory.

◆ LINES_LIST_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.LINES_LIST_ID ( )
static
Returns ID of list containing lines created.

◆ RECTANGLE_TYPE_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.RECTANGLE_TYPE_ID ( )
static
Returns ID of type of rectangle creation (by corners or by center and corner).

◆ RECTANGLE_BY_CORNERS_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.RECTANGLE_BY_CORNERS_ID ( )
static
Returns ID of creation type by opposite corners.

◆ RECTANGLE_CENTERED_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.RECTANGLE_CENTERED_ID ( )
static
Returns ID of creation type by center point and a corner.

◆ CENTER_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.CENTER_ID ( )
static
Returns ID of center point.

◆ CENTER_REF_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.CENTER_REF_ID ( )
static
Returns ID of the reference to the center point.

◆ CORNER_ID()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.CORNER_ID ( )
static
Returns ID of a corner.

◆ getKind()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.getKind (   self)
Override Feature.getKind()

◆ initAttributes()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.initAttributes (   self)
Override Feature.initAttributes()

◆ isMacro()

def PythonAddons.macros.rectangle.feature.SketchPlugin_Rectangle.isMacro (   self)
Override Feature.isMacro().
Rectangle feature is macro: removes itself on the creation transaction finish.