Results 1 to 9 of 9
Like Tree4Likes
  • 2 Post By josephpeel
  • 1 Post By josephpeel
  • 1 Post By troygates

Thread: Detail Number in a View List Schedule

  1. #1
    Member Steven Thedens's Avatar
    Join Date
    May 2, 2012
    Location
    Omaha, Ne
    Posts
    58
    Current Local Time
    02:41 PM

    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. #2
    The Moderator with No Imagination MPwuzhere's Avatar
    Join Date
    December 14, 2010
    Location
    Coeur d Alene, ID
    Posts
    4,153
    Current Local Time
    12:41 PM
    Hmm....

  3. #3
    Forum Addict elton williams's Avatar
    Join Date
    December 7, 2010
    Location
    Gold Coast
    Posts
    2,066
    Current Local Time
    06:41 AM
    Quote 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?

  4. #4
    Forum Addict josephpeel's Avatar
    Join Date
    May 3, 2012
    Posts
    1,190
    Current Local Time
    09:41 PM
    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)
    elton williams and Ning Zhou like this.

  5. #5
    The Moderator with No Imagination MPwuzhere's Avatar
    Join Date
    December 14, 2010
    Location
    Coeur d Alene, ID
    Posts
    4,153
    Current Local Time
    12:41 PM
    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...

  6. #6
    Member Steven Thedens's Avatar
    Join Date
    May 2, 2012
    Location
    Omaha, Ne
    Posts
    58
    Current Local Time
    02:41 PM
    MP, that's exactly what I'm referring to.

    Quote 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.
    Last edited by Steven Thedens; May 28th, 2014 at 02:44 PM.

  7. #7
    Forum Addict josephpeel's Avatar
    Join Date
    May 3, 2012
    Posts
    1,190
    Current Local Time
    09:41 PM
    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.
    Last edited by josephpeel; June 2nd, 2014 at 10:51 AM.
    elton williams likes this.

  8. #8
    Member troygates's Avatar
    Join Date
    December 17, 2010
    Location
    Southern California
    Posts
    143
    Current Local Time
    01:41 PM
    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
    Last edited by troygates; June 5th, 2014 at 08:49 PM.
    Ning Zhou likes this.

  9. #9
    New Member
    Join Date
    March 11, 2015
    Posts
    4
    Current Local Time
    08:41 PM
    Hi Troy,
    i would be interested in being able to change detail numbers on the fly by schedules. thanks


    Quote 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

Similar Threads

  1. Door number/tag, not showing in schedule
    By Segami in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: February 9th, 2014, 09:27 AM
  2. Hide grid number in detail view
    By pieter3 in forum Architecture and General Revit Questions
    Replies: 4
    Last Post: November 16th, 2012, 08:54 PM
  3. "Detail Number" in the View List
    By Joshua Kohl in forum Architecture and General Revit Questions
    Replies: 5
    Last Post: November 14th, 2011, 02:21 PM
  4. Schedule "Referencing Sheet" for my View List
    By kirklyncox in forum Architecture and General Revit Questions
    Replies: 3
    Last Post: May 23rd, 2011, 08:51 PM
  5. Sheet just became a Detail View, but still listed in Sheet List
    By LeanneZ in forum Architecture and General Revit Questions
    Replies: 4
    Last Post: February 25th, 2011, 10:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •