Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
MicroStation Wiki Create type 66 elements or XDATA
    • Sign in

    • -MicroStation Wiki
      • +Learning Tips
      • -MicroStation
        • +3D Printing - MicroStation
        • +Animation - MicroStation
        • +Archive / Backup - MicroStation
        • +Base Geometry - MicroStation
        • +Batch Processing - MicroStation
        • +CONNECT Advisor - MicroStation
        • CONNECT Integration - MicroStation
        • +CONNECTION Client
        • +Cells - MicroStation
        • +Change Tracking - MicroStation
        • +Configuration - MicroStation
        • +Coordinate Systems - MicroStation
        • +Curves - MicroStation
        • +Custom Linestyles - MicroStation
        • +DGN - MicroStation
        • +DWG - MicroStation
        • +Database - MicroStation
        • +Detailing Symbols - MicroStation
        • +Dimensions - MicroStation
        • +Documentation & Help - MicroStation
        • +Drawing Aids - MicroStation
        • +Exception - MicroStation
        • +FAQ - MicroStation
        • +Feature Based Solids Modeling - MicroStation
        • +File Access - MicroStation
        • +GUI - MicroStation
        • +General - MicroStation
        • +Graphics Display - MicroStation
        • +Groups - MicroStation
        • +Hardware / Input Devices - MicroStation
        • -Import/Export - MicroStation
          • Can I import or convert Revit RVT Files in Bentley applications?
          • Create type 66 elements or XDATA
          • Enable Macro for Excel 2007
          • Error opening file...[path to file] - When importing a CGM file.
          • Export STL is not accurate
          • Export to Google Earth wrong location
          • Issue with the display of Proxy elements that are generated by AutoDesk Mechanical 2000.
          • Opening a DWG file & the Units of the design
        • +Installation - MicroStation
        • +Interchange - MicroStation
        • +Interference - MicroStation
        • +Internationalization - MicroStation
        • +Levels - MicroStation
        • +Licensing - MicroStation
        • +Manipulation - MicroStation
        • +Markup / Redline - MicroStation
        • +Measure - MicroStation
        • +Mesh - MicroStation
        • +Models - MicroStation
        • +Multi-Lines - MicroStation
        • +OLE - MicroStation
        • +Other - MicroStation
        • +Parametrics - MicroStation
        • +Patterning - MicroStation
        • +Point Cloud - MicroStation
        • +Printing - MicroStation
        • +Programming - MicroStation
        • +Project Navigation - MicroStation
        • +Properties - MicroStation
        • +RSS Feeds - MicroStation
        • +Reference - MicroStation
        • +Security - MicroStation
        • +Selection - MicroStation
        • +Settings - MicroStation
        • +Sheet Composition - MicroStation
        • +Solids - MicroStation
        • +Standards - MicroStation
        • +Surfaces - MicroStation
        • +Tables - MicroStation
        • +Text - MicroStation
        • +UI Customization - MicroStation
        • +Units - MicroStation
        • +View - MicroStation
        • +Visualization - MicroStation
        • Welcome Page - MicroStation
        • +Accreditation - MicroStation
        • +i.Models - MicroStation
        • +ProjectWise Integration
        • +Raster - MicroStation
    • +Administration Wiki
    • +Annotations Wiki
    • +Bentley View Wiki
    • +MicroStation PowerDraft
    • +Programming Wiki
    • +Visualization Wiki

     
     Questions about this article, topic, or product? Click here. 

    Create type 66 elements or XDATA

       
      Applies To 
       
      Product(s): MicroStation
      Version(s): 08.00.00.00
      Environment:  N\A
      Area:  Import/Export
      Subarea:  Save
      Original Author: Bentley Technical Support Group
       

    Problem

    How to create type 66 elements or XDATA and save them in DWG mode when working in V8 MDL.

    Solution

    There are essentially two ways that an application may store data within a 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 of data are saved when a DGN file is saved to DWG . Not to mention that this data is also discarded if it is created while editing a DWG file. For this reason, applications have been restricted to working solely in DGN files.

    There have been some changes so that both linkage data and type 66 application elements can be saved from DGN to DWG and this data is al so maintained 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 off by default and can be enabled by setting the MS_DWGSAVEAPPLICATIONDATA configuration variable. The application elements are stored as XRECORDS and the linkages as XDATA, although this implementation detail is transparent to DGN based applications.

    There are MDL functions, mdLinkage_xxxXDataxxx(), that will allow developers to write XDATA and XRECORDS to DWG models. There is an example called Dictionary that illustrate how to implement this functionality. 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

    • Migrated
    • SELECTsupport
    • Share
    • History
    • More
    • Cancel
    • Elisabeth Pry Created by Bentley Colleague Elisabeth Pry
    • When: Mon, Jun 9 2014 12:06 PM
    • Andrew Bell Last revision by Bentley Colleague Andrew Bell
    • When: Thu, Nov 26 2015 1:34 AM
    • Revisions: 3
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies