Python Node (Based CPython and IronPython)

Hi all!

What is defference beetween CPython and IronPython on Python Node

CPython has error: 'Wall object has no attribute LookupParameter
=> IronPython ok

Hi @manhgt214,

The shift from IronPython to Python.NET was made awhile ago. This thread might answer some questions.

This blog post may also help.

1 Like

Hello @manhgt214
out of curiosity, can you share a sample RVT file for test ?, the bug does not seem to occur on all walls type

1 Like

This is example
Thank you!

Project1.rvt (4.8 MB)

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument

Walls = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType().ToElements()

Comments = []

for i in Walls:
	Comments.append(i.LookupParameter('Comments').AsValueString())

OUT = Comments

@manhgt214
strange, I did not manage to get this error :thinking:

1 Like