Adds breaklines from a .flt file (ASCII file format).
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
Parameters
- filename
- Type: System..::..String
The path and name of the file used to create the breaklines.
Remarks
Examples
CopyC#
1
2
3
4[CommandMethod("ImportBreaklines")]
5public void ImportBreaklines()
6{
7 using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction())
8 {
9
10 ObjectId surfaceId = promptForEntity("Select a TIN surface to add a breakline to", typeof(TinSurface));
11 TinSurface oSurface = surfaceId.GetObject(OpenMode.ForWrite) as TinSurface;
12 string breaklines = "eg1.flt";
13 oSurface.BreaklinesDefinition.ImportBreaklinesFromFile(breaklines);
14
15
16 ts.Commit();
17 }
18}
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when the breakline file is invalid.
|
See Also