Pipe network part size filter.
Namespace: Autodesk.Civil.DatabaseServices.StylesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
Remarks
To edit the value of a PartDataField in a PartSize.SizeDataRecord, you must open the PartSize for write, get a reference to
the object's SizeDataRecord property (type PartDataRecord), modify the PartDatafield value, and then re-set
the PartSize object's PartData. See the example code.
Examples

1[CommandMethod("testSizeDataRecord")] 2public void testSizeDataRecord () { 3 Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction(); 4 5 PartsListCollection col = CivilApplication.ActiveDocument.Styles.PartsListSet; 6 PartsList partList1 = ts.GetObject(col["Standard"], OpenMode.ForWrite) as PartsList; 7 PartFamily partFamily = ts.GetObject(partList1["Concrete Pipe"], OpenMode.ForWrite) as PartFamily; 8 PartSize partSize = ts.GetObject(partFamily["12 inch Concrete Pipe"], OpenMode.ForWrite) as PartSize; 9 10 // Save a reference to the SizeDataRecord to restore later. 11 PartDataRecord record = partSize.SizeDataRecord; 12 PartDataField field = record.GetDataFieldBy(PartContextType.MinCurveRadius); 13 field.Value = 1.0; 14 double newVal = ( double )field.Value; 15 16 // Re-set the SizeDataRecord property. The data will not be saved without this step. 17 partSize.SizeDataRecord = record; 18 19 ts.Commit(); 20}
Inheritance Hierarchy
System..::..Object
System..::..MarshalByRefObject
DisposableWrapper
RXObject
Drawable
DBObject
Autodesk.Civil.DatabaseServices..::..DBObject
Autodesk.Civil.DatabaseServices.Styles..::..PartSize
System..::..MarshalByRefObject
DisposableWrapper
RXObject
Drawable
DBObject
Autodesk.Civil.DatabaseServices..::..DBObject
Autodesk.Civil.DatabaseServices.Styles..::..PartSize