Ordinate Dimension Text Position Question

Ordinate Dimension Text Position Question

thomas.fitzpatrick6MT8F
Explorer Explorer
1,303 Views
3 Replies
Message 1 of 4

Ordinate Dimension Text Position Question

thomas.fitzpatrick6MT8F
Explorer
Explorer

So I primarily use Dynamo with some small forays into the python node inside Dynamo for all my programming needs inside Revit. However, I'm not able to find a solution for this problem. 

Is it possible to set the text position of an ordinate dimension to a given point? Setting the text position of a Linear dimension with a point has been straightforward and able to be done with packaged nodes inside dynamo. 

I took a breeze into RevitAPIDocs and poked around the OrdinateDimensionSetting Class and OrdinateTextPosition Enumeration, and it appears to me that the only options for setting text position look like the options for setting default text position via the type editor. (EndOfWitnessLine, NextToWitnessLine).

 

So, at this point it's not looking to me that ordinate dim text position can be set in a similar way to linear dim text can be. I just wanted to check with the API forum and see if I'm missing something here. So, am I missing something? 

Thanks

Accepted solutions (1)
1,304 Views
3 Replies
Replies (3)
Message 2 of 4

thomas.fitzpatrick6MT8F
Explorer
Explorer

So Snooping further into this: I'm much more confident this is just impossible to do currently with the API. So it goes.

Using the RevitLookup tool yields a thrown error/exception on text position in an Ordinate Dimension. 

So now my question is: Why are Ordinate Dimension objects different than normal dimensions? I'm sure there's some kind of reason, but i don't understand why they would be any different in regard to text position. 

0 Likes
Message 3 of 4

RPTHOMAS108
Mentor
Mentor
Accepted solution

Yes I don't understand the logic of that both Ordinate Dimensions and Linear Dimensions have the blue dot in the UI.

 

This is what the RevitAPI.chm says:

 

DimensionSegment.TextPosition:

"This property is not applicable to all dimensions. For example, it is not available for spot dimensions, dimensions using equality formula, and when dimension style is ordinate.

If the position is not applicable, this property returns NULL and will not allow setting a value."

 

There is also the method DimensionSegment.IsTextPositionAdjustable

 

To a certain degree if you are moving the text away from the extension line does it get a bit less like an ordinate dimension and a bit more like a misleading linear dimension with one arrow, although you can adjust it in the UI there is no great point to that. The ordinate dimensions in Revit are not true ordinate dimensions similar to what you get in AutoCAD.

 

230531.PNG

0 Likes
Message 4 of 4

thomas.fitzpatrick6MT8F
Explorer
Explorer
"To a certain degree if you are moving the text away from the extension line does it get a bit less like an ordinate dimension and a bit more like a misleading linear dimension with one arrow"

 

The above is what i was trying to accomplish with using ordinate dimensions. So that the text was parallel with witness lines and things were cleaner looking when dims were at odd angles. I used Dynamo to split them all out into singular dims so they only reported one length. I just really wanted a way to be lazy about having to move the text haha


ordinate dims.PNG

0 Likes