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?
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 clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * import clr clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import * clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager doc = DocumentManager.Instance.CurrentDBDocument grids = UnwrapElement(IN) names = IN TransactionManager.Instance.EnsureInTransaction(doc) for i,j in zip(grids,names): i.Name = j TransactionManager.Instance.TransactionTaskDone() 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).