Activate/Deactivate Frame in a Table
Activate/Deactivate Frame in a Table
(OP)
I have a drawing form that is based on a table. The cells in the sheet size column have a circular text frame added if the user specifies that the drawing is a CAD drawing, and no circle frame if it is a board drawing. I am looking for a way to programmatically add the frame, based on a simple reaction. (i.e., a pull down box, with a Boolean selection - if CAD = "true", a reaction is fired which applies the frame to the cell of the table)
My table is locked out to prevent users from modifying the parameter manually. Therefore, it is imperative that I find a method to accomplish this task.
Thank you.
My table is locked out to prevent users from modifying the parameter manually. Therefore, it is imperative that I find a method to accomplish this task.
Thank you.





RE: Activate/Deactivate Frame in a Table
CODE
Sub CATMain() Dim bSTR1 Set drawingDocument1 = CATIA.ActiveDocument Set selection1 = drawingDocument1.Selection Set visPropertySet1 = selection1.VisProperties Set drawingSheets1 = drawingDocument1.Sheets Set drawingSheet1 = drawingSheets1.Item("Sheet.1") Set drawingViews1 = drawingSheet1.Views Set drawingView1 = drawingViews1.Item("Background View") Set geometricElements1 = drawingView1.GeometricElements Set circle2D1 = geometricElements1.Item("Circle.2") Set geometricElements1 = circle2D1.Parent Set parameters1 = drawingDocument1.Parameters Set boolParam1 = parameters1.Item("Boolean.2") bSTR1 = circle2D1.Name selection1.Add circle2D1 visPropertySet1.SetShow boolParam1.Value selection1.clear End SubHowever, it doesn't work properly. This code returns the exact opposite of what I'm asking it to. (if boolParam1 = true, it hides the circle, and vice versa)
RE: Activate/Deactivate Frame in a Table
CODE -->
It looks like the options for other frames are:
CODE -->
RE: Activate/Deactivate Frame in a Table
Glad to see you back , solid7
CODE --> CATScript
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU