Announcement

Collapse
No announcement yet.

Detail Number in a View List Schedule

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Detail Number in a View List Schedule

    OK, why is "Sheet Number" an available parameter to add to a View List Schedule, but "Detail Number" is not?

    #2
    Hmm....
    Michael "MP" Patrick (Deceased - R.I.P)

    Comment


      #3
      Originally posted by Steven Thedens View Post
      OK, why is "Sheet Number" an available parameter to add to a View List Schedule, but "Detail Number" is not?
      Because detail numbers are derived from the sheet. You are scheduling views. I'm guessing the sheet number view is a special under the hood factory programmed arrangement for view schedules, whereas detail number is not?? There maybe an addin available or the API may be able to do it?
      There are no stupid questions, only stupid people

      Comment


        #4
        Get rid of the detail number from your titles and just use Title on Sheet, which is scheduleable. Put a number in front of the name if needed.

        (Also because the main view is always automatically numbered 1. so your details on the sheet start at 2. and you have to first change the main view number before you can number your details......all an unneccesary waste of time IMHO)
        "One must imagine Sisyphus happy." Albert Camus - "The innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may ​do well under the new." Nicolo Machiavelli -"Things that are too complex are not useful, Things that are useful are simple." Mikhail Kalashnikov

        Comment


          #5
          I see what Steven is questioning....you can get the "Sheet Name", the "Sheet Number" and the "Title on Sheet"....all Sheet values mind you....but no "Detail Number".

          I'm guessing the Factory left enough bread crumbs to get you to the proper sheet location and then all you need to do is click the proper view in the Project Browser and you can see the Detail Number in the properties when selected...
          Michael "MP" Patrick (Deceased - R.I.P)

          Comment


            #6
            MP, that's exactly what I'm referring to.

            Originally posted by MPwuzhere View Post
            I'm guessing the Factory left enough bread crumbs to get you to the proper sheet location and then all you need to do is click the proper view in the Project Browser and you can see the Detail Number in the properties when selected...
            A user can always look at the Properties of a given element when that element is selected. So, yes, the information is available. We just want to leverage that information into a Schedule so users can find stuff easier.

            This isn't a Schedule that will be placed on a sheet. It's a tool for the project architect to look at the list of 117 drafting views and see that 23 of them haven't been placed on sheets and easily find the 94 that have been placed.
            Steven Thedens
            Member
            Last edited by Steven Thedens; May 28, 2014, 03:44 PM.

            Comment


              #7
              If you want to know what is on a sheet and what isnt you can also use the project browser settings (View->UserInterface->Browser Organisation).

              On projects with a lot of sheets I sort views by discipline and then the first 2 carachters of the sheet number (Which is also the discipline in our case). So everything under a particular discipline sorts into two groups, "XX" discipline number for views on sheets and "??" for views that are not on sheets. Then everyone can see what are 'work' views that can be changed or deleted, and what is already on a sheet and shouldnt be messed with.
              josephpeel
              Forum Addict
              Last edited by josephpeel; June 2, 2014, 11:51 AM.
              "One must imagine Sisyphus happy." Albert Camus - "The innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may ​do well under the new." Nicolo Machiavelli -"Things that are too complex are not useful, Things that are useful are simple." Mikhail Kalashnikov

              Comment


                #8
                Here is a quick macro that will take the built-in Detail Number for views on a sheet and place it into a parameter called "Detail_Number". You need to create this project parameter (with text for the type of parameter) first before running the macro. Its easiest to just create the parameter while in a view list schedule.

                The macro would need to be ran often if you are adding/removing/changing views on sheets to update the numbers.

                Also, be aware that if you change the values of the new Detail_Number parameter, it won't change the value of the built-in parameter's values. If you are interested in a macro that does this let me know.

                Code:
                public void DetailNumber()
                {
                	UIDocument uidoc = this.ActiveUIDocument; 
                	Document doc = uidoc.Document;
                
                	string strDetailNumber = "Detail_Number";       	
                
                	FilteredElementCollector collector = new FilteredElementCollector(doc);
                	ICollection<Element> collection = collector.OfClass(typeof(View)).ToElements(); 
                
                	using (Transaction t = new Transaction(doc, "Detail Number"))
                	{
                		t.Start();
                		
                		foreach(Element e in collection)
                		{
                			View v = e as View;
                			
                			try
                			{
                				Parameter bpDetailNumber = v.get_Parameter(BuiltInParameter.VIEWPORT_DETAIL_NUMBER);
                				v.get_Parameter(strDetailNumber).Set(bpDetailNumber.AsString());
                			}
                			catch
                			{
                				
                			}
                			
                		}
                		
                		t.Commit();
                	}
                }
                Edit: Wrote up a blog post explaining the process at http://revitcoaster.blogspot.com/201...ers-macro.html
                troygates
                Senior Member
                Last edited by troygates; June 5, 2014, 09:49 PM.
                Troy Gates - Director of Design Technology
                KTGY Group, Inc - http://twitter.com/troygates

                Comment


                  #9
                  Hi Troy,
                  i would be interested in being able to change detail numbers on the fly by schedules. thanks


                  Originally posted by troygates View Post
                  Here is a quick macro that will take the built-in Detail Number for views on a sheet and place it into a parameter called "Detail_Number". You need to create this project parameter (with text for the type of parameter) first before running the macro. Its easiest to just create the parameter while in a view list schedule.

                  The macro would need to be ran often if you are adding/removing/changing views on sheets to update the numbers.

                  Also, be aware that if you change the values of the new Detail_Number parameter, it won't change the value of the built-in parameter's values. If you are interested in a macro that does this let me know.

                  Code:
                  public void DetailNumber()
                  {
                      UIDocument uidoc = this.ActiveUIDocument; 
                      Document doc = uidoc.Document;
                  
                      string strDetailNumber = "Detail_Number";           
                  
                      FilteredElementCollector collector = new FilteredElementCollector(doc);
                      ICollection<Element> collection = collector.OfClass(typeof(View)).ToElements(); 
                  
                      using (Transaction t = new Transaction(doc, "Detail Number"))
                      {
                          t.Start();
                          
                          foreach(Element e in collection)
                          {
                              View v = e as View;
                              
                              try
                              {
                                  Parameter bpDetailNumber = v.get_Parameter(BuiltInParameter.VIEWPORT_DETAIL_NUMBER);
                                  v.get_Parameter(strDetailNumber).Set(bpDetailNumber.AsString());
                              }
                              catch
                              {
                                  
                              }
                              
                          }
                          
                          t.Commit();
                      }
                  }
                  Edit: Wrote up a blog post explaining the process at Revit Coaster: View Schedule with Detail Numbers Macro for Revit

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X