Here are the guts of that code, it assumes that you have:
alignment style
alignment Label Style
Start point, ip point, end point
Radius
(Watch the word wrap)
Set align = cAligns.Add("SampleAlignment", "0", alignStyle,
alignLabelStyleSet)
Set cEnts = align.Entities
Set aTan1 = cEnts.AddFixedLine1(spt, ip1)
Set aTan2 = cEnts.AddFixedLine1(ip1, ept)
Set aEnt = cEnts.AddFreeCurve1(aTan1.Id, aTan2.Id,
aeccFreeCurveConstraintRadius, radius, False,aeccFloatingCurveIsCompound)
Cheers,
Peter Funk
API Product Manager
Autodesk, Inc.