I am trying to flip several families and I was wondering if there was a node or method in Python to access the flip work plane action/button
I’ve tried several flip face orientation nodes but they had no effect and I am aware of the ability to mirror or rotate but ideally I would like to access the flip work plane command if possible. I know there has been an example in the API so I do believe it is possible. Anyone have a quick solution? Thanks!
I will take a look again but yes as mentioned in my post, I’ve tried those flip face nodes but unfortunately had no success. I have a feeling python is the way to go. The API example I was referring to calls for:
I think we are getting closer. I did a quick test literally adding onto the python code in the FlipFacing node by adding IN[1] to receive a Boolean toggle value and switching item.FlipFacing() to item.IsWorkPlaneFlipped(b) where b = IN[1]. Output is empty and family instance(s) remains unchanged.
Sorry, it was my fault, I made a mistake with how I told you to set the property (rookie mistake). Properties need to be set with an = so elem.IsWorkPlaneFlipped = b and not elem.IsWorkPlaneFlipped(b).
It seems to work fine here, see below (script attached also)…
Is there any way we can apply the same principle to do it for multiple elements? I tried replacing the node with the one for multiple elements but it wouldn’t work.
I’ve tried to run your script with multiple but it will only slip one still? I also have an error I don’t know how to fix in the python script. Are you able to provide some help or spot the one thing I am missing?
The Boolean list needs to have the same number of bools as you do elements. It’s a 1:1 operation as the elements/bools are zipped.
You are trying to flip a tag element and this doesn’t support flipping (the yellow balloon warning message) since they are not hosted to planes as they are 2d elements. I don’t think tags actually support flipping at all, only switching between orientation (horizontal/vertical) or changing their Family Type.
Yeah, you have 2 boolean values in the code block, but the number of these needs to match the number of elements you want to flip. So, in this instance, you need 7 as you have 7 Elements in the Select Model Elements node.
if you only need True or only need false, use the List.Cycle node. See examples below…