Hi, I have some issues using the FamilyInstance.ByPoint node in a Python Script.
I have the following error message:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “<string>”, line 24, in <module>
AttributeError: ‘type’ object has no attribute ‘ByPoint’
Any ideas?
This is my Python script:
<hr />
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variable.
dataEnteringNode = IN
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
============================================================== Imports ================================================
clr.AddReference(‘DSCoreNodes’)
import DSCore
from DSCore import *
clr.AddReference(‘RevitAPI’)
import Autodesk
from Autodesk.Revit.DB import *
========================================================== INPUTS ===================================================
Point = IN[0]
familySymbol = IN[1]
view = IN[2]
F = []
for i in range(0, len(Point)):
F.append(FamilyInstance.ByPoint(familySymbol, Point[i]))
path = ‘C:\Users\Erecting Process’ + str(i) + '.png’
view.ExportAsImage(path)
OUT = F
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<hr />
Thanks!