Dear all,
We have create customize export function with the SCExport sample. How could we limit the export file size or split them to fit in several DVD media by using DB format?
Please advance, thx.
KennethT
Dear all,
We have create customize export function with the SCExport sample. How could we limit the export file size or split them to fit in several DVD media by using DB format?
Please advance, thx.
KennethT
When exporting in the Milestone database format you get a lot of files, the files could be copied to a lot of DVDs.
You will not be able to playback unless you put it back in one disk or media that can hold the data.
There is no fuinctionality in the Smart Client to split a large db export and there is no functionality to playback from an export spanning multiple disk or media.
Could we limit the export file size to 4GB limit that we could easy to write them into DVD and easy to play them in one DVD?
Unfortunately there is no functionality for limiting the size of the export. Perhaps even worse; there is no functionality to estimate what size an export will be, you can only look at its size once it is actually done.
Dear Andersen,
We found that there have an Estimated Size indicator before export file in MIlestone 2019R1.
Please advance that how should we do that with SDK, thx.
Thank a lot!
KennethT
Dear Andersen,
We found there have a function ExtimateSizeofExport() in DataExportManager Class may useful which shown as following link https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_environment_manager.html&tree=tree_search.html?search=environmentmanager
However, It always return null when we call. We are using 2019R1 version with SDK. Please advance & thx.
KennethT
What you have found is something different.
When you have a MIP plugin that is capable of being exported you implement the DataExportManager Class. You are then in the plugin able to make sure some data is exported. The EstimateSizeofExport() method can then be used to tell how much data there is..
See the DataExport plugin sample for the usage of this.
https://doc.developer.milestonesys.com/html/index.html?base=samples/dataexport.html&tree=tree_1.html
Dear Andersen,
As we have mention before EstimateSizeofExport() has always return null when we use the DataExport sample. Please advance, thx.
KennethT
The code is here:
DataExportManager.cs line 103-
public override ulong? EstimateSizeOfExport()
Dear Andersen,
Yes, We could found that and when we use the following code
public override long? EstimateSIzeOfExport()
{
var size = base.EstmateSizeOfExport();
}
the value of size always return null. PLease advance, thx.
KennethT
This is your interface to tell the Smart Client what your data size is, it only says something about your plugin and the data your plugin introduces.
The functionality on the Smart Client Export dialog is unfortunately not exposed so that it can be used in a MIP plugin. There is no functionality to estimate what size an export will be.