Document Type: TechNote Product(s): MicroStation Version(s): V8 Original Author: Bentley Technical Support Group Legacy Document Number: 8267
Document Type: TechNote
Product(s): MicroStation
Version(s): V8
Original Author: Bentley Technical Support Group
Legacy Document Number: 8267
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);
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.
The following table lists the dimension style properties that can be accessed with the API functions listed above.
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:
Product TechNotes and FAQs
MicroStation Desktop TechNotes and FAQs
Bentley Technical Support KnowledgeBase
Bentley LEARN Server
Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!