Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

Re: [V8i C# Addin] Storing data in the DGN file?

$
0
0

PMFJI, MicroStationAPI has provided a perfect approach to append XAttributes to a model or file (independent of any specific element). For example,

ApplicationSettings fileSettings = IMstnSettings::GetCurrentSettings().GetFileApplicationSettings(ACTIVEMODEL);
XAttributeHandlerId handlerId (XATTRIBUTEID_MyMajorId, XATTRIBUTEID_FileParams);
fileSettings.SaveSetting(handlerId, 1, &fileParams, sizeof(FileParameters));

Unfortunately, these C++ objects are incovenient to use directly by C#. They can be directly used by C++/CLI if you like to write MicroStation Addin applications.

Regards, YongAn

 


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>