![]() | PublishManagerImportAttribute Method (String, String, String) |
Namespace: VIZPub.NET
public bool ImportAttribute( string input, string attribute, string output )
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_NO_ATT.viz"; string output = "C:\\MODEL\\SAMPLE.viz"; string input_attribute = "C:\\MODEL\\SAMPLE.txt"; bool result = manager.ImportAttribute( input /* INPUT : VIZ */ , input_attribute /* INPUT : ATTRIBUTE */ , output /* OUTPUT : VIZ + ATTRIBUTE */ ); 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) ); } } }