Adds breaklines from a .flt file (ASCII file format).
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public SurfaceOperationAddBreakline[] ImportBreaklinesFromFile( string filename )
VB
Public Function ImportBreaklinesFromFile ( filename As String ) As SurfaceOperationAddBreakline()
C++
public: array<SurfaceOperationAddBreakline^>^ ImportBreaklinesFromFile( String^ filename )
Parameters
- filename String
- The path and name of the file used to create the breaklines.
Return Value
SurfaceOperationAddBreaklineExceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when the breakline file is invalid. |
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().Example
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}