Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Subcript text in dimension prefix

Status
Not open for further replies.

fsh27

Industrial
Apr 18, 2016
57
ES
Hi to all,

I would like to add this prefix to my dimension, but I don´t know how.

At the moment I´m just adding a normal text close to the dimensions.

Captura_dzju0p.jpg


Airin
NX Designer
 
Replies continue below

Recommended for you

Hello,

Is that pic from CATIA? Do you need this in Drafting design workbench? Do you want it by script or manually?

Here is the manual method:

subscript_zosdqj.png


Hope it helps.
Calin
 
And here is how you do it by script:
Code:
Sub myText()
    Dim oDoc As DrawingDocument
    Set oDoc = CATIA.ActiveDocument
    
    Dim oView As DrawingView
    Set oView = oDoc.Sheets.ActiveSheet.Views.Item(2)
    
    Dim oText As DrawingText
    Set oText = oView.Texts.Add("A1 = 120", 10, 10)
    oText.SetParameterOnSubString catSubscript, 2, 1, 1
    
End Sub

Hope it helps,
Calin
 
Thanks Calin,

But my doubt is in a dimension, not in a normal text.

Captura2_rbwxfn.jpg


This pic is from NX. (I´m NX designer fighting with Catia). In NX you just have to add the text between <l>text<l>

Captura3_xvvugk.jpg


I´m doing my drawing manually, not by script.

Airin
NX Designer
 
Create a normal text with << D[sub]0[/sub] = >> then right click on text -> Positional Link -> Create and select/click the dimension. Now, anywhere that dimension goes, the text will follow.

I don't know other methods.

Sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top