IPlotContext

class IPlotContext

Bases: ImpactCOMWrapperBase

Description:

Represents information about the last plot operation.

Remarks:

This object is generally used by scripts that respond to the plotBefore and plotAfter auto-tasks.

Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance

property did_plot

Gets did_plot.

Description:

Indicates if the plot executed.

Remarks:

This will return false if the plot failed or the user cancelled the operation.

Returns:

The value of did_plot.

Return type:

did_plot (bool)

property drawing

Gets Drawing.

Description:

Gets the drawing that was plotted.

Returns:

The value of Drawing.

Return type:

drawing (IDrawing)

property feed_rate_table

Gets feed_rate_table.

Description:

Gets the name of the feedrate table used.

Returns:

The value of feed_rate_table.

Return type:

feed_rate_table (str)

property first_subroutine_number

Gets first_subroutine_number.

Description:

Gets the first sub-routine number used.

Returns:

The value of first_subroutine_number.

Return type:

first_subroutine_number (int)

property form_feed_distance

Gets form_feed_distance.

Description:

Gets the form feed distance used.

Returns:

The value of form_feed_distance.

Return type:

form_feed_distance (float)

property layer

Gets Layer.

Description:

Gets the layer that was plotted.

Returns:

The value of Layer.

Return type:

layer (ILayer)

property location_hole_radius

Gets location_hole_radius.

Description:

Gets the radius of the location hole.

Returns:

The value of location_hole_radius.

Return type:

location_hole_radius (float)

property mirror_x

Gets mirror_x.

Description:

Gets if entities were mirrored in the X direction.

Returns:

The value of mirror_x.

Return type:

mirror_x (bool)

property mount_board_thickness

Gets mount_board_thickness.

Description:

Gets the thickness of the mount board.

Returns:

The value of mount_board_thickness.

Return type:

mount_board_thickness (float)

property number_sheets_to_be_fed

Gets number_sheets_to_be_fed.

Description:

Gets the number of sheets that were fed.

Returns:

The value of number_sheets_to_be_fed.

Return type:

number_sheets_to_be_fed (int)

property output_from_type

Gets output_from_type.

Description:

Gets the output from type value used.

Returns:

The value of output_from_type.

Return type:

output_from_type (int)

property plot_machine

Gets plot_machine.

Description:

Gets the plot machine setting that was used.

Returns:

The value of plot_machine.

Return type:

plot_machine (IMasterSetting)

property post_processor

Gets post_processor.

Description:

Gets the post processor setting that was used.

Returns:

The value of post_processor.

Return type:

post_processor (IMasterSetting)

property rotary_calculated_from

Gets rotary_calculated_from.

Description:

Gets the method used to calculate the radius.

Remarks:

Specific to a rotary laser. The possible values are: 0 - Bosch radius 1 - Scale factor 2 - Marbach method 3 - User defined 4 - From rotary dieboard tool

Returns:

The value of rotary_calculated_from.

Return type:

rotary_calculated_from (int)

property rotary_coefficient

Gets rotary_coefficient.

Description:

Gets the rotary coefficient value.

Remarks:

Specific to a rotary laser.

Returns:

The value of rotary_coefficient.

Return type:

rotary_coefficient (float)

property rotary_cutting_depth

Gets rotary_cutting_depth.

Description:

Gets the cutting depth.

Remarks:

Specific to a rotary laser.

Returns:

The value of rotary_cutting_depth.

Return type:

rotary_cutting_depth (float)

property rotary_inside_diameter

Gets rotary_inside_diameter.

Description:

Gets the inside diameter of the rotary shell.

Remarks:

Specific to a rotary laser.

Returns:

The value of rotary_inside_diameter.

Return type:

rotary_inside_diameter (float)

property rotary_knife_height

Gets rotary_knife_height.

Description:

Gets the knife height.

Remarks:

Specific to a rotary laser.

Returns:

The value of rotary_knife_height.

Return type:

rotary_knife_height (float)

property rotary_result

Gets rotary_result.

Description:

Gets the rotary result value.

Remarks:

Specific to a rotary laser.

Returns:

The value of rotary_result.

Return type:

rotary_result (float)

property rotary_wood_thickness

Gets rotary_wood_thickness.

Description:

Gets the wood thickness.

Remarks:

Specific to a rotary laser.

Returns:

The value of rotary_wood_thickness.

Return type:

rotary_wood_thickness (float)

property rotation_angle

Gets rotation_angle.

Description:

Gets the rotation angle that was used.

Returns:

The value of rotation_angle.

Return type:

rotation_angle (float)

property sheet_origin

Gets sheet_origin.

Description:

Gets the origin of the sheet.

Returns:

The value of sheet_origin.

Return type:

sheet_origin (IVector)

property sheet_scale

Gets sheet_scale.

Description:

Gets the scale of the sheet.

Returns:

The value of sheet_scale.

Return type:

sheet_scale (IVector)

property specials_name

Gets specials_name.

Description:

Gets the “specials name” that was used.

Returns:

The value of specials_name.

Return type:

specials_name (str)

property use_sheet_feeder

Gets use_sheet_feeder.

Description:

Gets if a sheet feeder was used.

Returns:

The value of use_sheet_feeder.

Return type:

use_sheet_feeder (bool)

property z_axis_offset_amount

Gets z_axis_offset_amount.

Description:

Gets the amount of offset in the z-axis.

Returns:

The value of z_axis_offset_amount.

Return type:

z_axis_offset_amount (float)

isNone()

Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.

Examples