Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Apr 18, 2016
Messages
57
Location
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
 
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 << D0 = >> 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