Revit Analytical Model _ Releases / Memeber Forces

I’d like to control these properties of the analytical model in Revit but it doesn’t work well.
Does anyone have ideas to check release properties?

There are actuallly two parameters with the same name for each release. You need to use the BuiltInParameter name to set the correct one. (e.g. BuiltInParameter.STRUCTURAL_START_RELEASE_FX)

The python script:

# Code by Einar Raknes, 2018

import clr

# Import List ( ICollection(ElementId) = List[ElementId]() )
clr.AddReference('System')
from System.Collections.Generic import List

# Import Revit API
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *

clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *

# Import ToDSType(bool) extension method
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)

# Import DocumentManager and TransactionManager
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uidoc = DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

# Input
element = UnwrapElement(IN[0])
value = IN[1]

 #Make changes to Revit DB in a Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
element.get_Parameter(BuiltInParameter.STRUCTURAL_START_RELEASE_FX).Set(value)
TransactionManager.Instance.TransactionTaskDone()

OUT = 0
1 Like