Hide view work plane via Python

Hello, dear friends. I want to hide a Work Plane in active view. You can manually switch on the Work Plane by clicking, for example, Architecture - Work Plane - Show. I can’t hide it in python script inside a transaction with the following

doc.ActiveView.HideActiveWorkPlane

ShowActiveWorkPlane doesn’t work too. Am I doing something wrong?

Are you getting an error? Do you have the parenthesis at the end of HideActiveWorkPlane()? A screenshot of your graph and python code would be helpful.

4 Likes

Hello, Mr. Nick, you are completely right - I have forgot about parenthesis! Thank you for the quick response :smiling_face: :smiley: (I haven’t got an error without parenthesis)

Always one that catches us out. Definitely spend a bit of time researching methods vs properties in Python - valuable lesson for sure.

1 Like