Constructor of SizeFilterRecord

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

Syntax

C#
public SizeFilterRecord(
	PartFamily partFamily
)
Visual Basic
Public Sub New ( _
	partFamily As PartFamily _
)
Visual C++
public:
SizeFilterRecord(
	PartFamily^ partFamily
)

Parameters

partFamily
Type: Autodesk.Civil.DatabaseServices.Styles..::..PartFamily
The part family where part sizes will be added.

Remarks

Create the part size filter record through which you can set the corresponding properties to specify what part sizes you want to have under this part family.

Examples

CopyC#
 1// From the part list, looking at only those part families
 2// that are pipes, print all the individual parts, plus
 3// some information about each part.
 4ObjectIdCollection pipeFamilyCollection = oPartsList.GetPartFamilyIdsByDomain(DomainType.Pipe);
 5ed.WriteMessage("  Pipes\n  =====\n");
 6foreach ( ObjectId objIdPfa in pipeFamilyCollection ) {
 7
 8    PartFamily oPartFamily = ts.GetObject(objIdPfa, OpenMode.ForWrite) as PartFamily;
 9    if ( oPartFamily.Domain == DomainType.Pipe ) {
10        ed.WriteMessage("  Family: {0}\n", oPartFamily.Name);
11        SizeFilterRecord oSizeFilterRecord = oPartFamily.PartSizeFilter;
12        SizeFilterField SweptShape = oSizeFilterRecord.GetParamByContextAndIndex(PartContextType.SweptShape, 0);
13        SizeFilterField MinCurveRadius = oSizeFilterRecord.GetParamByContextAndIndex(PartContextType.MinCurveRadius, 0);
14        //SizeFilterField StructPipeWallThickness;
15        SizeFilterField FlowAnalysisManning = oSizeFilterRecord.GetParamByContextAndIndex(PartContextType.FlowAnalysisManning, 0);
16        SizeFilterField m_Material = oSizeFilterRecord.GetParamByContextAndIndex(PartContextType.Material, 0);
17        // SizeFilterField PipeInnerDiameter = oSizeFilterRecord.GetParamByContextAndIndex(PartContextType.PipeInnerDiameter, 0);
18
19        ed.WriteMessage("  {0}: {1}, {2}: {3}, {4}: {5} {6}: {7}\n",
20            SweptShape.Description, SweptShape.Value,
21            MinCurveRadius.Description, MinCurveRadius.Value,
22            FlowAnalysisManning.Description, FlowAnalysisManning.Value,
23            m_Material.Description, m_Material.Value
24
25            );
26    }
27}

See Also