You are currently reviewing an older revision of this page.
How to create type 66 elements or XDATA and save them in DWG mode whenworking in V8 MDL.Product: MicroStation Version: V8Area: DWG-Save
There are essentially two ways that an application may store data withina design file:1) By attaching linkages to standard elements.2) By creating and storing application (Type 66) elements.In MicroStation V8 (08.00.02.20) and prior, neither of these types ofdata are saved when a DGN file is saved to DWG . Not to mention thatthis data is also discarded if it is created while editing a DWG file.For this reason, applications have been restricted to working solely inDGN files.There have been some changes so that both linkage data and type 66application elements can be saved from DGN to DWG and this data is al somaintained within a DWG file. The changes were incorporated in MS v8.1(08.01.00.07 and higher) and are available. This new cap ability is offby default and can be enabled by setting the MS_DWGSAVEAPPLICATIONDATAconfiguration variable. The application elements are stored as XRECORDSand the linkages as XDATA, although this implementation detail istransparent to DGN based application s.There are MDL functions, mdLinkage_xxxXDataxxx(), that will allowdevelopers to write XDATA and XRECORDS to DWG model s. There is anexample called Dictionary that illustrate how to implement thisfunctionality. This example and many other can currently be found on"MicroStation On The Web-> Utilities->MDL General"http://microstation.bentley.com/files/motw/resources/utilities/V8MDLExamples.zip