Edit - Sheet Background

Vinicius Santin

Edit - Sheet Background

Hi Friends,

 

I wonder if there is any way to remove the option "Sheet Background" present in the menu "Edit" the Drafiting environment.

I know I can block access to the background view to the settings of "Tools Options". But I saw a company with customized environment that option is removed from bars.

 

Anyone know how?

Thanks in advance.

Little Cthulhu

RE: Edit - Sheet Background
(in response to Vinicius Santin)
Hi.
I know that many exotic environment variables have vanished since early releases of CATIA. This one looks like the one for me as I never heard of anything similar.
But in order to achieve your goal you may try to use WinAPI to delete sheet background command from menu although it would still be accessible via Power Input.
Another way is to write Kniwledgeware reaction that would fire once active view has changed and switch it back from background to main.
Finally, in case if you are willing to protect background view from editing, put all elements on it in no pickable state. This way they may be accessed only with smart Search query or scripting. I use this approach myself.

Jeff Kavali

RE: Edit - Sheet Background
(in response to Little Cthulhu)

We have limited our users access to the sheet background by using the standard Catia settings.  It doesn't remove the Sheet Background button, but it prevents the user from being able to go to the sheet background.  

To do this go to Tools -> Options.  Go to the Administrator tab under Drafting.  There is an option called 'Prevent background view access'.  See the attached pictures for more details.

Attachments

  • Prevent Background View Access Option.png (282.3k)
  • Sheet Background Button.png (121.4k)

Vinicius Santin

RE: Edit - Sheet Background
(in response to Little Cthulhu)

Jeff Kavali, I know the blocking by tool-options, plus the option does not solve my case. Thanks for the help

 

Little, I think a very good idea for my application write Knowledgeware reaction. But I'm not familiar with the reaction feature. I'm trying without success even more. Can you give me a hand?

 

Thanks in advance

Cliff Johnson, Cliff

RE: Edit - Sheet Background
(in response to Vinicius Santin)

I don't know how to do that either.

Little, which object and action  would you use for the trigger?

How can you check the active view. I don't see how to do it with KBE language. Perhaps with a VB reaction. But man that is getting ugly.

I have long found the integration of KBE and drafting to be incomplete and broken in some respects.

For example you cannot change the contents of a Text even though the KBE language browser says it is writable. (blah-blah-blah.jpg)

I sent a bug and it was rejected with a comment like "too many things are dependant on the read-only behavior things would break if it were fixed."   I am bummed by this as it would be very useful to be able to use KWE to do mass edits of drawing texts.

Attachments

  • blah-blah-blah.jpg (40.7k)
Edited By:
Cliff Johnson, Cliff[Tata Technologies] @ Aug 10, 2012 - 12:42 PM (America/Eastern)

Vinicius Santin

RE: Edit - Sheet Background
(in response to Cliff Johnson, Cliff)

I doubt this is exactly who commented Cliff.

Which object and action  would you use for the trigger?

Little Cthulhu

RE: Edit - Sheet Background
(in response to Vinicius Santin)

Cliff, KW in a drawing is really useless and gives almost nothing in a sense of automation. And yes, I was talking about VB reaction. But in the real life I wouldn't consider it to be a company's best practice, just wanted to share my thought with community. 

Vinicius, and here comes another thought: you can really make a some sort of a "hack" using automation and WinAPI timer functions. The thing is that it is possible to make a VBA function execute once per desired period of time. It can be achieved using SetTimer function. And important issue is that it continues to be called even after VBA has finished executing. It means that you can make a user (by any means) to launch a macro that would set this sort of a timer and put a code inside of it that would change active view from background to main. Again, this is a hack, that is undocumented and unstable solution, and it requires some programming skills. But in theory you can make any sort of a repeating trigger using it. 
Edited By:
Little Cthulhu[Sikorsky Aircraft] @ Aug 11, 2012 - 12:37 PM (Europe/Moscow)

Vinicius Santin

RE: Edit - Sheet Background
(in response to Little Cthulhu)

Ok Little, thanks for another tip.