Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NXOpen Height of the Dimension

Status
Not open for further replies.

EngProgrammer

Aerospace
Jan 14, 2015
150
Dear Forum,

With NXOpen, how do I get the height of a dimension, note and/or label.

Here's how I am getting the dimension object.


Code:
            theUFSession.Obj.CycleObjsInPart(displayPart.Tag, _
                UFConstants.UF_dimension_type, dimnsn)
            If dimnsn = NXOpen.Tag.Null Then
                Continue Do
            End If
            dimObj = CType(NXObjectManager.Get(dimnsn), Dimension)
 
Replies continue below

Recommended for you

thanks cowski,

How about using the askAnnotationTextBox?


Code:
Dim upper_left() As Double
                    Dim length As Double
                    Dim height As Double
                    theUFSession.Drf.AskAnnotationTextBox(dimObj.Tag, upper_left, length, height)
 
Depends on exactly what you are after. Using the text box size is good if you need to know how much space the text is taking up on the drawing; also handy if your note is multi-line or uses special text control characters. The lettering preferences are good if you need to know the text height settings as reported in the "settings" dialog box.

www.nxjournaling.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor