Pipe slope not updating

Pipe slope not updating

jkbi
Enthusiast Enthusiast
1,741 Views
4 Replies
Message 1 of 5

Pipe slope not updating

jkbi
Enthusiast
Enthusiast

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.

pipes.png

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...

 

0 Likes
Accepted solutions (1)
1,742 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Jkb,

 

Happy New Year to you!

 

Thank you for your query.

 

Your by-line looks to me as if it contains a typo: "Cheif BIM / Data spe..."

 

Do you mean Chief or Cheif? Or Sheik?

 

Is that intentional?

 

If so, supper col!

 

Anyway, typos and jokes aside (please pardon them), regarding the issue you raise:

 

Thank you very much for raising this and pointing out that old unresolved case.

 

I discussed this with the development team, and they confirm that it does indeed look like an issue that needs rectifying.

 

Accordingly, we filed a development database entry for it, REVIT-106354 [pipe slope does not update when modify the pipe curve location by api]. Please make a note of this number for future reference.

 

You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.

 

This issue is important to me. What can I do to help?

 

This issue needs to be assessed by our engineering team, and prioritised against all other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:

 

  • Impact on your application and/or your development.
  • The number of users affected.
  • The potential revenue impact to you.
  • The potential revenue impact to Autodesk.
  • Realistic timescale over which a fix would help you.
  • In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.

 

This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 5

jkbi
Enthusiast
Enthusiast

Thanks for the heads-up on the typo, even though one could wish for warmer weather, which I guess would follow the title as Sheik 🙂

 

I have solved slope issue for now (Until the API gets fixed in regards to the slope) – by just recreating the pipes.

 

Thanks

0 Likes
Message 4 of 5

LucasJonnedeJong
Enthusiast
Enthusiast

Hello @jkbi and @jeremytammik 

Now almost 4 years later, has this issue been fixed in the Revit API?  Could the "SetPipeSlopes" method (Which is a part of the PipeSettings Class) help with this?  Or maybe "AddPipeSlope"?

 

Thanks, 

0 Likes
Message 5 of 5

jeremy_tammik
Alumni
Alumni

Dear Lucas,

 

At a quick glance, I see that several DAS tickets were raised, resulting in a change request for this:

 

 

The status of the development issue REVIT-106354 is CLOSED, Resolution Fixed, and Fix Version Revit 2019.

 

So, I would assume that everything works as expected.

 

If you encounter anything different, please file a new report for investigation, preferable with a minimal reproducible case to illustrate and test your observations:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Thank you!

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes