Adds breaklines from a .flt file (ASCII file format).
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.0
Syntax
C#
public SurfaceOperationAddBreakline[] ImportBreaklinesFromFile( string filename )
Visual Basic
Public Function ImportBreaklinesFromFile ( _ filename As String _ ) As SurfaceOperationAddBreakline()
Visual C++
public: array<SurfaceOperationAddBreakline^>^ ImportBreaklinesFromFile( String^ filename )
Parameters
- filename
- Type: System.String
The path and name of the file used to create the breaklines.
Remarks
All breaklines in the FLT file are copied into the surface as Add SurfaceOperationAddBreakline operations. After the import, the FLT file is no longer referenced. If you want to maintain the link, use AddBreaklinesFromFile().
Examples

1/// <summary> 2/// Illustrates importing breaklines 3/// </summary> 4[CommandMethod("ImportBreaklines")] 5public void ImportBreaklines() 6{ 7 using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction()) 8 { 9 // Prompt the user to select a TIN surface, and import breaklines from a file 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 // commit the transaction 16 ts.Commit(); 17 } 18}
Exceptions
Exception | Condition |
---|---|
System.ArgumentException | Thrown when the breakline file is invalid. |