Gets all data fields.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
Examples
CopyC#
1Network oNetwork = ts.GetObject(objId, OpenMode.ForRead) as Network;
2ed.WriteMessage("Pipe Network: {0}\n", oNetwork.Name);
3
4
5ObjectId pipeId = oNetwork.GetPipeIds()[0];
6Pipe oPipe = ts.GetObject(pipeId, OpenMode.ForRead) as Pipe;
7PartDataField[] oDataFields = oPipe.PartData.GetAllDataFields();
8ed.WriteMessage("Additional info for pipe: {0}\n", oPipe.Name);
9foreach ( PartDataField oPartDataField in oDataFields ) {
10 ed.WriteMessage("Name: {0}, Description: {1}, DataType: {2}, Value: {3}\n",
11 oPartDataField.Name,
12 oPartDataField.Description,
13 oPartDataField.DataType,
14 oPartDataField.Value);
15}
See Also