Migrating Dimension Code to MicroStation V8

Support

<< Return to Index
Subject: Migrating Dimension Code to MicroStation V8
Product: Windows 2000, Windows XP Professional, Windows XP Home Edition, Windows Me, Windows NT 4 (SP6 recommended), Windows 98 (Second Edition recommended)
Document Number: 8267

 

V8 Dimension Style Properties API

  • Active Dimension Style
  • Property Access Functions
  • V8 Dimension Style Properties
  • Migrating V7 code


    Active Dimension Style  
    The dimension style API in V8 exposes the dimension style as an opaque pointer of type DgnDimStyleP. An opaque pointer to the currently active dimension settings can be retrieved by calling:

    DgnDimStyleP dimStyle = dgnDimStyle_getActiveFromModelRef (ACTIVEMODEL);

    Property Access Functions 
    The table below lists the functions that are used to get or change the values of dimension style properties. The correct function to use for a particular property depends on the data type of the property. For example, the property DIMSTYLE_PROP_General_Alignment_INTEGER is of type INTEGER so the appropriate get function is mdlDimStyle_getIntegerProp.

    Data Type Get Function Set Function
    ACCURACY mdlDimStyle_getAccuracyProp mdlDimStyle_setAccuracyProp
    BOOLINT mdlDimStyle_getBoolIntProp mdlDimStyle_setBoolIntProp
    CHAR mdlDimStyle_getCharProp mdlDimStyle_setCharProp
    COLOR mdlDimStyle_getColorProp mdlDimStyle_setColorProp
    DOUBLE mdlDimStyle_getDoubleProp mdlDimStyle_setDoubleProp
    INTEGER mdlDimStyle_getIntegerProp mdlDimStyle_setIntegerProp
    FONT mdlDimStyle_getFontProp mdlDimStyle_setFontProp
    LEVEL mdlDimStyle_getLevelProp mdlDimStyle_setLevelProp
    LINESTYLE mdlDimStyle_getLineStyleProp mdlDimStyle_setLineStyleProp
    MSWCHAR mdlDimStyle_getMSWCharProp mdlDimStyle_setMSWCharProp
    TEMPLATEFLAG mdlDimStyle_getTemplateFlagProp mdlDimStyle_setTemplateFlagProp
    TEXTSTYLE mdlDimStyle_getTextStyleProp mdlDimStyle_setTextStyleProp
    UNITS mdlDimStyle_getUnitsProp mdlDimStyle_setUnitsProp
    WEIGHT mdlDimStyle_getWeightProp mdlDimStyle_setWeightProp

    V8 Dimension Style Properties  
    The following table lists the dimension style properties that can be accessed with the API functions listed above.

    MDL Property Name Description GUI Location
    DIMSTYLE_PROP_BallAndChain_Alignment_INTEGER Ball and Chain Alignment (Auto, Left, Right) Dimension With Leader->Alignment
    DIMSTYLE_PROP_BallAndChain_ChainTerminator_INTEGER Ball and Chain Terminator (None, Arrow, Slash, Origin, Dot) Dimension With Leader->Terminator
    DIMSTYLE_PROP_BallAndChain_ChainType_INTEGER Ball and Chain Chain type (None, Line, Curve) Dimension With Leader->Type
    DIMSTYLE_PROP_BallAndChain_IsActive_BOOLINT Ball and Chain is Allowed Dimension With Leader->Allow Dimension With Leader
    DIMSTYLE_PROP_BallAndChain_NoDockOnDimLine_BOOLINT Disable text docking when B&C is active NIL
    DIMSTYLE_PROP_BallAndChain_ShowTextLeader_BOOLINT Ball and Chain Text Leader Dimension With Leader->Leader
    DIMSTYLE_PROP_ExtensionLine_Color_COLOR Witness Color Extension Lines->Color
    DIMSTYLE_PROP_ExtensionLine_Extend_DOUBLE Extension of witness lines past dimline Extension Lines->Extension
    DIMSTYLE_PROP_ExtensionLine_Join_BOOLINT Always draw inside dimension line Extension Lines->Join When Text Outside
    DIMSTYLE_PROP_ExtensionLine_Left_TEMPLATEFLAG 24 * Show Left Witness Tool Settings->Left Extension
    DIMSTYLE_PROP_ExtensionLine_LineStyle_LINESTYLE Witness Line Style Extension Lines->Style
    DIMSTYLE_PROP_ExtensionLine_Offset_DOUBLE Offset of witness lines from geometry Extension Lines->Offset
    DIMSTYLE_PROP_ExtensionLine_OverrideColor_BOOLINT Use DimStyle Witness Color Extension Lines->Color Toggle
    DIMSTYLE_PROP_ExtensionLine_OverrideLineStyle_BOOLINT Use DimStyle Witness Line Style Extension Lines->Style Toggle
    DIMSTYLE_PROP_ExtensionLine_OverrideWeight_BOOLINT Use DimStyle Witness Weight Extension Lines->Weight Toggle
    DIMSTYLE_PROP_ExtensionLine_Right_TEMPLATEFLAG 24 * Show Right Witness Tool Settings->Right Extension
    DIMSTYLE_PROP_ExtensionLine_ShowAny_BOOLINT Show Witness Lines Extension Lines->Extension Lines
    DIMSTYLE_PROP_ExtensionLine_Weight_WEIGHT Witness Weight Extension Lines->Weight
    DIMSTYLE_PROP_General_Alignment_INTEGER Alignment Mode (View, Drawing, True or Arbitrary) Placement->Alignment
    DIMSTYLE_PROP_General_CenterMarkSize_DOUBLE Size of center mark (uors) Placement->Center Size
    DIMSTYLE_PROP_General_Color_COLOR Color Dimension Lines->Color
    DIMSTYLE_PROP_General_DimensionScale_DOUBLE Scale applied to Value Units->Scale Factor
    DIMSTYLE_PROP_General_DimStyleDescription_MSWCHAR Style Description Edit Style Properties
    DIMSTYLE_PROP_General_DimStyleName_MSWCHAR Style Name Edit Style Properties
    DIMSTYLE_PROP_General_Font_FONT Font for dimension text Text->Font
    DIMSTYLE_PROP_General_IgnoreLevelSymbology_BOOLINT Ignore Level Symbology Dimension Lines->Ignore Level Symbology
    DIMSTYLE_PROP_General_LineStyle_LINESTYLE Line Style Dimension Lines->Style
    DIMSTYLE_PROP_General_OverideColor_BOOLINT Use Dimstyle Color Dimension Lines->Color Toggle
    DIMSTYLE_PROP_General_OverrideLineStyle_BOOLINT Use Dimstyle Line Style Dimension Line->Style Toggle
    DIMSTYLE_PROP_General_OverrideWeight_BOOLINT Use Dimstyle Weight Dimension Lines->Weight Toggle
    DIMSTYLE_PROP_General_RadialMode_INTEGER Mode for Radial Dim Tool (CenterMark, Radius, RadiusExt, Diam, DiamExt) DimRadial ToolSettings->Mode
    DIMSTYLE_PROP_General_RelativeDimLine_BOOLINT Maintain dim height on association change Placement->Relative Dimension Line
    DIMSTYLE_PROP_General_ShowCenterMark_TEMPLATEFLAG 24 * Show Center mark for radial dimensions Tool settings->Center Mark
    DIMSTYLE_PROP_General_Stacked_TEMPLATEFLAG 24 * Stacked vs. Chain Tool Settings->Stack Dimensions
    DIMSTYLE_PROP_General_StackOffset_DOUBLE Minimum stack offset (uors) Dimension Lines->Stack Offset
    DIMSTYLE_PROP_General_Weight_WEIGHT Weight Dimension Lines->Weight
    DIMSTYLE_PROP_MLNote_FrameType_INTEGER Text Frame for MultiLine Note (None, Underline, Box) MLNote ToolSettings->Text Frame
    DIMSTYLE_PROP_MLNote_Justification_INTEGER Justification for MultiLine Note (Left, Right, Dynamic) MLNote ToolSettings->Justification
    DIMSTYLE_PROP_MLNote_ShowLeader_BOOLINT Text Leader for MultiLine Note MLNote ToolSettings->Generate Leader
    DIMSTYLE_PROP_Placement_CompatibleV3_BOOLINT Create v3.0 compatible primitives NIL
    DIMSTYLE_PROP_Placement_Level_INTEGER Level Dimension Lines->Level
    DIMSTYLE_PROP_Placement_OverrideLevel_BOOLINT Use Dimstyle Level Dimension Lines->Level Toggle
    DIMSTYLE_PROP_Placement_TextPosition_INTEGER Placement Mode TRUE automatic FALSE manual Placement->Location
    DIMSTYLE_PROP_Placement_TextPosition_INTEGER TRUE = semi automatic, FALSE = use automan Placement->Location
    DIMSTYLE_PROP_Placement_UseReferenceScale_BOOLINT Apply reference scale when placing dimension Placement->Reference Scale
    DIMSTYLE_PROP_Symbol_DiameterChar_CHAR Character for diameter symbol Terminator Symbols->Dot->Char
    DIMSTYLE_PROP_Symbol_DiameterFont_FONT Font for diameter symbol Terminator Symbols->Dot->Font
    DIMSTYLE_PROP_Symbol_DiameterType_INTEGER Diameter Symbol Mode (Default, Symbol, Cell) Custom Symbols->Diameter
    DIMSTYLE_PROP_Symbol_LowerPrefixChar_CHAR Lower (Secondary) Prefix (For dual dims) Custom Symbols->Lower Prefix
    DIMSTYLE_PROP_Symbol_LowerSuffixChar_CHAR Lower (Seconday) Sufix (For dual dims) Custom Symbols->Lower Suffix
    DIMSTYLE_PROP_Symbol_MainPrefixChar_CHAR Main Prefix (For non-dual dims) Custom Symbols->Main Prefix
    DIMSTYLE_PROP_Symbol_MainSuffixChar_CHAR Main Sufix (For non-dual dims) Custom Symbols->Main Suffix
    DIMSTYLE_PROP_Symbol_PlusMinusChar_CHAR Character for Plus Minus Symbol Custom Symbols->Plus/Minus->Char
    DIMSTYLE_PROP_Symbol_PlusMinusType_INTEGER Plus Minus Symbol Mode (Default, Symbol, Cell) Custom Symbols->Plus/Minus
    DIMSTYLE_PROP_Symbol_Prefix_TEMPLATEFLAG 24 * Prefix Symbol (None, Diam, Radius, Square, SpRadius, SPDiam) Tool Settings->Prefix
    DIMSTYLE_PROP_Symbol_PrefixCellName_MSWCHAR Prefix Cell Custom Symbols->Prefix->Name\
    DIMSTYLE_PROP_Symbol_PrefixChar_CHAR Character for Prefix Symbol Custom Symbols->Prefix->Char
    DIMSTYLE_PROP_Symbol_PrefixFont_FONT Font for Prefix Symbol Custom Symbols->Prefix->Font
    DIMSTYLE_PROP_Symbol_PrefixType_INTEGER Prefix Symbol Mode (Default, Symbol, Cell) Custom Symbols->Prefix
    DIMSTYLE_PROP_Symbol_Suffix_TEMPLATEFLAG 24 * Suffix Symbol (None, Diam, Radius, Square, SpRadius, SPDiam) Tool Settings->Suffix
    DIMSTYLE_PROP_Symbol_SuffixCellName_MSWCHAR Suffix Cell Custom Symbols->Suffix->Name
    DIMSTYLE_PROP_Symbol_SuffixChar_CHAR Character for Suffix Symbol Custom Symbols->Suffix->Char
    DIMSTYLE_PROP_Symbol_SuffixFont_FONT Font for Suffix Symbol Custom Symbols->Suffix->Font
    DIMSTYLE_PROP_Symbol_SuffixType_INTEGER Suffix Symbol Mode (Default, Symbol, Cell) Custom Symbols->Suffix
    DIMSTYLE_PROP_Symbol_TolPrefixChar_CHAR Tolerance Prefix Custom Symbols->Tol Prefix
    DIMSTYLE_PROP_Symbol_TolSuffixChar_CHAR Tolerance Suffix Custom Symbols->Tol Suffix
    DIMSTYLE_PROP_Symbol_UpperPrefixChar_CHAR Upper (Primary) Prefix (For dual dims) Custom Symbols->Upper Prefix
    DIMSTYLE_PROP_Symbol_UpperSuffixChar_CHAR Upper (Primary) Sufix (For dual dims) Custom Symbols->Upper Suffix
    DIMSTYLE_PROP_Terminator_ArrowCellName_MSWCHAR Arrow Cell Terminator Symbols->Arrow->Name
    DIMSTYLE_PROP_Terminator_ArrowChar_CHAR Character for arrow terminator Terminator Symbols->Arrow->Char
    DIMSTYLE_PROP_Terminator_ArrowFont_FONT Font for arrow terminator Terminator Symbols->Arrow->Font
    DIMSTYLE_PROP_Terminator_ArrowType_INTEGER Arrow Terminator Mode (Default, Symbol, Cell) Terminator Symbols->Arrow
    DIMSTYLE_PROP_Terminator_Color_COLOR Terminator Color Terminators->Color
    DIMSTYLE_PROP_Terminator_DotCellName_MSWCHAR Dot Cell Terminator Symbols->Dot->Name
    DIMSTYLE_PROP_Terminator_DotChar_CHAR Character for dot terminator Terminator Symbols->Dot Char
    DIMSTYLE_PROP_Terminator_DotFont_FONT Font for dot terminator Terminator Symbols->Dot Font
    DIMSTYLE_PROP_Terminator_DotType_INTEGER Dot Terminator Mode (Default, Symbol, Cell) Terminator Symbols->Dot
    DIMSTYLE_PROP_Terminator_First_TEMPLATEFLAG 24 * First Terminator (None, Arrow, Slash, Origin, Dot) Tool Settings->Terminators First
    DIMSTYLE_PROP_Terminator_Height_DOUBLE Terminator Height Terminators->Height
    DIMSTYLE_PROP_Terminator_Joint_TEMPLATEFLAG 24 * Joint Terminator (None, Slash, Origin, Dot) Tool Settings->Terminators Joint
    DIMSTYLE_PROP_Terminator_Left_TEMPLATEFLAG 24 * Left Terminator (None, Arrow, Slash, Origin, Dot) Tool Settings->Terminators Left
    DIMSTYLE_PROP_Terminator_LineStyle_LINESTYLE Terminator Line Style Terminators->Style
    DIMSTYLE_PROP_Terminator_MinLeader_DOUBLE Minimum leader for Terminator Terminators->Min Leader
    DIMSTYLE_PROP_Terminator_Mode_INTEGER Terminator Mode (Auto, Inside, Outside, Reversed) Terminators->Terminators
    DIMSTYLE_PROP_Terminator_NoLineThruArrow_BOOLINT Draw DimLine through Arrow Terminators NIL
    DIMSTYLE_PROP_Terminator_NoLineThruDot_BOOLINT Draw DimLine through Dot Terminators NIL
    DIMSTYLE_PROP_Terminator_NoLineThruOrigin_BOOLINT Draw DimLine through Origin Terminators NI
    DIMSTYLE_PROPD_Terminator_NoLineThruStroke_BOOLINT Draw DimLine through Stroke Terminators NIL
    DIMSTYLE_PROP_Terminator_OriginCellName_MSWCHAR Origin Cell Terminator Symbols->Origin->Name
    DIMSTYLE_PROP_Terminator_OriginChar_CHAR Character for origin terminator Terminator Symbols->Origin->Char
    DIMSTYLE_PROP_Terminator_OriginFont_FONT Font for origin terminator Terminator Symbols->Origin->Font
    DIMSTYLE_PROP_Terminator_OriginType_INTEGER Origin Terminator Mode (Default, Symbol, Cell) Terminator Symbols->Origin
    DIMSTYLE_PROP_Terminator_OverrideColor_BOOLINT Use DimStyle Terminator Color Terminators->Color Toggle
    DIMSTYLE_PROP_Terminator_OverrideLineStyle_BOOLINT Use DimStyle Terminator Line Style Terminators->Style Toggle
    DIMSTYLE_PROP_Terminator_OverrideWeight_BOOLINT Use DimStyle Terminator Weight Terminators->Weight Toggle
    DIMSTYLE_PROP_Terminator_Right_TEMPLATEFLAG 24 * Right Terminator (None, Arrow, Slash, Origin, Dot) Tool Settings->Terminators Right
    DIMSTYLE_PROP_Terminator_StandardArrowhead_INTEGER Default Arrowhead Mode (Open, Closed, Filled) Terminators->Arrowhead
    DIMSTYLE_PROP_Terminator_StrokeCellName_MSWCHAR Stroke Cell Terminator Symbols->Stroke->Name
    DIMSTYLE_PROP_Terminator_StrokeChar_CHAR Character for stroke terminator Terminator Symbols->Stroke->Char
    DIMSTYLE_PROP_Terminator_StrokeFont_FONT Font for stroke terminator Terminator Symbols->Stroke->Font
    DIMSTYLE_PROP_Terminator_StrokeType_INTEGER Stroke Terminator Mode (Default, Symbol, Cell) Terminator Symbols->Stroke
    DIMSTYLE_PROP_Terminator_Weight_WEIGHT Terminator Weight Terminators->Weight
    DIMSTYLE_PROP_Terminator_Width_DOUBLE Terminator Width Terminators->Width
    DIMSTYLE_PROP_Text_ArcLengthSymbol_TEMPLATEFLAG 24 * Arc Length Symbol above text Tool Settings->Arc Symbol
    DIMSTYLE_PROP_Text_AutoLift_BOOLINT Lift text to avoid previous dimension (chain only) Placement->Adjust Dimension Line
    DIMSTYLE_PROP_Text_Box_BOOLINT Show box around text Text->Text Frame
    DIMSTYLE_PROP_Text_Capsule_BOOLINT Show capsule around text Text->Text Frame
    DIMSTYLE_PROP_Text_Color_COLOR Text Color Text->Color
    DIMSTYLE_PROP_Text_DecimalComma_BOOLINT TRUE = show comma for decimal point, FALSE = period Unit Format->Use Comma For Decimal
    DIMSTYLE_PROP_Text_Embed_BOOLINT TRUE inline, FALSE above Text->Orientation
    DIMSTYLE_PROP_Text_Font_BOOLINT Use Dimstyle Font Text->Font Toggle
    DIMSTYLE_PROP_Text_Height_DOUBLE Text Height Text->Height
    DIMSTYLE_PROP_Text_Horizontal_BOOLINT TRUE horizontal, FALSE use embed flag Text->Orientation
    DIMSTYLE_PROP_Text_HorizontalMargin_DOUBLE Horizontal Text Margin Text->Left Margin
    DIMSTYLE_PROP_Text_Justification_INTEGER Dimension Justification (Left, Center, Right) Text->Justification
    DIMSTYLE_PROP_Text_LeadingZero_BOOLINT Show Leading Zeros (primary) Unit Format->Primary Leading Zeros
    DIMSTYLE_PROP_Text_NoFitVertical_TEMPLATEFLAG 24 * Use Vertical Text only if text doesn't fit Tool Settings->Text
    DIMSTYLE_PROP_Text_OmitLeadingDelimiter_BOOLINT Display Leading Delimiter NIL
    DIMSTYLE_PROP_Text_OverrideColor_BOOLINT Use Dimstyle Text Color Text->Color Toggle
    DIMSTYLE_PROP_Text_OverrideHeight_BOOLINT Use Dimstyle Text Height Text->Height Toggle
    DIMSTYLE_PROP_Text_OverrideWeight_BOOLINT Use Dimstyle Text Weight Text->Weight Toggle
    DIMSTYLE_PROP_Text_OverrideWidth_BOOLINT Use DimStyle Text Width Text->Width Toggle
    DIMSTYLE_PROP_Text_SecLeadingZero_BOOLINT Show Leading Zeros (secondary) Units->Secondary Leading Zero
    DIMSTYLE_PROP_Text_ShowSecondary_BOOLINT Show Secondary Value (same as ad5.flags.useSecUnits) Units->Show Secondary Units
    DIMSTYLE_PROP_Text_ShowSecondary_BOOLINT Show Secondary Value (Same as ad1.params.dual) Units->Show Secondary Units
    DIMSTYLE_PROP_Text_TextStyle_TEXTSTYLE Text Style Properties Text->Text Style
    DIMSTYLE_PROP_Text_TextStyleID_INTEGER Text Style ID Text->Text Style
    DIMSTYLE_PROP_Text_Underline_BOOLINT Show Text Underline Text->Underline Text (NTS)
    DIMSTYLE_PROP_Text_Vertical_TEMPLATEFLAG 24 * Vertical Text Tool Settings->Text
    DIMSTYLE_PROP_Text_VerticalMargin_DOUBLE Vertical Text Margin Text->Lower Margin
    DIMSTYLE_PROP_Text_Weight_WEIGHT Text Weight Text->Weight
    DIMSTYLE_PROP_Text_Width_DOUBLE Text Width Text->Width
    DIMSTYLE_PROP_Tolerance_LowerValue_DOUBLE Lower tolerance (uors) Tolerance->Lower
    DIMSTYLE_PROP_Tolerance_Mode_BOOLINT TRUE limit, FALSE plus/minus tolerance Tolerance->Type
    DIMSTYLE_PROP_Tolerance_Show_BOOLINT Show Tolerance Tolerance->Tolerance Generation
    DIMSTYLE_PROP_Tolerance_StackEqual_BOOLINT Stack tolerances even when equal Tolerance->Stack If Equal
    DIMSTYLE_PROP_Tolerance_TextHorizontalMargin_DOUBLE Horizontal Text Margin for Tolerance Tolerance->Left Margin
    DIMSTYLE_PROP_Tolerance_TextScale_DOUBLE Ratio of tolerance text height (& width) to dim text height (& width) Tolerance->Text Size
    DIMSTYLE_PROP_Tolerance_TextVerticalMargin_DOUBLE Vertical Text Margin for Tolerance NIL
    DIMSTYLE_PROP_Tolerance_TextVerticalSeparation_DOUBLE Vertical Separation Between Stacked Tolerance Tolerance->Sep Margin
    DIMSTYLE_PROP_Tolerance_UpperValue_DOUBLE Upper Tolerance (uors) Tolerance->Upper
    DIMSTYLE_PROP_Value_Accuracy_ACCURACY Primary Value Accuracy Units->Accuracy
    DIMSTYLE_PROP_Value_AltAccuracy_ACCURACY Value Accuracy (alternate, primary) Units->Alternate->Accuracy
    DIMSTYLE_PROP_Value_AltIsActive_BOOLINT Use Alternate Text Format (primary) Units->Alternate Label
    DIMSTYLE_PROP_Value_AltSec_Threshold_DOUBLE Threshold for Alternate Text Format (secondary) Secondary Unit Settings->Alternate->If distance is
    DIMSTYLE_PROP_Value_AltSecAccuracy_ACCURACY Value Accuracy (alternate, secondary) Secondary Unit Settings->Alternate->Accuracy
    DIMSTYLE_PROP_Value_AltSecIsActive_BOOLINT Use Alternate Text Format (secondary) Secondary Unit Settings->Alternate Label
    DIMSTYLE_PROP_Value_AltSecShowDelimeter_BOOLINT Show dash between master/sub (alternate, secondary) Secondary Unit Settings->Alternate->Label
    DIMSTYLE_PROP_Value_AltSecShowMasterUnit_BOOLINT Show master units (alternate, secondary) Secondary Unit Settings->Alternate->Label
    DIMSTYLE_PROP_Value_AltSecShowSubUnit_BOOLINT Show subunits (alternate, secondary) Secondary Unit Settings->Alternate->Label
    DIMSTYLE_PROP_Value_AltSecShowUnitLabel_BOOLINT Show unit label (alternate, secondary) Secondary Unit Settings->Alternate->Label
    DIMSTYLE_PROP_Value_AltSecShowWhenThresholdEqual_BOOLINT Apply Alternate format when equal to Threshold (secondary) Secondary Unit Settings->Alternate->If distance is
    DIMSTYLE_PROP_Value_AltSecShowWhenThresholdLess_BOOLINT Apply Alternate format when less than Threshold (secondary) Secondary Unit Settings->Alternate->If distance is
    DIMSTYLE_PROP_Value_AltShowDelimeter_BOOLINT Show dash between master/sub (alternate, primary) Units->Alternate->Label
    DIMSTYLE_PROP_Value_AltShowMasterUnit_BOOLINT Show master units (alternate, primary) Units->Alternate->Label
    DIMSTYLE_PROP_Value_AltShowSubUnit_BOOLINT Show subunits (alternate, primary) Units->Alternate->Label
    DIMSTYLE_PROP_Value_AltShowUnitLabel_BOOLINT Show unit label (alternate, primary) Units->Alternate->Label
    DIMSTYLE_PROP_Value_AltShowWhenThresholdEqual_BOOLINT Apply Alternate format when equal to Threshold (primary) Units->If Distance is
    DIMSTYLE_PROP_Value_AltShowWhenThresholdLess_BOOLINT Apply Alternate format when less than Threshold (primary) Units->If Distance is
    DIMSTYLE_PROP_Value_AltShowZeroMasterUnit_BOOLINT Show 0 digit if value less than 1 master unit (alternate, primary) NIL
    DIMSTYLE_PROP_Value_AltThreshold_DOUBLE Threshold for Alternate Text Format (primary) Units->If Distance is
    DIMSTYLE_PROP_Value_AngleFormat_INTEGER Angle Format (Degrees, DMS, Centesimal, Radians) Unit Format->Angle Format Display
    DIMSTYLE_PROP_Value_AngleLeadingZero_BOOLINT Show Leading Zeros for Angles Unit Format->Angle Format Leading Zero
    DIMSTYLE_PROP_Value_AngleMeasure_BOOLINT Angle Measure (Length, Degree) Unit Format->Units
    DIMSTYLE_PROP_Value_AnglePrecision_INTEGER Angle Precision (Decimal Point 0-6) Unit Format->Angle Format Accuracy
    DIMSTYLE_PROP_Value_AngleTrailingZeros_BOOLINT Show Trailing Zeros for Angles Unit Format->Angle Format Trailing Zeros
    DIMSTYLE_PROP_Value_LabelLineInvertLabels_BOOLINT Display Angle Above in Label Line NIL
    DIMSTYLE_PROP_Value_LabelLineSuppressAngle_BOOLINT uppress Angle in Label Line NIL
    DIMSTYLE_PROP_Value_LabelLineSuppressLength_BOOLINT Suppress Length in Label Line NIL
    DIMSTYLE_PROP_Value_OrdDatumValue_DOUBLE Datum Value for Ordinate Dims NIL
    DIMSTYLE_PROP_Value_OrdDecrementReverse_BOOLINT Value Decrease below datum or zero NIL
    DIMSTYLE_PROP_Value_OrdUseDatumValue_BOOLINT Use Datum Value for Ordinate Dims NIL
    DIMSTYLE_PROP_Value_RoundLSD_BOOLINT Use DIN style rounding NIL
    DIMSTYLE_PROP_Value_SecAccuracy_ACCURACY Secondary Value Accuracy Secondary Unit Settings->Accuracy
    DIMSTYLE_PROP_Value_SecShowDelimeter_BOOLINT Show dash between master/sub (secondary) Secondary Unit Settings->Label
    DIMSTYLE_PROP_Value_SecShowMasterUnit_BOOLINT Show master units (secondary) Secondary Unit Settings->Label
    DIMSTYLE_PROP_Value_SecShowSubUnit_BOOLINT Show subunits (secondary) Secondary Unit Settings->Label
    DIMSTYLE_PROP_Value_SecShowTrailingZeros_BOOLINT Show Trailing Zeros (secondary) Units->Secondary Trailing Zero
    DIMSTYLE_PROP_Value_SecShowUnitLabel_BOOLINT Show unit label (secondary) Secondary Unit Settings->Label
    DIMSTYLE_PROP_Value_SecShowZeroMasterUnit_BOOLINT Show 0 digit if value less than 1 master unit (secondary) Not Yet
    DIMSTYLE_PROP_Value_ShowDelimeter_BOOLINT Show dash between master/sub (primary) Units->Label
    DIMSTYLE_PROP_Value_ShowMasterUnit_BOOLINT Show master units (primary) Units->Label
    DIMSTYLE_PROP_Value_ShowSubUnit_BOOLINT Show subunits (primary) Units->Label
    DIMSTYLE_PROP_Value_ShowTrailingZeros_BOOLINT Show Trailing Zeros (primary) Unit Format->Primary Trailing Zeros
    DIMSTYLE_PROP_Value_ShowUnitLabel_BOOLINT Show unit label (primary) Units->Label
    DIMSTYLE_PROP_Value_SuperscriptLSD_BOOLINT Use Din style superscripting NIL
    DIMSTYLE_PROP_Value_ThousandsSeparator_BOOLINT Add separator for thousands ex: 1,000,000 mm NIL
    DIMSTYLE_PROP_Value_ThousandsSpace_BOOLINT Add spaces for thousands ex: 1,000,000 mm Unit Format->Unit Separation
    DIMSTYLE_PROP_Value_Unit_UNITS Primary Master Unit Units->Master Units
    DIMSTYLE_PROP_Value_Unit_UNITS Primary Sub Unit Units->Sub Units
    DIMSTYLE_PROP_Value_UnitLabelMaster_MSWCHAR Primary Master Unit Label Units->Master Units Label
    DIMSTYLE_PROP_Value_UnitLabelSecMaster_MSWCHAR Secondary Master Unit Label Secondary Unit Settings->Master Units Label
    DIMSTYLE_PROP_Value_UnitLabelSecSub_MSWCHAR Secondary Sub Unit Label Secondary Unit Settings->Sub Units Label
    DIMSTYLE_PROP_Value_UnitLabelSub_MSWCHAR Primary Sub Unit Label Units->Sub Units Label
    DIMSTYLE_PROP_Value_UnitSec_UNITS Secondary Master Unit Secondary Unit Settings->Master Units
    DIMSTYLE_PROP_Value_UnitSec_UNITS Secondary Sub Unit Secondary Unit Settings->Sub Units
    DIMSTYLE_PROP_Value_UseWorkingUnits_BOOLINT Use Working Units or Style's Units Units->Use Working Units

    Migrating V7 code 
    The following table can be used to map V7 code which was directly accessing the tcb to the appropriate enumerated dimension style properties listed above.

    Note: the V7 to V8 mapping is not always direct. This table is meant to serve as a first step, not as a substitute for proper testing. In particular, keep in mind the following:

  • Some boolean properties have been reversed.
  • Some integer properties are combined.
  • Some V7 properties have been removed.
  • Many new properties have been added, see table above.

    V7 TCB Location V8 MDL Property Name
    tcb->ad1.level DIMSTYLE_PROP_Placement_Level_INTEGER
    tcb->ad1.mode.automan DIMSTYLE_PROP_Placement_TextPosition_INTEGER
    tcb->ad1.mode.just DIMSTYLE_PROP_Text_Justification_INTEGER
    tcb->ad1.mode.labang DIMSTYLE_PROP_Value_AngleMeasure_BOOLINT
    tcb->ad1.mode.parallel DIMSTYLE_PROP_General_Alignment_INTEGER
    tcb->ad1.mode.witness DIMSTYLE_PROP_ExtensionLine_ShowAny_BOOLINT
    tcb->ad1.params.dual DIMSTYLE_PROP_Text_ShowSecondary_BOOLINT
    tcb->ad1.params.embed DIMSTYLE_PROP_Text_Embed_BOOLINT
    tcb->ad1.params.horizontal DIMSTYLE_PROP_Text_Horizontal_BOOLINT
    tcb->ad1.params.tolerance DIMSTYLE_PROP_Tolerance_Show_BOOLINT
    tcb->ad1.params.tolmode DIMSTYLE_PROP_Tolerance_Mode_BOOLINT
    tcb->ad1.primaryAccuracy DIMSTYLE_PROP_Value_Accuracy_ACCURACY
    tcb->ad1.secondaryAccuracy DIMSTYLE_PROP_Value_SecAccuracy_ACCURACY
    tcb->ad2.arrfont DIMSTYLE_PROP_Terminator_ArrowFont_FONT
    tcb->ad2.arrhead DIMSTYLE_PROP_Terminator_ArrowChar_CHAR
    tcb->ad2.cofont DIMSTYLE_PROP_Terminator_OriginFont_FONT
    tcb->ad2.comorg DIMSTYLE_PROP_Terminator_OriginChar_CHAR
    tcb->ad2.diam DIMSTYLE_PROP_Symbol_DiameterChar_CHAR
    tcb->ad2.diamfont DIMSTYLE_PROP_Symbol_DiameterFont_FONT
    tcb->ad2.lowtol DIMSTYLE_PROP_Tolerance_LowerValue_DOUBLE
    tcb->ad2.oblique DIMSTYLE_PROP_Terminator_StrokeChar_CHAR
    tcb->ad2.oblqfont DIMSTYLE_PROP_Terminator_StrokeFont_FONT
    tcb->ad2.txheight DIMSTYLE_PROP_Text_Height_DOUBLE
    tcb->ad2.uptol DIMSTYLE_PROP_Tolerance_UpperValue_DOUBLE
    tcb->ad4.angle DIMSTYLE_PROP_Value_AngleFormat_INTEGER
    tcb->ad4.bowtie_font DIMSTYLE_PROP_Terminator_DotFont_FONT
    tcb->ad4.bowtie_symbol DIMSTYLE_PROP_Terminator_DotChar_CHAR
    tcb->ad4.dim_color DIMSTYLE_PROP_General_Color_COLOR
    tcb->ad4.dim_style DIMSTYLE_PROP_General_LineStyle_LINESTYLE
    tcb->ad4.dim_template.above_symbol DIMSTYLE_PROP_Text_ArcLengthSymbol_TEMPLATEFLAG
    tcb->ad4.dim_template.bowtie_symbol DIMSTYLE_PROP_Terminator_Joint_TEMPLATEFLAG
    tcb->ad4.dim_template.centermark DIMSTYLE_PROP_General_ShowCenterMark_TEMPLATEFLAG
    tcb->ad4.dim_template.first_term DIMSTYLE_PROP_Terminator_First_TEMPLATEFLAG
    tcb->ad4.dim_template.left_term DIMSTYLE_PROP_Terminator_Left_TEMPLATEFLAG
    tcb->ad4.dim_template.left_witness DIMSTYLE_PROP_ExtensionLine_Left_TEMPLATEFLAG
    tcb->ad4.dim_template.nofit_vertical DIMSTYLE_PROP_Text_NoFitVertical_TEMPLATEFLAG
    tcb->ad4.dim_template.post_symbol DIMSTYLE_PROP_Symbol_Suffix_TEMPLATEFLAG
    tcb->ad4.dim_template.pre_symbol DIMSTYLE_PROP_Symbol_Prefix_TEMPLATEFLAG
    tcb->ad4.dim_template.right_term DIMSTYLE_PROP_Terminator_Right_TEMPLATEFLAG
    tcb->ad4.dim_template.right_witness DIMSTYLE_PROP_ExtensionLine_Right_TEMPLATEFLAG
    tcb->ad4.dim_template.stacked DIMSTYLE_PROP_General_Stacked_TEMPLATEFLAG
    tcb->ad4.dim_template.vertical_text DIMSTYLE_PROP_Text_Vertical_TEMPLATEFLAG
    tcb->ad4.dim_weight DIMSTYLE_PROP_General_Weight_WEIGHT
    tcb->ad4.dimcen DIMSTYLE_PROP_General_CenterMarkSize_DOUBLE
    tcb->ad4.dimension_scale DIMSTYLE_PROP_General_DimensionScale_DOUBLE
    tcb->ad4.dimfont DIMSTYLE_PROP_General_Font_FONT
    tcb->ad4.dimtxt.lower_prefix DIMSTYLE_PROP_Symbol_LowerPrefixChar_CHAR
    tcb->ad4.dimtxt.lower_suffix DIMSTYLE_PROP_Symbol_LowerSuffixChar_CHAR
    tcb->ad4.dimtxt.main_prefix DIMSTYLE_PROP_Symbol_MainPrefixChar_CHAR
    tcb->ad4.dimtxt.main_suffix DIMSTYLE_PROP_Symbol_MainSuffixChar_CHAR
    tcb->ad4.dimtxt.tol_prefix DIMSTYLE_PROP_Symbol_TolPrefixChar_CHAR
    tcb->ad4.dimtxt.tol_suffix DIMSTYLE_PROP_Symbol_TolSuffixChar_CHAR
    tcb->ad4.dimtxt.upper_prefix DIMSTYLE_PROP_Symbol_UpperPrefixChar_CHAR
    tcb->ad4.dimtxt.upper_suffix DIMSTYLE_PROP_Symbol_UpperSuffixChar_CHAR
    tcb->ad4.dimtxt_color DIMSTYLE_PROP_Text_Color_COLOR
    tcb->ad4.dimtxt_weight DIMSTYLE_PROP_Text_Weight_WEIGHT
    tcb->ad4.ext_dimflg.arrowhead DIMSTYLE_PROP_Terminator_StandardArrowhead_INTEGER
    tcb->ad4.ext_dimflg.arrowOut DIMSTYLE_PROP_Terminator_Mode_INTEGER
    tcb->ad4.ext_dimflg.boxtext DIMSTYLE_PROP_Text_Box_BOOLINT
    tcb->ad4.ext_dimflg.captext DIMSTYLE_PROP_Text_Capsule_BOOLINT
    tcb->ad4.ext_dimflg.colorOverride DIMSTYLE_PROP_General_OverideColor_BOOLINT
    tcb->ad4.ext_dimflg.compatible DIMSTYLE_PROP_Placement_CompatibleV3_BOOLINT
    tcb->ad4.ext_dimflg.decimal_comma DIMSTYLE_PROP_Text_DecimalComma_BOOLINT
    tcb->ad4.ext_dimflg.fontOverride DIMSTYLE_PROP_Text_Font_BOOLINT
    tcb->ad4.ext_dimflg.joiner DIMSTYLE_PROP_ExtensionLine_Join_BOOLINT
    tcb->ad4.ext_dimflg.leading_zero DIMSTYLE_PROP_Text_LeadingZero_BOOLINT
    tcb->ad4.ext_dimflg.leading_zero2 DIMSTYLE_PROP_Text_SecLeadingZero_BOOLINT
    tcb->ad4.ext_dimflg.levelOverride DIMSTYLE_PROP_Placement_OverrideLevel_BOOLINT
    tcb->ad4.ext_dimflg.noAutoTextLift DIMSTYLE_PROP_Text_AutoLift_BOOLINT
    tcb->ad4.ext_dimflg.noLevelSymb DIMSTYLE_PROP_General_IgnoreLevelSymbology_BOOLINT
    tcb->ad4.ext_dimflg.omitLeadingDelimeter DIMSTYLE_PROP_Text_OmitLeadingDelimiter_BOOLINT
    tcb->ad4.ext_dimflg.relDimLine DIMSTYLE_PROP_General_RelativeDimLine_BOOLINT
    tcb->ad4.ext_dimflg.roundLSD DIMSTYLE_PROP_Value_RoundLSD_BOOLINT
    tcb->ad4.ext_dimflg.semiauto DIMSTYLE_PROP_Placement_TextPosition_INTEGER
    tcb->ad4.ext_dimflg.styleOverride DIMSTYLE_PROP_General_OverrideLineStyle_BOOLINT
    tcb->ad4.ext_dimflg.superscriptLSD DIMSTYLE_PROP_Value_SuperscriptLSD_BOOLINT
    tcb->ad4.ext_dimflg.textColorOverride DIMSTYLE_PROP_Text_OverrideColor_BOOLINT
    tcb->ad4.ext_dimflg.textSizeOverride DIMSTYLE_PROP_Text_OverrideHeight_BOOLINT
    tcb->ad4.ext_dimflg.textWeightOverride DIMSTYLE_PROP_Text_OverrideWeight_BOOLINT
    tcb->ad4.ext_dimflg.trailing_zeros DIMSTYLE_PROP_Value_ShowTrailingZeros_BOOLINT
    tcb->ad4.ext_dimflg.underlineText DIMSTYLE_PROP_Text_Underline_BOOLINT
    tcb->ad4.ext_dimflg.useRefUnits DIMSTYLE_PROP_Placement_UseReferenceScale_BOOLINT
    tcb->ad4.ext_dimflg.weightOverride DIMSTYLE_PROP_General_OverrideWeight_BOOLINT
    tcb->ad4.refdispl DIMSTYLE_PROP_Value_AnglePrecision_INTEGER
    tcb->ad4.stack_offset DIMSTYLE_PROP_General_StackOffset_DOUBLE
    tcb->ad4.text_margin DIMSTYLE_PROP_Terminator_MinLeader_DOUBLE
    tcb->ad4.toltxt_scale DIMSTYLE_PROP_Tolerance_TextScale_DOUBLE
    tcb->ad4.witness_extend DIMSTYLE_PROP_ExtensionLine_Extend_DOUBLE
    tcb->ad4.witness_offset DIMSTYLE_PROP_ExtensionLine_Offset_DOUBLE
    tcb->ad5.altSymb.color DIMSTYLE_PROP_ExtensionLine_Color_COLOR
    tcb->ad5.altSymb.style DIMSTYLE_PROP_ExtensionLine_LineStyle_LINESTYLE
    tcb->ad5.altSymb.weight DIMSTYLE_PROP_ExtensionLine_Weight_WEIGHT
    tcb->ad5.flags.altColor DIMSTYLE_PROP_ExtensionLine_OverrideColor_BOOLINT
    tcb->ad5.flags.altStyle DIMSTYLE_PROP_ExtensionLine_OverrideLineStyle_BOOLINT
    tcb->ad5.flags.altWeight DIMSTYLE_PROP_ExtensionLine_OverrideWeight_BOOLINT
    tcb->ad5.flags.metricSpc DIMSTYLE_PROP_Value_ThousandsSpace_BOOLINT
    tcb->ad5.flags.multiFrame DIMSTYLE_PROP_MLNote_FrameType_INTEGER
    tcb->ad5.flags.multiJust DIMSTYLE_PROP_MLNote_Justification_INTEGER
    tcb->ad5.flags.multiLeader DIMSTYLE_PROP_MLNote_ShowLeader_BOOLINT
    tcb->ad5.flags.radialMode DIMSTYLE_PROP_General_RadialMode_INTEGER
    tcb->ad5.flags.termColor DIMSTYLE_PROP_Terminator_OverrideColor_BOOLINT
    tcb->ad5.flags.termStyle DIMSTYLE_PROP_Terminator_OverrideLineStyle_BOOLINT
    tcb->ad5.flags.termWeight DIMSTYLE_PROP_Terminator_OverrideWeight_BOOLINT
    tcb->ad5.flags.thousandSep DIMSTYLE_PROP_Value_ThousandsSeparator_BOOLINT
    tcb->ad5.flags.useSecUnits DIMSTYLE_PROP_Text_ShowSecondary_BOOLINT
    tcb->ad5.flags.useWidth DIMSTYLE_PROP_Text_OverrideWidth_BOOLINT
    tcb->ad5.secUnits.mastName DIMSTYLE_PROP_Value_UnitLabelSecMaster_MSWCHAR
    tcb->ad5.secUnits.subName DIMSTYLE_PROP_Value_UnitLabelSecSub_MSWCHAR
    tcb->ad5.termHeight DIMSTYLE_PROP_Terminator_Height_DOUBLE
    tcb->ad5.termSymb.color DIMSTYLE_PROP_Terminator_Color_COLOR
    tcb->ad5.termSymb.style DIMSTYLE_PROP_Terminator_LineStyle_LINESTYLE
    tcb->ad5.termSymb.weight DIMSTYLE_PROP_Terminator_Weight_WEIGHT
    tcb->ad5.termWidth DIMSTYLE_PROP_Terminator_Width_DOUBLE
    tcb->ad5.textMarginH DIMSTYLE_PROP_Text_HorizontalMargin_DOUBLE
    tcb->ad5.textMarginV DIMSTYLE_PROP_Text_VerticalMargin_DOUBLE
    tcb->ad5.textWidth DIMSTYLE_PROP_Text_Width_DOUBLE
    tcb->ad5.tolMarginH DIMSTYLE_PROP_Tolerance_TextHorizontalMargin_DOUBLE
    tcb->ad5.tolMarginV DIMSTYLE_PROP_Tolerance_TextVerticalMargin_DOUBLE
    tcb->ad5.tolSepV DIMSTYLE_PROP_Tolerance_TextVerticalSeparation_DOUBLE
    tcb->ad6.arrow DIMSTYLE_PROP_Terminator_ArrowCellName_MSWCHAR
    tcb->ad6.dot DIMSTYLE_PROP_Terminator_DotCellName_MSWCHAR
    tcb->ad6.flags.arrow DIMSTYLE_PROP_Terminator_ArrowType_INTEGER
    tcb->ad6.flags.diameter DIMSTYLE_PROP_Symbol_DiameterType_INTEGER
    tcb->ad6.flags.dot DIMSTYLE_PROP_Terminator_DotType_INTEGER
    tcb->ad6.flags.origin DIMSTYLE_PROP_Terminator_OriginType_INTEGER
    tcb->ad6.flags.plusMinus DIMSTYLE_PROP_Symbol_PlusMinusType_INTEGER
    tcb->ad6.flags.prefix DIMSTYLE_PROP_Symbol_PrefixType_INTEGER
    tcb->ad6.flags.stroke DIMSTYLE_PROP_Terminator_StrokeType_INTEGER
    tcb->ad6.flags.suffix DIMSTYLE_PROP_Symbol_SuffixType_INTEGER
    tcb->ad6.origin DIMSTYLE_PROP_Terminator_OriginCellName_MSWCHAR
    tcb->ad6.pmChar DIMSTYLE_PROP_Symbol_PlusMinusChar_CHAR
    tcb->ad6.preChar DIMSTYLE_PROP_Symbol_PrefixChar_CHAR
    tcb->ad6.prefix DIMSTYLE_PROP_Symbol_PrefixCellName_MSWCHAR
    tcb->ad6.preFont DIMSTYLE_PROP_Symbol_PrefixFont_FONT
    tcb->ad6.stroke DIMSTYLE_PROP_Terminator_StrokeCellName_MSWCHAR
    tcb->ad6.sufChar DIMSTYLE_PROP_Symbol_SuffixChar_CHAR
    tcb->ad6.suffix DIMSTYLE_PROP_Symbol_SuffixCellName_MSWCHAR
    tcb->ad6.sufFont DIMSTYLE_PROP_Symbol_SuffixFont_FONT

  • How useful was this page?
    less   more
    Suggest new content or let us know how we can improve this content (optional):

    << E-mail this page