PartsListGetPartFamilyIdsByDomain Method

Gets the object id collection of part families of specified domain under this parts list.

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.9.0.960
Syntax
public ObjectIdCollection GetPartFamilyIdsByDomain(
	DomainType domain
)

Parameters

domain  DomainType
Specifies the part domain (Pipe or Structure)

Return Value

ObjectIdCollection
Remarks
GetPartFamilyIdsByDomain(DomainType.Structure) returns all the ObjectIds of Structure Part Families, with the first ObjectId always corresponding to the Null Structure Family.
Example
C#
 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