Parameter is Read Only

I’ve come across this a couple of times. I’m trying to rename some Grid Type Names and get the “parameter is read only” error. I’ve seen similar threads about this regarding sheets and how there may be duplicates that are causing the error. I’m my case I’m simply trying to rename the type names to add a prefix. Can someone explain why I’m getting this error?

Hi @Jason_Seck
Based on my attempts, I understand is that this approach (to use Dynamo for creating Types) does not work with System Families like View Type Name, for instance…
Hope this helps…

Well, that’s unfortunate. Thanks for the reply.

use this code:

import clr
from Autodesk.DesignScript.Geometry import *
import clr
import Autodesk
from Autodesk.Revit.DB import *
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
grids = UnwrapElement(IN[0])
names = IN[1]

for i,j in zip(grids,names):
	i.Name = j
OUT = 0

Thanks a lot for that

Can you suggest how this can be achieved? Is there a DS code for this too?

As I understand the two requirements are very similar… wondering if you can solve one; can you help solve the other too? Thanks!

Thank you! Much appreciated.

Unfortunately I don’t have time to check this. It can be done (99% sure).