コード例 #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
 }
コード例 #3
0
 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);
        }
コード例 #5
0
        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();
 }