Click or drag to resize
XDL

XvcBaseSaveFile Method

외부 파일로 XvcBase 객체를 저장한다.

Namespace:  Pixoneer.NXDL.NVC
Assembly:  NXDLvc (in NXDLvc.dll) Version: 2.0.3.31
Syntax
C#
public bool SaveFile(
	string strSaveFile,
	out string strError,
	XThread thd
)

Parameters

strSaveFile
Type: SystemString
[In] 출력 경로 문자열
strError
Type: SystemString
[Out] 에러 메시지 문자열.
thd
Type: Pixoneer.NXDLXThread
[In] 쓰레드 처리를 위한 XThread 객체(필요하지 않으면 nullptr을 입력).

Return Value

Type: Boolean
저장을 완료하면 true를 반환하고 그렇지 않으면 false를 반환한다.
Examples
예제 #1:
private void pixoneerXVMLToolStripMenuItem_Click(object sender, EventArgs e)
{
    Pixoneer.NXDL.NVC.XvcBase vcbase = nxImageLayerVectorEditor1.GetEditBase();
    if (vcbase == null) return;

    SaveFileDialog dialog = new SaveFileDialog();
    dialog.Title = "Save XvcBase File";
    dialog.DefaultExt = "xvml";
    dialog.Filter = "XvcBase Files|*.xvml";

    if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    {
        String strError;
        bool bres = vcbase.SaveFile(dialog.FileName, out strError, null);

        if (bres)
            MessageBox.Show("Vector File Save Succeed", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
        else
            MessageBox.Show("Vector File Save Failed", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
}
See Also