예제 #1
0
 public OneFileAllExistingParameters(ParameterJerkerHubCentral jerkerHub) : base(jerkerHub)
 {
     if (AllParamData != null && AllParamData.Any())
     {
         string dog = AllParamData[0].ParameterDefinitionName;
     }
 }
예제 #2
0
 public ClassOneParamAssociation(ExternalDefinition externDef, ParameterJerkerHubCentral jerkerHub) : base(jerkerHub)
 {
     this.JerkHub            = jerkerHub;
     _thisExternalDefinition = externDef;
     _paramName      = externDef.Name;
     _parameterGroup = externDef.OwnerGroup.Name;
     _groupParameterUnderEnumAsString = Autodesk.Revit.DB.LabelUtils.GetLabelFor(BuiltInParameterGroup.PG_ANALYSIS_RESULTS);
     //  ptr2TargetDoc = doc
 }
 public ClassFileSupplemental(ParameterJerkerHubCentral jerkHub) : base(jerkHub)
 {
     _rawfileData = new List <string>();
     this.ConstructFileName();
     if (DataFileExists)
     {
         this.ReadSupplementalDataFile();
         this.HarvestSupplementalFileData();
     }
 }
예제 #4
0
        public Autodesk.Revit.UI.Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            try
            {
                RevitStuff revitStuff = new RevitStuff(commandData);
                ClassDebug Ptr2Debug  = new ClassDebug();

                ParameterJerkerHubCentral jerkHub = new ParameterJerkerHubCentral(revitStuff, Ptr2Debug);
                jerkHub.Ptr2Form.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            return(Result.Succeeded);
        }
        public ClassSharedParametersFile(ParameterJerkerHubCentral jerkHub) : base(jerkHub)
        {
            // , Optional overideSharedParametersFileNameLong As String = Nothing)
            jerkHub.Flags.StageOkForJerking  = true;
            UsersSharedParameterFileNameLong = jerkHub.RevitInterface.Doc.Application.SharedParametersFilename;
            FileInfo info = new FileInfo(UsersSharedParameterFileNameLong);

            if (info != null)
            {
                UsersSharedParameterDirectory = info.DirectoryName;
            }

            // Else
            //     usersSharedParameterFileNameLong = overideSharedParametersFileNameLong
            // End If
            //    jerkHub.ptr2Form.LabelCurrentSharedParametersFile.Text = usersSharedParameterFileNameLong
            this.verifyThatShareParameterFileExists();
            JerkHub.Ptr2Debug.AddToDebug(("usersSharedParameterFileNameLong: " + UsersSharedParameterFileNameLong));
            // getParameterJerkSharedParametersFile()
            // If stageOkForSetup Then
            //     parameterJerkSharedParameterFileObj = ptr2Doc.Application.OpenSharedParameterFile
            // End If
        }
예제 #6
0
 public ClassallSetsObj(ParameterJerkerHubCentral jerkHub) : base(jerkHub)
 {
     AllSetListAMasterForEdit = new List <ClassOneSet>();
     allSetListBForShortCuts  = new List <ClassOneSet>();
 }
예제 #7
0
 public OneParamData(FamilyParameter familyParameter, ParameterJerkerHubCentral jerkHub) : base(jerkHub)
 {
     this.FamilyParameter  = familyParameter;
     CurrentParameterGroup = familyParameter.Definition.ParameterGroup;
 }
예제 #8
0
 public ClassOneSet(string nameOfNewSet, ParameterJerkerHubCentral jerkHub) : base(jerkHub)
 {
     this.SetName = nameOfNewSet;
 }
예제 #9
0
 public GroupParameterUnderManager(ParameterJerkerHubCentral jerkHub) : base(jerkHub)
 {
     this.InitParameterList();
     this.BuildLabelList();
     GroupParameterUnderlabelList.Sort();
 }