/// <summary>
        /// Creates a new line in PowerSHAPE between the start and end points.
        /// </summary>
        /// <param name="powerSHAPE">The base instance to interact with PowerShape.</param>
        /// <param name="startPoint">The start point of the new line.</param>
        /// <param name="endPoint">The end point of the new line.</param>
        /// <remarks></remarks>
        internal PSLine(PSAutomation powerSHAPE, Point startPoint, Point endPoint) : base(powerSHAPE)
        {
            //Clear the list of CreatedItems
            _powerSHAPE.ActiveModel.ClearCreatedItems();

            //Create the line
            _powerSHAPE.DoCommand("CREATE LINE SINGLE");
            var _with1 = startPoint;

            _powerSHAPE.DoCommand("ABS " + _with1.X.ToString() + " " + _with1.Y.ToString() + " " + _with1.Z.ToString());
            var _with2 = endPoint;

            _powerSHAPE.DoCommand("ABS " + _with2.X.ToString() + " " + _with2.Y.ToString() + " " + _with2.Z.ToString());
            _powerSHAPE.DoCommand("QUIT QUIT");

            //Now get its Id
            PSLine line = (PSLine)_powerSHAPE.ActiveModel.CreatedItems[0];

            _id = line.Id;
        }