Click or drag to resize

ModelManagerMergeToVIZ Method

복수 개의 VIZ 파일을 단일 VIZ 파일로 저장(병합)

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool MergeToVIZ(
	List<string> input,
	string output,
	ModelManagerFileVersion ver = ModelManagerFileVersion.V303,
	bool showFileInExplorer = false
)

Parameters

input
Type: System.Collections.GenericListString
입력 VIZ 파일
output
Type: SystemString
VIZ 파일
ver (Optional)
Type: VIZCore3D.NET.ManagerModelManagerFileVersion
VIZ File Version
showFileInExplorer (Optional)
Type: SystemBoolean
변환 후, 탐색기로 조회

Return Value

Type: Boolean
변환 결과
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    OpenFileDialog dlgInput = new OpenFileDialog();
    dlgInput.Multiselect = true;
    dlgInput.Filter = "VIZ (*.viz)|*.viz";
    if (dlgInput.ShowDialog() != DialogResult.OK) return;

    string[] files = dlgInput.FileNames;

    string output = String.Empty;
    SaveFileDialog dlgOutput = new SaveFileDialog();
    dlgOutput.Filter = "VIZ (*.viz)|*.viz";
    if (dlgOutput.ShowDialog() != DialogResult.OK) return;

    output = dlgOutput.FileName;

    vizcore3d.Model.MergeToVIZ(
        files.ToList()
        , output
        , Manager.ModelManager.FileVersion.V303
        , true
        );
}
See Also