Exemplo n.º 1
0
        public ExportToSym(IEnumerable <Autodesk.Connectivity.Explorer.Extensibility.ISelection> selection, VDF.Vault.Currency.Connections.Connection conn)
        {
            InitializeComponent();
            selectionSet = selection;
            connection   = conn;

            radInterface = new RadanInterface();
            radInterface.Initialize();

            selectedFiles = new List <ADSK.File>();

            // structure to hold list of files plus some extra attributes
            PartsToImport = new List <PartToImport>();

            propDefs = new Vault.Currency.Properties.PropertyDefinitionDictionary();
            propDefs =
                connection.PropertyManager.GetPropertyDefinitions(
                    VDF.Vault.Currency.Entities.EntityClassIds.Files,
                    null,
                    VDF.Vault.Currency.Properties.PropertyDefinitionFilter.IncludeUserDefined
                    );

            PopulateListBox();

            txtBoxProject.Text   = Properties.Settings.Default["radanProject"].ToString();
            txtBoxSymFolder.Text = symFolder;
        }