Hide Value for Text with Leader
Hide Value for Text with Leader
(OP)
Hi,
I would like to Hide Value from a Text with Leader as is shown in picture attached. I didn't find in docs something useful, is it possible or not to do it with a macro ?
Thanks in advance for any help.
I would like to Hide Value from a Text with Leader as is shown in picture attached. I didn't find in docs something useful, is it possible or not to do it with a macro ?
Thanks in advance for any help.
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...





RE: Hide Value for Text with Leader
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 SubI hope it helps.
-GEL
Imposible is nothing.
RE: Hide Value for Text with Leader
This is a very good idea, thank you.
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Hide Value for Text with Leader
You are always welcome.
Note: Thanks for the star.
-GEL
Imposible is nothing.
RE: Hide Value for Text with Leader
Excellent idea once again, I would give a second star but is not possible
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
RE: Hide Value for Text with Leader