Continue to Site

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!

Hide Value for Text with Leader 2

Status
Not open for further replies.
Replies continue below

Recommended for you

Hi Ferdo,

you may use Windows APIs to set the value of the [Combobox] field to 'Hide' in the [Text] tab of the |Properties| dialog box

Alternatively, a workaround is to set the color of the Drawing Text object as in the following sample code.

Code:
Function ChangeDrawingTextColor(ByVal Color As Integer)
    Dim DwgText As DrawingText
    
    Set DwgText = CATIA.ActiveDocument.Selection.Item(1).Value
    DwgText.TextProperties.Color = Color
    DwgText.TextProperties.Update
End Function

Sub TestOfChangeDrawingTextColorFunction()
    ChangeDrawingTextColor (-1)
End Sub

I hope it helps.


-GEL
Imposible is nothing.
 
Hi Fernando,
You are always welcome.
Note: Thanks for the star.


-GEL
Imposible is nothing.
 
Hi GEL

Excellent idea once again, I would give a second star but is not possible [bigsmile]

To do what I wanted I used (in vb.net)

DrawText1.ActivateFrame(catNone)
DrawLeader1 = DrawText1.Leaders.Add(PointLocation1(0), PointLocation1(1))
DrawLeader1.HeadSymbol = catFilledArrow
DrawText1.AnchorPosition = catBottomCenter
Const catColor As DRAFTINGITF.CatTextProperty = -1
DrawText1.TextProperties.Color = catColor
DrawText1.TextProperties.Update()


Regards
Fernando

 
one star for me.. i try to hide value from a Text with Leader but i can't... just with the dimensions.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top