How to Hide Elements using a Rule?
How to Hide Elements using a Rule?
(OP)
I want to no-show certain elements depending on the value of a parameter.
Within the Rule function, I can make the \activity =FALSE but this de-activates the elements.
I have also tried creating a macro but the macro does not record anything when I no show the elements.
Can anyone help?
Within the Rule function, I can make the \activity =FALSE but this de-activates the elements.
I have also tried creating a macro but the macro does not record anything when I no show the elements.
Can anyone help?





RE: How to Hide Elements using a Rule?
What is the basis for hiding the element.
Is it not overkill to use a parameter to hide the element.
What are you really trying to achieve?
RE: How to Hide Elements using a Rule?
I then call up this macro from within the rule using:
LaunchMacroFromDoc("MacroName")
MACRO:
Language="VBSCRIPT"
Sub CATMain()
Set partDocument1 = CATIA.ActiveDocument
Set selection1 = partDocument1.Selection
selection1.Search "Name=*HeadtoBlock*,all"
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetShow catVisPropertyNoShowAttr
End Sub