Unable to retrieve "View Name" parameter value from ViewSchedule

Unable to retrieve "View Name" parameter value from ViewSchedule

evidalpe
Contributor Contributor
556 Views
1 Reply
Message 1 of 2

Unable to retrieve "View Name" parameter value from ViewSchedule

evidalpe
Contributor
Contributor

I'm trying to extract the "View Name" parameter value from a Schedule (see below):

 

evidalpe_0-1632222537353.png

 

 

My code is the following:

 

 

ViewSchedule schedule = Doc.GetElement(scheduleId) as ViewSchedule;
Parameter p = schedule.get_Parameter(BuiltInParameter.VIEW_NAME);
string viewName = p.AsString();

 

 

But I'm getting always the value "<Revision Schedule> N", being N a number that changes depending on the evaluated Schedule. The goal is getting "Sheet List" in this case. Any hint?

0 Likes
Accepted solutions (1)
557 Views
1 Reply
Reply (1)
Message 2 of 2

evidalpe
Contributor
Contributor
Accepted solution

Already found the solution, I was not filtering by the IsTitleblockRevisionSchedule parameter.

 

0 Likes