Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jan 14, 2015
Messages
150
Location
US
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)
 
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

Back
Top