/// <summary> /// public constructor /// </summary> /// <param name="aDwgCtrl">drawing control on which the core connections diagram should be drawn</param> public CoreConnectionsDiagram(AxDrawingControl aDwgCtrl) { mDwgCtrl = aDwgCtrl; Visio.Application _appl = aDwgCtrl.Document.Application; // convert constants from millimeters to inches mMargin = _appl.ConvertResult(MARGIN_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mTableHeaderCellWidth = _appl.ConvertResult(TABLE_HEADER_CELL_HEIGHT_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mSingleWidth = _appl.ConvertResult(SINGLE_WIDTH_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mSingleHeight = _appl.ConvertResult(SINGLE_HEIGHT_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mInitialPosX = _appl.ConvertResult(INITIAL_POS_X_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mInitialPosY = _appl.ConvertResult(INITIAL_POS_Y_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches) - mMargin; mCablePosX = _appl.ConvertResult(CABLE_CELL_POS_X_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches) + mMargin; mCableWidth = _appl.ConvertResult(CABLE_CELL_WIDTH_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mCoreWidth = _appl.ConvertResult(CORE_CELL_WIDTH_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mCoreHeight = _appl.ConvertResult(CORE_CELL_HEIGHT_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mElconnWidth = _appl.ConvertResult(ELCONN_CELL_WIDTH_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mEquiWidth = _appl.ConvertResult(EQUI_CELL_WIDTH_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); mSpaceBetween = _appl.ConvertResult(SPACE_BETWEEN_CELLS_MM, Visio.VisUnitCodes.visMillimeters, Visio.VisUnitCodes.visInches); }