Pipe network part size filter.

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public sealed class PartSize : DBObject
Visual Basic
Public NotInheritable Class PartSize _
	Inherits DBObject
Visual C++
public ref class PartSize sealed : public DBObject

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

CopyC#
 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

See Also