How to get YZ_Justification in Revit API 2023?

How to get YZ_Justification in Revit API 2023?

powerstrong
Contributor Contributor
454 Views
2 Replies
Message 1 of 3

How to get YZ_Justification in Revit API 2023?

powerstrong
Contributor
Contributor

powerstrong_0-1661319262880.png

I can change Y and Z Justification, which is the offset of Beam in Revit. (Sorry it's not English)

 

Before Revit 2023, I could find these values as parameters in Element.

Also I could get value by using Element::get_Parameter(BuiltInParameter.YZ_JUSTIFICATION).AsInteger();

 

Now they are gone in Revit API 2023.

Does anyone have a tip for get the jutification status?

Thanks.

 

(This is parameter list of the Structural Beam Element in the picture. Justification informations are not here)

        [0] "HIGHEST_ASSOCIATED_LEVEL"  string
        [1] "LOWEST_ASSOCIATED_LEVEL"   string
        [2] "STRUCTURAL_MATERIAL_PARAM" string
        [3] "ANALYTICAL_ELEMENT_PHYSICAL_ASSET" string
        [4] "ANALYTICAL_ELEMENT_STRUCTURAL_ROLE"    string
        [5] "ANALYTICAL_MEMBER_SECTION_TYPE"    string
        [6] "STRUCTURAL_SECTION_SHAPE"  string
        [7] "ANALYTICAL_MEMBER_ROTATION"    string
        [8] "STRUCTURAL_ANALYZES_AS"    string
        [9] "ALL_MODEL_INSTANCE_COMMENTS"   string
        [10]    "STRUCTURAL_START_RELEASE_TYPE" string
        [11]    "STRUCTURAL_START_RELEASE_FX"   string
        [12]    "STRUCTURAL_START_RELEASE_FY"   string
        [13]    "STRUCTURAL_START_RELEASE_FZ"   string
        [14]    "STRUCTURAL_START_RELEASE_MX"   string
        [15]    "STRUCTURAL_START_RELEASE_MY"   string
        [16]    "STRUCTURAL_START_RELEASE_MZ"   string
        [17]    "STRUCTURAL_END_RELEASE_TYPE"   string
        [18]    "STRUCTURAL_END_RELEASE_FX" string
        [19]    "STRUCTURAL_END_RELEASE_FY" string
        [20]    "STRUCTURAL_END_RELEASE_FZ" string
        [21]    "STRUCTURAL_END_RELEASE_MX" string
        [22]    "STRUCTURAL_END_RELEASE_MY" string
        [23]    "STRUCTURAL_END_RELEASE_MZ" string
        [24]    "ANALYTICAL_ELEMENT_HAS_ASSOCIATION"    string
        [25]    "STRUCTURAL_MEMBER_FORCES"  string
Accepted solutions (1)
455 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @powerstrong ,

 

I would suggest you download RevitLookup from this below link and explore the element.

https://github.com/jeremytammik/RevitLookup/releases 

Please see the screenshot, I am able to see the required parameters.

If nothing helps, please send me a non-confidential Revit sample file and Revit version details.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

powerstrong
Contributor
Contributor

Hi @naveen.kumar.t ,

 

That parameter is shown via RevitLookup.

Now I will check the source code how I can get the parameter.

Thank you so much. 🙂 

0 Likes