×
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 Getting the Dimension Text Displayed on the Drawing

NXOpen Getting the Dimension Text Displayed on the Drawing

NXOpen Getting the Dimension Text Displayed on the Drawing

(OP)
Dear Forum,

I need some help getting at the dimension of the text displayed on the drawing. I am using the following snippet of code.


Dim dimObj As Dimension = Nothing

theUFSession.Obj.CycleObjsInPart(displayPart.Tag, UFConstants.UF_dimension_type, dimnsn)

dimObj = CType(NXObjectManager.Get(dimnsn), Dimension)

dimObj.ComputedSize.ToString())

RE: NXOpen Getting the Dimension Text Displayed on the Drawing

Quote (EngProgrammer)

I need some help getting at the dimension of the text displayed on the drawing.

What exactly do you mean by the "dimension of the text"? The physical size of the text? The displayed text of the dimension? Something else?
Also, what version of NX?

There is some code in the following thread that shows how to get the displayed dimension text. The code example only gets the first line of the dimension text; it ignores the tolerance (if any is applied) and any appended text, though both of these can be accessed if necessary.
http://nxjournaling.com/comment/623#comment-623

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