|
MKI_SHP_IMPORT (Import and Export Classes) New in Version 2025.1 |
www.CAD6.com |
C++ Syntaxclass MKI_SHP_IMPORT { public:
MKI_FILENAMEW m_szFileName; MKI_DATABASENAME m_szReferenceDatabase;
bool m_fUseInternalOrigin, m_fShowColumnsDialog, m_fApplyAutoColumnPage, m_fApplyAutoColumnLayer, m_fApplyAutoColumnPen, m_fApplyAutoColumnLineType, m_fApplyAutoColumnLineWidth, m_fApplyAutoColumnLineColor, m_fApplyAutoColumnFillColor, m_fApplyAutoColumnRotation, m_fApplyAutoColumnHeightScaling;
__int32 m_nUnitOfShapeFile;
double m_dGlobalScaling; MKI_STR256W m_szGlobalScaling;
MKI_XPROPERTY m_cMarkingXProperty, m_cInstanceXProperty, m_cFrameProperty, m_cCurveXProperty, m_cSurfaceXProperty;
MKI_TEXTSTANDARD m_cPointTextInfo; MKI_TEXTREFERENCE m_cPointReferenceTextInfo; __int32 m_nPointConversionMode;
MKI_LIBRARYNAME m_szPointLibraryName; MKI_BLOCKNAME m_szPointFixedBlockName;
MKI_SHP_IMPORT( void );
void Init( void ); };
This structure contains information for an SHP import. Please refer to the help text of the corresponding CAD6 command for more details.
Element Descriptionm_szFileName [MKI_FILENAMEW] Name of the file to be opened or to be imported from respectively. m_szReferenceDatabase [MKI_DATABASENAME] Name of database used for import. m_fUseInternalOrigin [bool] Use the internal coordinate origin (instead of the current drawing's origin). m_fShowColumnsDialog [bool] Show a dialog after the import, allowing to assign auto-columns or to edit the database's settings. m_fApplyAutoColumnPage [bool] Assign page number from the corresponding auto-column to all imported objects. m_fApplyAutoColumnLayer [bool] Assign layer from the corresponding auto-column to all imported objects. m_fApplyAutoColumnPen [bool] Assign pen from the corresponding auto-column to all imported objects. m_fApplyAutoColumnLineType [bool] Assign line type from the corresponding auto-column to all imported objects. m_fApplyAutoColumnLineWidth [bool] Assign line width from the corresponding auto-column to all imported objects. m_fApplyAutoColumnLineColor [bool] Assign line color from the corresponding auto-column to all imported objects. m_fApplyAutoColumnFillColor [bool] Assign fill color from the corresponding auto-column to all imported objects. m_fApplyAutoColumnRotation [bool] Assign rotation from the corresponding auto-column to all imported instances and texts. m_fApplyAutoColumnHeightScaling [bool] Assign scaling / text height from the corresponding auto-column will be assigned to all imported instances and texts. m_nUnitOfShapeFile [__int32] Unit used by the SHP file. UNIT_NONE No unit. UNIT_MM Millimeters. UNIT_CM Centimeters. UNIT_M Meters. UNIT_KM Kilometers. UNIT_INCH Inches. UNIT_FOOT Feet. UNIT_YARD Yards. UNIT_MILE Miles. m_dGlobalScaling [double] Factor used to scale all objects after import. m_szGlobalScaling [MKI_STR256W] String which is evaluated to retrieve m_dGlobalScaling after the user exits the options dialog with "OK" (ignore this string and always use m_dGlobalScaling). m_cMarkingXProperty [MKI_XPROPERTY] Properties which are assigned to imported markings. m_cInstanceXProperty [MKI_XPROPERTY] Properties which are assigned to imported block instances. m_cFrameProperty [MKI_XPROPERTY] Properties which are assigned to imported frames of text references. m_cCurveXProperty [MKI_XPROPERTY] Properties which are assigned to imported curves. m_cSurfaceXProperty [MKI_XPROPERTY] Properties which are assigned to imported surfaces. m_cPointTextInfo [MKI_TEXTSTANDARD] Text properties which are assigned to imported standard and reference texts. m_cPointReferenceTextInfo [MKI_TEXTREFERENCE] Text reference properties which are assigned to imported text references. m_nPointConversionMode [__int32] Determines how a point from shapefile is inserted. POINT_MARKING Marking. POINT_STANDARD_TEXT Standard text. POINT_REFERENCE_TEXT Reference text. POINT_VARIABLE_BLOCK Block with a variable name (the block name is taken from the corresponding column "Label" and the library name is specified in m_szPointLibraryName). POINT_FIXED_BLOCK Block with a fixed (invariant) name (the block name is specified in m_szPointFixedBlockName and the library name is specified in m_szPointLibraryName). m_szPointLibraryName [MKI_LIBRARYNAME] Library name used when inserting points from shapefile as blocks (POINT_VARIABLE_BLOCK or POINT_FIXED_BLOCK). m_szPointFixedBlockName [MKI_BLOCKNAME] Block name used when inserting points from shapefile as blocks with a fixed name (POINT_FIXED_BLOCK).
|
CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH