Parameter to remove spaces within view names

Parameter to remove spaces within view names

ipiotis_dinos
Contributor Contributor
1,222 Views
9 Replies
Message 1 of 10

Parameter to remove spaces within view names

ipiotis_dinos
Contributor
Contributor

Hi all,

 

We have been asked to provide a series of drawings that will contain a description as a suffix. We decided to use the view name from Revit which pretty much covers the subject. The view names are set up properly, for example:

Flat Type 01 - Domestic Water Services

We would like to find a way to set up a parameter so that we can add it to a schedule or third-party apps for document extract which will remove the spaces and have it as camelcase. So it becomes :

FlatType01-DomesticWaterServices

 

Has anyone done a similar exercise? 

0 Likes
1,223 Views
9 Replies
Replies (9)
Message 2 of 10

iainsavage
Mentor
Mentor

I would use DiRoots sheetlink which is a free plugin available from the autodesk app store or from DiRoots website.

You can export the view schedule to a spreadsheet, edit the names using find & replace etc, then re-import them.

Message 3 of 10

ipiotis_dinos
Contributor
Contributor

Thank you for the response. I am aware of DiRoots, but I am looking into a better automation process instead of having to push and pull data to external software. Plus, what I am after is the final extracted information (dwg and/or pdf) to have the sheet number and the file name as a suffix... So this need to somehow being pulled from the view name, converted internally and added as a suffix... 

0 Likes
Message 4 of 10

iainsavage
Mentor
Mentor

Apologies, I thought you were just wanting to remove the spaces. My mistake.

Sounds like you maybe need to use Dynamo but I wouldn’t know how to construct a script for what you want so maybe someone else can assist.

0 Likes
Message 5 of 10

djforemandesign
Advocate
Advocate

If you want to leave your Revit views how they are and only remove the spaces on PDF/DWG export then you can use Dynamo to remove the spaces and export PDF/DWG. 

 

If you want to use Revits built-in PDF/DWG exporter instead of creating your own. You could use Dynamo to remove the spaces and rename all of your views. If that would be acceptable.

0 Likes
Message 6 of 10

ToanDN
Consultant
Consultant

Why don't you name your Views without Spaces, and name the views' Title on Sheet with Spaces?

0 Likes
Message 7 of 10

ipiotis_dinos
Contributor
Contributor

This is irrelevant to the sheet title. We need the file name of the extracted pdf and dwg to contain the sheet number and then as a suffix a description. We agreed that the view name reflects this better, however we want camelcase (no spaces) in the description. So what I am after is a way to add this to my extract, either by native Autodesk or by third party tools

0 Likes
Message 8 of 10

renencon
Enthusiast
Enthusiast

@ipiotis_dinos You can achieve this using a combination of Revit 2023 and later built-in feature and DocumentViews that recently have been added to ThreeDeltaTools - The View Collection

See the procedure below.

 

With Revit 2023 or later you can export to pdf and control the exported file name with predefined parameter-driven settings as shown below.

renencon_0-1688226236181.png

 

With DocumentViews, you can automatically manage view names by applying similar predefined naming standards that are driven by parameters and their abbreviated values. With this tool, you built a list of parameter camelcase values and their corresponding "abbreviation" to be the expanded one with spaces.

 

e.g

Parameter A would have a value in the predefined list of values you set with DocumentViews as 

 "FlatType01" with abbreviation as "Flat Type 01"

 

for Parameter B

"DomesticWaterServices" with abbreviation "Domestic Water Services"

 

The DocumentViews will automatically manage the view name and set it to

Flat Type 01 - Domestic Water Services

 

and you can use Parameter A & B above (their values will be the camelcase ones) to setup an export to pdf rule.

 

I hope the above makes sense.

 

Of course DocumentViews have not been developed with the above in mind.

 

See below a sort video that demonstrates this functionality.

 

 

 

 

 

0 Likes
Message 9 of 10

L.Maas
Mentor
Mentor

Dynamo can be an easy solution. Concept:

 

LMaas_1-1688628909488.png

 

In this case I selected all elevations, read the View Name, removed spaces and stored in an existing  project parameter

LMaas_0-1688628807487.png

 

You can modify it to your project requirements.

 

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 10 of 10

s.borello
Advisor
Advisor

Just name your views without spaces and be done with it.

0 Likes