PointFileFormatCollectionGetPointFileFormats Method |
Gets the collection of point file formats supported by the specified database.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static PointFileFormatCollection GetPointFileFormats(
Database pDatabase
)
Public Shared Function GetPointFileFormats (
pDatabase As Database
) As PointFileFormatCollection
public:
static PointFileFormatCollection^ GetPointFileFormats(
Database^ pDatabase
)
Parameters
- pDatabase Database
-
Return Value
PointFileFormatCollection
Example1
2string pointFilePath = @"C:\Program Files\Autodesk\AutoCAD Civil 3D 2013\Help\Civil Tutorials\";
3string pointFileName = pointFilePath + "Existing Ground Points - PENZD.txt";
4string pointFileFormatName = "PENZD (space delimited)";
5PointFileFormat pointFileFormat = PointFileFormatCollection.GetPointFileFormats(_acaddoc.Database)[pointFileFormatName];
6
7uint result = CogoPointCollection.ImportPoints(pointFileName, pointFileFormat);
8write("Successfully imported " + result + " points\n");
1
2Dim pointFilePath As String = "C:\Program Files\Autodesk\AutoCAD Civil 3D 2013\Help\Civil Tutorials\"
3Dim pointFileName As String = pointFilePath & "Existing Ground Points - PENZD.txt"
4Dim pointFileFormatName As String = "PENZD (space delimited)"
5Dim pointFileFormat As PointFileFormat = PointFileFormatCollection.GetPointFileFormats(_acaddoc.Database)(pointFileFormatName)
6
7Dim result As UInteger = CogoPointCollection.ImportPoints(pointFileName, pointFileFormat)
8write("Successfully imported " & result & " points" & vbLf)
No code example is currently available or this language may not be supported.
See Also