public static List <SurfaceWatershedTable> GetSurfaceWatershedTables(Autodesk.AutoCAD.DynamoNodes.Document document) { List <SurfaceWatershedTable> retList = new List <SurfaceWatershedTable>(); foreach (DBObject dbOb in GetStylesAsDBObjects(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.TableStyles.SurfaceWatershedTableStyles)) { SurfaceWatershedTable style = new SurfaceWatershedTable(dbOb, false); retList.Add(style); } return(retList); }
public static SurfaceWatershedTable ByName(Autodesk.AutoCAD.DynamoNodes.Document document, string styleName) { SurfaceWatershedTable retStyle = new SurfaceWatershedTable(CivilStyle.DBObjectByName(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.TableStyles.SurfaceWatershedTableStyles, styleName), false); return(retStyle); }
public static SurfaceWatershedTable ByIndex(Autodesk.AutoCAD.DynamoNodes.Document document, int index) { SurfaceWatershedTable retStyle = new SurfaceWatershedTable(CivilStyle.DBObjectByIndex(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.TableStyles.SurfaceWatershedTableStyles, index), false); return(retStyle); }