Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey Everyone, Im trying to put points along a location curve @ a set distance. I need the points to place a family. Can anyone help me with this??
LocationCurve eleCurve = elem.Location as LocationCurve;
//start and end points of pipe
XYZ startPoint = eleCurve.Curve.GetEndPoint(0);
XYZ endPoint = eleCurve.Curve.GetEndPoint(1);
//get length of curve
double pipeLength = startPoint.DistanceTo(endPoint);
//new points list
List<XYZ> pts = new List<XYZ>(1);
//place points along curve (need help here)
//sets family @ points
FamilyInstance placedInst = doc.Create.NewFamilyInstance(startPoint, hangerFamily, Autodesk.Revit.DB.Structure.StructuralType.NonStructural);
Solved! Go to Solution.