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())
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
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