I am trying to add an appurtenance to at a point and am getting a type error when using the Civil3d API AddAppurtenance method in the PipePressureNetwork class. I am inputting a point3d and pressure part size but it says there is no method to match the given arguments.
# Load the Python Standard and DesignScript Libraries
import sys
import clr
# Add Assemblies for AutoCAD and Civil3D
clr.AddReference('AcMgd')
clr.AddReference('AcCoreMgd')
clr.AddReference('AcDbMgd')
clr.AddReference('AecBaseMgd')
clr.AddReference('AecPropDataMgd')
clr.AddReference('AeccDbMgd')
clr.AddReference('AeccPressurePipesMgd')
# Import references from AutoCAD
from Autodesk.AutoCAD.Runtime import *
from Autodesk.AutoCAD.ApplicationServices import *
from Autodesk.AutoCAD.EditorInput import *
from Autodesk.AutoCAD.DatabaseServices import *
from Autodesk.AutoCAD.Geometry import *
# Import references from Civil3D
from Autodesk.Civil.ApplicationServices import *
from Autodesk.Civil.DatabaseServices import *
from Autodesk.Civil.DatabaseServices.Styles import *
# The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
obj = IN[0]
point = IN[1]
xyz = [point.X, point.Y, point.X]
pt = Point3d(xyz)
app = PressurePipeNetwork.AddAppurtenance(pt, obj)
# Assign your output to the OUT variable.
OUT = obj