Hi Damiano,
I was exactly looking for the same thing as you and I tried the same change as you did. I realised then that the first input of the API function for Point boundary need to be a “Reference” (and cannot be an “Element” as it could be for line boundary function). So I tried to change the first input into an element and it seems to work!
(I used it for Analytical Isolated Foundation though, not for Analytical Columns but I guess it should work as well)
However I still have no idea what a “Reference” is and if someone could help me explaining what it is exactly it would be great
Thanks,
Arthur
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import ToDSType(bool) extension method
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
# Import geometry conversion extension methods
clr.ImportExtensions(Revit.GeometryConversion)
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from System.Collections.Generic import *
# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
from System.Collections.Generic import *
doc = DocumentManager.Instance.CurrentDBDocument
elt=UnwrapElement(IN[0])
R=float(IN[1])
bc = []
# Start Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
for e in elt:
ref = Autodesk.Revit.DB.Reference(e)
s=Autodesk.Revit.DB.Structure.TranslationRotationValue.Fixed
a=doc.Create.NewPointBoundaryConditions(ref,s,R,s,R,s,R,s,R,s,R,s,R)
bc.append(a)
# End Transaction
TransactionManager.Instance.TransactionTaskDone()
OUT = bc