Create drawings from models (Creo Elements/Direct Annotation) > Advanced topics > Customization for advanced users > Owner functions
  
Owner functions
You can customize the following areas of Creo Elements/Direct Annotation relating to owners:
The DOCU-SET-COMMON-OWNER function
The DOCU-HIDE-WRONG-OWNER-WARNING function
The DOCU-SET-COMMON-OWNER function
The DOCU-SET-COMMON-OWNER function can be used to bind owner contexts so that two or more contexts share the same default owners. For example, you can specify one owner type to be the default for both text and symbols. To bind default owners, add the following function to the am_customize file or another customization file, using one of the indicated constructions:
Syntax
(DOCU-SET-COMMON-OWNER --+--> ALL option-------------------->+--->
| ^
|--> Binding pairs of owner contexts----->|
| |
|--> Binding a group of owner contexts--->|
| |
`--> NIL option--------------------->'
ALL option
:ALL specifies that the default owners of all contexts are to be the same. See below for a list of the default owner contexts.
Syntax
(DOCU-SET-COMMON-OWNER :ALL)
Binding pairs of owner contexts
The construction below binds pairs of owner contexts. The different context variables follow.
Syntax
(DOCU-SET-COMMON-OWNER '((context1 context2) (context3 context4) ...))
Options
The contextn entries can be the following:
:geo denotes the default geometry owner.
:c-geo denotes the default construction geometry owner.
:text denotes the default text owner.
:symbol denotes the default symbol owner.
:sketch denotes the default sketch owner.
Binding a group of owner contexts
The construction below binds a group of owner contexts. The different context variables follow.
Syntax
(DOCU-SET-COMMON-OWNER '((context1 context2 context3 ...)))
Options
The contextn entries can be the following:
:geo denotes the default geometry owner.
:c-geo denotes the default construction geometry owner.
:text denotes the default text owner.
:symbol denotes the default symbol owner.
code>:sketch denotes the default sketch owner.
NIL option
NIL removes all binds on the owner contexts; each context becomes independent from all the others. This was the behavior in versions of CoCreate Annotation before 7.0. See the section above for a list of the default owner contexts.
Syntax
(DOCU-SET-COMMON-OWNER NIL)
The DOCU-HIDE-WRONG-OWNER-WARNING function
When you add to a drawing elements that require an owner (such as 2D geometry, text, symbols or sketches), Creo Elements/Direct Annotation will warn you if the element is not added within the border of the specified owner. This can be annoying, and therefore the DOCU-HIDE-WRONG-OWNER-WARNING function is available to suppress the warning dialog. The default (nil) is to display the warning.
Syntax
(SETQ DOCU::*DOCU-HIDE-WRONG-OWNER-WARNING* t or nil)