Pipe Connector Origin Z Reference Level

Pipe Connector Origin Z Reference Level

jonathan.umscheid
Participant Participant
750 Views
3 Replies
Message 1 of 4

Pipe Connector Origin Z Reference Level

jonathan.umscheid
Participant
Participant

In Revit 2017, I am getting unexpected Z values in pipe connectors.  I believe it is something specific to this RVT file.  The example pipe is referenced to Level 3, which has an elevation of 132.  The pipe has a level offset of 10.5, putting it at 142.5.  The pipe's first connector reports an Origin.Z value of 42.5, which also matches the pipe's LocationCurve Z value.  So the pipe appears to be reporting its Z values relative to Level 1, which has an elevation of 100.  Why would the pipe connector's Origin.Z be relative to Level 1?  Why does it not report its Origin.Z as 142.5?  Is there a project setting that would make Level 1 the default reference for all reported Z values?

 

Here are the debugger values:

 

Capture1.PNG

 

Here is an elevation view with the pipe highlighted:

 

Capture2.PNG

0 Likes
Accepted solutions (1)
751 Views
3 Replies
Replies (3)
Message 2 of 4

jonathan.umscheid
Participant
Participant

Adding a spot elevation tag and changing its 'Elevation Origin' parameter from 'Project Base Point' to 'Relative', revealed the same value of 42.5.  So I guess the key to resolving this is understanding how through the API I can determine what 'Relative' coordinates are referenced to?

0 Likes
Message 3 of 4

jonathan.umscheid
Participant
Participant

I found this link that provided more insight into Relative coordinates...

"If the base value is set to Relative, then the elevation reported is with respect to the level in the Relative Base instance parameter."

http://revitclinic.typepad.com/my_weblog/2011/07/project-relative-coordinate-origin-.html

Question now is where to find the 'Relative Base' instance parameter.

0 Likes
Message 4 of 4

jonathan.umscheid
Participant
Participant
Accepted solution

Okay, I didn't find the answer to my question, but I did find a solution to my problem.  It turns out the Level element has two elevation properties to choose from:  Elevation and ProjectElevation.  In my example, Level 3 has an Elevation of 132 and a ProjectElevation of 32.  So it appears I simply need to adjust my code to use the ProjectElevation to resolve my issue.

0 Likes