Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NXOpen Getting the Dimension Text Displayed on the Drawing

Status
Not open for further replies.

EngProgrammer

Aerospace
Jan 14, 2015
150
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())
 
Replies continue below

Recommended for you

EngProgrammer said:
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.

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

Part and Inventory Search

Sponsor