Library for Civil Python

Hi!
What library I should import to use Geometry operation (StartPoint, PointsAtSegmentLengthFromPoint etc.) in my Civil Python script?
I tested plenty of different scripts including default Python template and Dynamo Examples, with no result.

nq1

I suppose something like this might work

nq2
my current Python feedback)

Your input seems to be empty. NoneType…

I believe all my input is fine)
nq3

What you connect to python node, I meant.

In fact, I really got mixed up in my connection nods when I took a screenshot. But it doesn’t matter in this case.
nq4

I’m trying to port my code from Dynamo Revit to Dynamo Civil, and below my civil Python test script. And I realized that a StartPoint function work well

Blockquote
import sys
import clr
import math
clr.AddReference(‘AcMgd’)
clr.AddReference(‘AcCoreMgd’)
clr.AddReference(‘AcDbMgd’)
clr.AddReference(‘AecBaseMgd’)
clr.AddReference(‘AecPropDataMgd’)
clr.AddReference(‘AeccDbMgd’)
clr.AddReference(‘ProtoGeometry’)

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 *

from Autodesk.Civil.ApplicationServices import *
from Autodesk.Civil.DatabaseServices import *

dataEnteringNode = IN
Alignment = IN[0]
R_Rail_CL = IN[1]
L_Rail_CL = IN[2]
adoc = Application.DocumentManager.MdiActiveDocument
editor = adoc.Editor
i = 25
l = 0
alpha = 0.02
Distance_Check = 0
CS = 0
RP =
LP =
Split_List_R =
Split_List_L =
RCP_List =
LCP_List =
Distance_List =
Split_List_R.append(R_Rail_CL.StartPoint)
Split_List_L.append(L_Rail_CL.StartPoint)

with adoc.LockDocument():
with adoc.Database as db:

    with db.TransactionManager.StartTransaction() as t:
        RP = Curve.PointsAtSegmentLengthFromPoint(R_Rail_CL, Split_List_R[-1], 25)
        t.Commit()
        pass

OUT = Split_List_L.append

Blockquote