Moving the intersection points of straight line segments

Good day!

Is it possible to move the alignment intersection points via Dynamo or C# .NET?
How can this be done?

Thanks, expert with forum Autodesk Community

Solved: Re: How Moving the intersection points of straight line segments - Autodesk Community

      _AccDb.Alignment alignment = null; // TODO
      foreach (var ent in alignment.Entities)
      {
        if (ent.EntityType == _AccDb.AlignmentEntityType.Line)
        {
          var lineEnt = (_AccDb.AlignmentLine)ent;
          //lineEnt.PassThroughPoint1 = myPt;
          //lineEnt.PassThroughPoint2 = myPt;
        }
        else if (ent.EntityType == _AccDb.AlignmentEntityType.Arc)
        {
          var arcEnt = (_AccDb.AlignmentArc)ent;
          //arcEnt.PassThroughPoint1;
          //arcEnt.PassThroughPoint2;
          //arcEnt.PassThroughPoint3;

        }
        else if // check other types

      }