Click or drag to resize

PublishManagerExportNode Method

노드별 형상 파일을 추출

Namespace:  VIZPub.NET
Assembly:  VIZPub.NET (in VIZPub.NET.dll) Version: 1.3.21.508 (1.3.21.508)
Syntax
C#
public bool ExportNode(
	string input,
	string outputDir,
	ExportFileFormats fileFormat,
	ExportNameFormats nameFormat,
	ExportNodeKind nodeKind
)

Parameters

input
Type: SystemString
VIZ 파일 경로
outputDir
Type: SystemString
노드별 VIZ 파일 출력 경로(디렉토리)
fileFormat
Type: VIZPub.NETExportFileFormats
내보내기 파일 형식
nameFormat
Type: VIZPub.NETExportNameFormats
이름 명명 규칙
nodeKind
Type: VIZPub.NETExportNodeKind
내보내기 노드 유형

Return Value

Type: Boolean
내보내기 결과
Examples
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Examples
{
    public class VIZPubExample
    {
        public void Example()
        {
            // Initialize VIZPub.NET
            VIZPub.NET.ModuleInitializer.Run();

            // Construction
            VIZPub.NET.PublishManager manager = new VIZPub.NET.PublishManager();

            // License
            VIZPub.NET.LicenseManager.LicenseResults authResult 
                = manager.License.LicenseFile("C:\\License\\VIZPub.NET.lic");

            if (authResult != VIZPub.NET.LicenseManager.LicenseResults.SUCCESS)
            {
                System.Diagnostics.Debug.WriteLine(authResult.ToString());
                return;
            }

            // Event :: Progress
            manager.OnProgressChangedEvent += VIZPub_OnProgressChangedEvent;

            string input = "C:\\MODEL\\SAMPLE.viz";
            string output = "C:\\MODEL\\SAMPLE";

            bool result = manager.ExportNode(
                input                                       /* INPUT : VIZ */
                , output                                    /* OUTPUT : DIRECTORY */
                , VIZPub.NET.ExportFileFormats.VIZ          /* OUTPUT FORMAT */
                , VIZPub.NET.ExportNameFormats.NODE_NAME    /* NAME FORMAT */
                , VIZPub.NET.ExportNodeKind.ASSEMBLY_ONLY   /* NODE KIND */
                );

            System.Diagnostics.Debug.WriteLine(
                string.Format("Elapsed Milliseconds = {0:#,0}", manager.ElapsedMilliseconds)
                );
        }

        private void VIZPub_OnProgressChangedEvent(object sender, VIZPub.NET.ProgressEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine(
                string.Format("{0} : {1}", e.Mode, e.Progress)
                );
        }
    }
}
See Also