Dynamo script with other nodes from downloaded packages does not work in latest Revit

Autodesk Support

Jan 24, 2024


Products and versions covered


Issue:

Dynamo script with other nodes from downloaded packages does not work in the latest version of Revit due to a traceback warning:
“Traceback (most recent call last):
File “<string>”, line xxx, in NewForm_background
Exception: Instance of a level-based family cannot be created without a valid reference level.”
1.png

Causes:

Some nodes based on Python need to be improved.

NewFamilyInstance Method (XYZ, FamilySymbol, Element, Level, StructuralType) (revitapidocs.com)
2.png
This means that in addition, it is required to indicate the level at which the instance is to be inserted/created.
 

Solution:

Contact the author/publisher of the respective package directly or through the Dynamo forum.

For those that can modify the package, try using the inbuilt Migration tool to convert Python Script from IronPython2 to CPython3 for Dynamo for Revit.
Note: Dynamo itself includes a Migration tool for upgrading Python scripts from earlier ones to the new version.

Products:

Revit Product Family; Dynamo;


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support