PartUtils.GetSplittingCurves
Description:
Identifies the curves that were used to create the part and the plane in which they reside.
Identifies the curves that were used to create the part and the plane in which they reside.
Overloads (2):
GetSplittingCurves(Document,ElementId,Plane)
public void GetCurveDividersAndPlane(Part part)
{
StringBuilder message = new StringBuilder();
Plane skP = Plane.CreateByThreePoints(new XYZ(0, 0, 1), new XYZ(1, 0, 0), new XYZ(0, 1, 0));
// Get curve dividers.
IList<Curve> divisionCurves = PartUtils.GetSplittingCurves(part.Document, part.Id, out skP);
if(divisionCurves.Count == 0)
message.AppendLine("Part is not divided.");
else
{
message.AppendLine("The dividers are : ");
if(divisionCurves.Count > 0)
message.AppendLine(divisionCurves.Count.ToString() + " division curves");
}
TaskDialog.Show("Revit", message.ToString());
}
-
A non-optional argument was null