Example #1
0
        /// <summary>
        /// Gets all the LandFeaturelines from a CivilDocument.
        /// The Style will be empty by default.
        /// Not all the PolyCurves will be branching and it is to be expected to have null values.
        /// </summary>
        /// <param name="civilDocument">The CivilDocument</param>
        /// <returns></returns>
        public static IList <LandFeatureline> GetDocumentLandFeaturelines(CivilDocument civilDocument)
        {
            Utils.Log(string.Format("LandFeatureline.GetDocumentLandFeaturelines started...", ""));

            //IList<LandFeatureline> output = new List<LandFeatureline>();

            //foreach (AeccSite site in civilDocument._document.Sites)
            //{
            //    foreach (AeccLandFeatureLine fl in site.FeatureLines)
            //    {
            //        if (fl != null)
            //        {
            //            output.Add(new LandFeatureline(fl));
            //        }
            //    }
            //}

            IList <LandFeatureline> output = civilDocument.GetLandFeaturelines();

            Utils.Log(string.Format("LandFeatureline.GetDocumentLandFeaturelines completed.", ""));

            return(output);
        }