get line-start and line-end position

Hallo,

how can I get the start and end position of a line in diagram-coordinates (Tdot's). The line is not connect to a block or other object's. The value of the Point-Array or the souce- or targetLinkPoint.Diagrampoint is not the correct point in diagram-coordinates.
 
I want automatic create a block-object with linkpoint's on line start and line end and link it with the line. The position of the block must be  correct on line-start/ line-end.
 
thank's
ulrich Herrmann

Use Handles property. Handles[0].OrPoint and Handles[Handles.Count - 1].OrPoint are the start and end points of a line.