Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ShowFooter Property in Schedule

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
nia98bim
249 Views, 3 Replies

ShowFooter Property in Schedule

hey all hope be well,

I want to have footer for my field in schedule and based on revit api docs that here is the link " show footer sample "

I changed my code but nothing is not happed.

    // Set sorting by type,
    if (typeSorting != null)
    {
        schedule.Definition.AddSortGroupField(typeSorting);
        typeSorting.ShowBlankLine = true;
        typeSorting.ShowFooter = true;
    }

 

really appreciated if correct me

3 REPLIES 3
Message 2 of 4
nia98bim
in reply to: nia98bim

Message 3 of 4
Mohamed_Arshad
in reply to: nia98bim

HI @nia98bim 

 

    You did a minor mistake, need to show footer before passing to the AddSortGroupField Method, kindly check the below code snippet.

 

Code Snippet

 

ScheduleFieldId fieldId = schedule.Definition.GetFieldId(0);

Transaction showFooter = new Transaction(doc, "Show Footer");
showFooter.Start();

ScheduleSortGroupField typeSorting = new ScheduleSortGroupField(fieldId);
typeSorting.ShowFooter= true;
typeSorting.ShowBlankLine= true;

schedule.Definition.AddSortGroupField(typeSorting);

showFooter.Commit();

 

 

Hope this will Helps 🙂

Thanks & Regards,
Mohamed Arshad K
Message 4 of 4
nia98bim
in reply to: Mohamed_Arshad

@Mohamed_Arshad thank you so much 😉

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report