Buckets:
kuklev9797/revit-ckpts / assets /samples /Samples /CustomExporter /Custom2DExporter /CS /Export2DView.cs
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows.Forms; | |
| namespace Revit.SDK.Samples.Custom2DExporter.CS | |
| { | |
| /// <summary> | |
| /// UI Form presented to the user used to collection options related to the export. | |
| /// </summary> | |
| public partial class Export2DView : System.Windows.Forms.Form | |
| { | |
| /// <summary> | |
| /// Construct a new form. | |
| /// </summary> | |
| public Export2DView() | |
| { | |
| InitializeComponent(); | |
| m_exportOptions = new ExportOptions(); | |
| m_exportOptions.ExportAnnotationObjects = false; | |
| m_exportOptions.ExportPatternLines = false; | |
| } | |
| ExportOptions m_exportOptions = null; | |
| /// <summary> | |
| /// Property containing the options chosen for export. | |
| /// </summary> | |
| public ExportOptions ViewExportOptions | |
| { | |
| get | |
| { | |
| return m_exportOptions; | |
| } | |
| } | |
| /// <summary> | |
| /// The option for creating Path of Travel. | |
| /// </summary> | |
| public class ExportOptions | |
| { | |
| bool m_exportAnnotationObjects; | |
| bool m_exportPatternLines; | |
| /// <summary> | |
| /// True if AnnotationObjects are to be included in the export, false otherwise. | |
| /// </summary> | |
| public bool ExportAnnotationObjects | |
| { | |
| get | |
| { | |
| return m_exportAnnotationObjects; | |
| } | |
| set | |
| { | |
| m_exportAnnotationObjects = value; | |
| } | |
| } | |
| /// <summary> | |
| /// True if Pattern Lines are to be included in the export, false otherwise. | |
| /// </summary> | |
| public bool ExportPatternLines | |
| { | |
| get | |
| { | |
| return m_exportPatternLines; | |
| } | |
| set | |
| { | |
| m_exportPatternLines = value; | |
| } | |
| } | |
| } | |
| private void checkBox2_CheckedChanged(object sender, EventArgs e) | |
| { | |
| m_exportOptions.ExportAnnotationObjects = checkBox2.Checked; | |
| } | |
| private void checkBox3_CheckedChanged(object sender, EventArgs e) | |
| { | |
| m_exportOptions.ExportPatternLines = checkBox3.Checked; | |
| } | |
| } | |
| } | |
Xet Storage Details
- Size:
- 2.45 kB
- Xet hash:
- fec8651c1a3cbaa9ae659c239ffdf02553550951c2b0ff96472e0af06fa07ebd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.