×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

NXOpen Height of the Dimension

NXOpen Height of the Dimension

NXOpen Height of the Dimension

(OP)
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 --> vb.net

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) 

RE: NXOpen Height of the Dimension

(OP)
thanks cowski,

How about using the askAnnotationTextBox?


CODE --> vb.net

Dim upper_left() As Double
                    Dim length As Double
                    Dim height As Double
                    theUFSession.Drf.AskAnnotationTextBox(dimObj.Tag, upper_left, length, height) 

RE: NXOpen Height of the Dimension

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources