Using the se client object model and display code – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual
Page 661

C–1
C • Pl
aceh
old
er
A
PPENDIX
C
Using the SE Client object model and
display code
This chapter describes:
How you can use VBA with FactoryTalk View Site Edition.
The VBA integrated development environment.
The objects in the FactoryTalk View SE Client object model.
How to find information about FactoryTalk View SE Client objects.
How to find information about VBA.
Customizing applications using VBA with FactoryTalk View
Use the FactoryTalk View SE Client object model with Microsoft VBA (Visual Basic for
Applications) code in graphic displays to customize and extend the capabilities of the
FactoryTalk View SE Client.
For example, you can use the object model and display code to do the following:
Use data with other applications.
If you regularly require FactoryTalk View data for
use in programs such as Microsoft Excel or SQL Server, consider using the FactoryTalk
View SE Client object model and VBA display code to integrate these applications with
FactoryTalk View.
Create custom forms for operators.
You can use VBA to create custom forms, for
example, pop-up dialog boxes that an operator can interact with at run time.
You can also use VBA logic to validate operator input, for example, to ensure that the
value an operator enters in a numeric input object falls within the correct range of values.
Design intuitive graphic displays.
Use the FactoryTalk View SE Client object
model to provide ActiveX controls with data, for use in graphic displays.
For example, use list boxes or combo boxes in graphic displays to allow an operator to
select options such as recipe items.
Manipulate the FactoryTalk View SE Client window
. Write VBA code to arrange
graphic displays based on the size of the FactoryTalk View SE client window. This allows
you to adapt an application dynamically to various desktop sizes and resolutions.