- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi;
I've written some code which take some pipes as input and via the end points calculates the average slope of the selected pipes (max/min at pipe run ends). I've read this post regarding the problems with not getting updated slope values : http://forums.autodesk.com/t5/revit-api-forum/changing-a-pipe-s-slope/td-p/5839854. I'm facing a similar problem.
I've tried to update the pipes curves by using this
(p.Location as LocationCurve).Curve = Line.CreateBound(p1, q1);
and works perfectly. All my selected pipes get the same slope value and the geometry is correct - BUT the slope value is still the old ones, as seen in the picture below. The pipe is sloped, but Revit think it is not = slope equal to 0.
Is the only workaround for this to recreate the pipes as new pipes? and then take all information from the old one and insert to new ones...
Solved! Go to Solution.