Click or drag to resize

PublishManagerExportVIZW Method

CAD 모델을 VIZW 파일로 내보내기

Namespace:  VIZPub.NET
Assembly:  VIZPub.NET (in VIZPub.NET.dll) Version: 1.3.21.508 (1.3.21.508)
Syntax
C#
public bool ExportVIZW(
	string input,
	string output
)

Parameters

input
Type: SystemString
CAD 모델 경로
output
Type: SystemString
VIZW 파일 경로

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;

            // Write VIZ File Version
            manager.Version = VIZPub.NET.FileVersion.V303;

            // EDGE
            manager.EdgeDataGeneration = true;
            manager.ReadEdgeData = true;

            // Thumbnail
            manager.ThumbnailGeneration = true;

            // Cylinder
            manager.CylinderSideCountNormal = 12;
            manager.CylinderSideCountSmall = 6;

            // Structure
            manager.StructureMergeOption = VIZPub.NET.StructureMergeOptions.AsIs;

            // Node Name (Delete Slash)
            manager.NodeNameSlashDeleteOption = false;

            string input = "C:\\MODEL\\submarine.rvm";
            string output = "C:\\MODEL\\submarine.vizw";

            bool result = manager.ExportVIZW(input, output);

            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