×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Hide Value for Text with Leader
2

Hide Value for Text with Leader

RE: Hide Value for Text with Leader

2
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 --> VBA

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.

RE: Hide Value for Text with Leader

Hi Fernando,
You are always welcome.
Note: Thanks for the star.

-GEL
Imposible is nothing.

RE: Hide Value for Text with Leader

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

https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...

RE: Hide Value for Text with Leader

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

RE: Hide Value for Text with Leader

one star from me** (Correction)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources