Dynamo for Sheet Renumbering

Hi all,
Has anyone developed a script that will delete a character from the Sheet Number parameters?
The situation I am currently dealing with is we have multiple sheets in our model that contain a prefix of " * " for example “*E100,*E200”, etc…This prefix noted that that particular sheet should not be included in our print set. Now we are at the point where a majority of those sheets need to be included in our print set, but the prefix is showing on our Title Blocks and in our drawing lists. Is anyone familiar with a script that could remove a specified character from a list created in dynamo? I would hate to right click and rename each one of the sheets to delete a single character!!

Thanks,
MH

this should point you in the right direction.

https://forum.dynamobim.com/t/how-to-remove-aq-specific-character-from-a-string/8016

Some nodes of interest for you:
Categories,
All Elements Of Category,
Element.GetParameterValueByName,
Two String nodes,
String.Replace,
Element.SetParavmeterByName

That should do the trick.

1 Like