Dear Friends,
How we can create dynamo script to automatically set name of all sheets same as the Floor Plan (which is located inside specific sheet) view name
As an example see photo bellow:
As you can see there is a Floor Plan view in the CA-A4-HP-02 numbered Sheet.
I want Dynamo change name Ventilation Ground Floor to Zirzəmi - Ductwork
@nainoorpatel gave you the basic process you need to follow. You just need to get all sheets and their views. Then you can get the view names with GetParameterValueByName and give the sheets the same name using SetParameterByName.
Or you can manually rename them by
1)In the Project Browser, under Sheets (all), right-click the sheet name and click Rename, or select the sheet and press F2.
2)In the Sheet Name dialog, enter a new number and name for the sheet, and click OK.
If I follow you correctly, you want to rename any sheet which has a floor plan view with the name of that floor plan? The suggestions so far are useful, especially if there are only a few sheets in your project, do it manually as it will be quicker.
Nevertheless, if you have many to rename and manual isn’t more efficient, then here are some steps you could take:
Collect all sheets using Dynamo (you could create a Sheet Schedule using Revit and filter sheets that only contain plan views, then use BimorphNodes SheetsFromSchedule node to keep things simple)
Get all views from the sheet using the OOTB Sheet.Views node
Extract the ViewType and filter all the views that are plans
Get the resultant view names
Update the Sheet name parameters with these names (there’s a node in BimorphNodes called RenumberRenameSheets which is purpose-built for this task and trumps the OOTB SetParameterByName node where renumbering conflicts are concerned)
This seems like a task that should be run before you’ve added other views to your sheets but nevertheless you could still make it work with a little modification. If you have multiple views on a sheet you’ll have to filter them.
Try something like this: