FamilyDocument.SetFormula - A sub-transaction can only be active inside an open Transaction

Trying to set formula for a parameter in every family in a folder that has the parameter and already has a formula.

Notice how only the first family’s formula is set and the third family couldn’t be closed.
The third entry reads: Close is not allowed when there is any open sub-transaction or transaction group.

Thought I might have to actually use the transaction node, but when I tried added them no parameters are updated. All the files are closing properly however.

Looks like the orchid version works. Was hoping to avoid using that package. Maybe the OTB set formula node need to get looked at.

@jacob.small
Does element binding exists inside the saved Family or just the script itself by Family?
Regardless of Pakages (fan or not)

Not sure; and packages can handle binding as they please.

1 Like