How to modify "Shape Handles" with Dynamo

parts

#1

I want to create a wall detail like the one in the image.

I have created a wall and I have divided it into parts, and now I want to edit the shape handles to make each piece sequentially smaller.

¿Any idea how to access this parameter with Dynamo?

Thanks!


#2

A screenshot of what you tried would be useful. Did you also plug an Element.Parameters node on your parts elements to see what’s coming out of it?


#3

Of course @Yna_Db!

I had not attached the code because I got stuck very soon :frowning:

I tried to change the size by changing the height parameter, but it is read-only:

Thanks.


#4

Unfortunately I dont have time to test it myself, but see what’s here :


http://www.revitapidocs.com/2017.1/ca94b36d-4f9a-091d-b31e-a32a16ec89ac.htm
http://www.revitapidocs.com/2017.1/3d026046-2541-d9c6-fae3-fc54bc4656da.htm


#5

Thanks a lot!

I have already been able to edit the size of the model, when I have the complete code I will post it.

TransactionManager.Instance.EnsureInTransaction(doc)

for face in faceArray:
	if(part.CanOffsetFace(face)):
		part.SetFaceOffset(face,offsetCtr)
	offsetCtr = offsetCtr + 0.1
	
TransactionManager.Instance.TransactionTaskDone()