import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference("RevitAPI")
import Autodesk
clr.AddReference("RevitNodes")
import Revit
clr.AddReference("System")
from System.Collections.Generic import List
#The inputs to this node will be stored as a list in the IN variables.
Topo = UnwrapElement(IN[0])
Points = UnwrapElement(IN[1])
output = []
doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)
try:
Topo.AddPoints(pyPoints)
except Exception,e:
output.append(str(e))
TransactionManager.Instance.TransactionTaskDone()
#Assign your output to the OUT variable.
OUT = output
Thanks for your reply.
The image in the post you linked to won’t show in my browser, hence I was not able to understand what was changing.
I think I have to change the list of python points to another list format for c#?, but unsure what the code line would look like. Any help would be appreciated
As mentioned in the post lower down, recreating the topo with the new points included is your only likely way to go from Dynamo… This would need to recreate any edits such as regions.