Tech Note 596 Using the OwningObject Property with ArchestrA Graphics All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information. Topic#: 002352 Created: April 2009 Introduction The OwningObject property allows you to force the embedded symbol to point to a different AutomationObject in its references contained in animation links. The outcome is somewhat analogous to creating faceplates with Indirect Tags in InTouch. To follow this Tech Note, download and extract t002352_pkgs. This zipped file contains $Tank.aaPKG and OwningObjectTest.aaPKG. You can either import the $Tank.aaPKG into a test application or import all objects exported from test Galaxy OwningObjectTest.aaPKG. Both were created in WAS 3.0 Patch 03. Application Versions Wonderware Application Server 3.0 and later. About The $Tank Object $Tank is simply a simulated tank that we use as an example. The following steps demonstrate how the example $Tank object is configured: 1. Under Application Objects, open the $Tank object and then open the $TankDisplay as shown in Figure 1 (below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 1/8
FIGURE 1: $TANKDISPLAY Note the Custom Properties of the $Tank, Valves and associated script. https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 2/8
FIGURE 2: CUSTOM PROPERTIES FOR $TANK/ENGINEERING UNITS FIGURE 3: $TANK CUSTOM PROPERTIES/FILL COLOR https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 3/8
FIGURE 4: $TANK SCRIPT 2. Create another graphic called Switchable Tank. https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 4/8
FIGURE 5: SWITCHABLE TANK GRAPHIC 3. Embed the Tank Display and a Radio Button box in Switchable Tank. Important: Owning object property is only available for embedded symbols. Notice that the radio buttons are configured as shown below. https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 5/8
FIGURE 6: EMBEDDED RADIO BUTTONS Figure 7 (below) shows the OwningObject property under the Animation Link for the radio buttons. (Tank_001, Tank _002 and Tank_003 are instances of the $Tank object.) https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 6/8
FIGURE 7: TANK.OWNINGOBJECT REFERENCE 4. Create a new InTouchView App Derived Template, and embed the first instance of the switchable tank. 5. Deploy the Galaxy and go to Runtime. You should now be able to switch between tanks using the radio buttons. https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 7/8
FIGURE 8: SWITCH TANKS IN RUNTIME Click the following icon to view this file in.pdf format: N. Khadikar Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also technical information on our software products at Wonderware Technical Support. For technical support questions, send an e-mail to support@wonderware.com. Back to top 2013 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, broadcasting, or by anyinformation storage and retrieval system, without permission in writing from Invensys Systems, Inc. Terms of Use. https://wdnresource.wonderware.com/support/kbcd/html/1/t002352.htm 8/8