MKI_HPGL_EXPORT (Import and Export Classes) Changed in Version 2026.0

www.CAD6.com

C++ Syntax

class MKI_HPGL_EXPORT

{

  public:

 

  MKI_FILENAMEW m_szFileName,

                m_szSendToString,

                m_szFileNameOptions;

 

  char m_szInitCmd[COMMAND_LENGTH],

       m_szExitCmd[COMMAND_LENGTH];

 

  MKI_HPGL_PEN m_acPlotterPens[NUMBER_OF_PENS];

 

  bool m_fUseScreenProperties,

       m_fNewOrigin,

       m_fOptimizedPlotterPenSel,

       m_fUseSoftwarePalette,

       m_fAdjustAAEndPoint,

       m_fUseArcThreePoint,

       m_fIgnorePattern,

       m_fChordAngleFlag,

       m_fExportLineWidth,

       m_fAdjustLineWidth,

       m_fResolveText,

       m_fTextConvertANSIOEM,

       m_fExportFilledPolygons,

       m_fSendToSuppressWarning;

 

  __int32 m_nHPGL2Unit,

          m_nHPGLObjects,

          m_nFractionDigits,

          m_nSeparator,

          m_nSendToMode;

 

  double     m_dScaling,

             m_dRotation;

  MKI_VECTOR m_cOffset;

  double     m_dChordAngle;

 

  bool    m_fCutActive,

          m_fCutDisplayWarning;

  double  m_dCutOffset,

          m_dCutToleranceAngle;

  __int32 m_nCutReference; 

 

  MKI_HPGL_EXPORT( void );

 

  void

  Init( void );

};

 

This structure contains information for an HP-GL/2 export. Please refer to the help text of the corresponding CAD6 command for more details.

 

Element Description

m_szFileName

[MKI_FILENAMEW] Name of the file to be created.

m_szSendToString

[MKI_FILENAMEW] Destination port, e.g. "COM1:".

m_szFileNameOptions

[MKI_FILENAMEW] Name of the last file used to open/save the export options.

m_szInitCmd

[char[]] Initialization instructions.

m_szExitCmd

[char[]] Exit instructions.

m_acPlotterPens

[MKI_HPGL_PEN[]] List of defined plotter pens.

m_fUseScreenProperties

[bool] The objects' screen properties are used for export.

m_fNewOrigin

[bool] Use minimum X-coordinate and the minimum Y-coordinate of all objects as export origin.

m_fOptimizedPlotterPenSel

[bool] All objects assigned to the same plotter pen are exported together.

m_fUseSoftwarePalette

[bool] Plotter pens are defined automatically according to the object colors (software palette).

m_fAdjustAAEndPoint

[bool] Append a line to a circular arc drawn with the instruction AA (Arc Absolute).

m_fUseArcThreePoint

[bool] Use instruction AT (Absolute Arc Three Point) instead of AA (Arc Absolute).

m_fIgnorePattern

[bool] Ignore line patterns.

m_fChordAngleFlag

[bool] Append the chord angle specified in m_dChordAngle to each AA (Arc Absolute) instruction.

m_fExportLineWidth

[bool] Export line width using the instruction PW (Pen Width).

m_fAdjustLineWidth

[bool] Multiply the line width of all objects with the specified scaling factor.

m_fResolveText

[bool] Text objects are exported as contours instead of using text label instructions (LB).

m_fTextConvertANSIOEM

[bool] Convert text from ANSI to OEM character set.

m_fExportFilledPolygons

[bool] Activate export of filled polygons.

m_fSendToSuppressWarning

[bool] Don't show warnings when sending data to a port (e.g. "COM1:").

m_nHPGL2Unit

[__int32] Plotter unit used for export (all objects are scaled accordingly).

HPGL2_UNIT_HPGL2

1 plotter unit equals 1/1016 inch (40 plotter units equal 1 mm).

HPGL2_UNIT_MIL

1 plotter unit equals 1/1000 inch.

HPGL2_UNIT_MM

1 plotter unit 1 equals mm (no object scaling).

m_nHPGLObjects

[__int32] HP-GL output objects

HPGL2_OBJECTS_LINES_ONLY

Export lines only, i.e. the only drawing instruction used in the plotter file is PA (Plot Absolute).

HPGL2_OBJECTS_LINES_ARCS

Export lines and circular arcs, i.e. besides PA also the drawing instruction AA (Arc Absolute) is used in the plotter file.

HPGL2_OBJECTS_ALL

The drawing instructions PA (Plot Absolute), AA (Arc Absolute), and BZ (Bézier Absolute) are exported.

m_nFractionDigits

[__int32] Number of decimal places (value between 0 and 10)

m_nSeparator

[__int32] Character used to separate parameters.

SEPARATOR_COMMA

Use comma (',') as a separator.

SEPARATOR_SPACE

Use space (' ') as a separator.

m_nSendToMode

[__int32] Mode used when sending data directly to a port (e.g. "COM1:")

SENDMODE_ALL

Send complete drawing.

SENDMODE_SELECTED

Send selected objects only.

m_dScaling

[double] Factor used to scale all objects before export.

m_dRotation

[double] Overall rotation applied to all objects before export.

m_cOffset

[MKI_VECTOR] This offset is applied to all objects before export if m_fNewOrigin is set.

m_dChordAngle

[double] Chord angle used if m_fChordAngleFlag is set.

m_fCutActive

[bool] Activate trailing cutter correction.

m_fCutDisplayWarning

[bool] Show warning before export with active trailing cutter correction is started.

m_dCutOffset

[double] Cutting offset

m_dCutToleranceAngle

[double] Tolerance angle for the application of trailing cutter correction.

m_nCutReference

[__int32] Position of reference cutting (to align the blade).

REFERENCE_NONE

No reference cutting

REFERENCE_BOTTOM_LEFT

Lower left corner

REFERENCE_BOTTOM_RIGHT

Lower right corner

REFERENCE_TOP_LEFT

Upper left corner

REFERENCE_TOP_RIGHT

Upper right corner

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH