Merge element parts

Hi everyone, couldn’t post to the blog…
First sorry for my English…
Second I must say that I became addicted to Revit dynamo
And I find it fascinating fun, and a major progress engine to the AEC industry!!
Ok,
Problem I’ve encountered, trying to merge parts of a wall
Attached the python script…
Getting the error: CreateMergedParts……objects is read only
Does that mean I have no excess to the element?
Is there any other method?
Thanks to all……
Dotan



Try with PartUtils.CreateMergedParts(…

http://www.revitapidocs.com/2017/3d026046-2541-d9c6-fae3-fc54bc4656da.htm