CST STUDIO SUITE Introduction in VBA Macro usage and programming

Similar documents
Application Development With Data Studio

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

Introduction. Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications

Automate tasks with Visual Basic macros

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Getting Started with STATISTICA Enterprise Programming

Introduction to antenna and near-field simulation in CST Microwave Studio software

Word 2010: Mail Merge to with Attachments

Unleashing Hidden Powers of Inventor with the API Part 1. Getting Started with Inventor VBA Hello Inventor!

Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

VBA Macro for construction of an EM 3D model of a tyre and part of the vehicle

This Skill Builder demonstrates how to define and place sketched symbols in drawings.

Using the Query Analyzer

Creo Simulate 1.0 April 2011

McAfee SIEM Alarms. Setting up and Managing Alarms. Introduction. What does it do? What doesn t it do?

SOLIDWORKS FILE MANAGEMENT

Applications Development

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

How to test and debug an ASP.NET application

BarTender Integration Methods. Integrating BarTender s Printing and Design Functionality with Your Custom Application WHITE PAPER

Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access

CAPIX Job Scheduler User Guide

SUMMARY Moderate-High: Requires Visual Basic For Applications (VBA) skills, network file services skills and interoperability skills.

Agile Business Suite: a 4GL environment for.net developers DEVELOPMENT, MAINTENANCE AND DEPLOYMENT OF LARGE, COMPLEX BACK-OFFICE APPLICATIONS

SAP HANA SPS 09 - What s New? Development Tools

Smart Tasks - Automate Key Activities

Steady Flow: Laminar and Turbulent in an S-Bend

Jolly Server Getting Started Guide

Brocade Network Advisor: CLI Configuration Manager

DiskPulse DISK CHANGE MONITOR

Introduction to Simulink

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

Microsoft SharePoint Products & Technologies

Database Automation using VBA

Complete Technology and RFID

Compute Cluster Server Lab 3: Debugging the parallel MPI programs in Microsoft Visual Studio 2005

HTML5. Turn this page to see Quick Guide of CTTC

Scripting with CAMMaster And Visual Basic.NET

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

Tutorial 5: Developing Java applications

Microsoft Office System Tip Sheet

Debugging Export Connectors With Visual Studio.NET

Set up projects quickly Key: =Feature Included =Improved in Office Project Standard 2007 =New in Office Project Standard Project Standard 2003

Protecting SQL Server Databases Software Pursuits, Inc.

Uninstallation Guide Funding Information System (FIS)

Bitrix Intranet Portal. Business Process Guide

Working with Macros and VBA in Excel 2007

DESKTOP COMPUTER SKILLS

ibaan ERP 5.2a Configuration Guide for ibaan ERP Windows Client

SCADA/HMI MOVICON TRAINING COURSE PROGRAM

Using Microsoft Visual Studio API Reference

Morningstar. DirectSM User Guide

DiskBoss. File & Disk Manager. Version 2.0. Dec Flexense Ltd. info@flexense.com. File Integrity Monitor

Microsoft. Outlook ADVANCED FEATURES AND FUNCTIONS

Virto Workflow Scheduler For Microsoft SharePoint Release User and Installation Guide

Microsoft SharePoint Products & Technologies

2 SQL in iseries Navigator

Installation and User Guide Zend Browser Toolbar

ElectricCommander. Technical Notes MS Visual Studio Add-in Integration version version 3.5 or higher. October 2010

Application Note Windows 2008 and IBM Tape Diagnostic Tool (ITDT-GE)

Agilent Evolution of Test Automation Using the Built-In VBA with the ENA Series RF Network Analyzers

Using the Scripting Utility in the Code Composer Studio Integrated Development Environment

Rational Developer for IBM i (RDi) Introduction to RDi

SQL SERVER REPORTING SERVICES 2012 (POWER VIEW)

Authoring for System Center 2012 Operations Manager

Programming with the Dev C++ IDE

Client Installation Guide. Version 6.0 SP1

Using SQL Developer. Copyright 2008, Oracle. All rights reserved.

Librarian. Integrating Secure Workflow and Revision Control into Your Production Environment WHITE PAPER

Microsoft Visual Basic Scripting Edition and Microsoft Windows Script Host Essentials

Code Estimation Tools Directions for a Services Engagement

Financial Data Access with SQL, Excel & VBA

Hummingbird Enterprise

Wakanda Studio Features

PULSE Automation programming in Visual Basic. From BK training lectures arranged by Jiří Tůma & Radovan Zadražil

Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials.

Advanced Presentation Features and Animation

Bitrix Site Manager 4.1. User Guide

Apparo Fast Edit. Excel data import via 1 / 19

Sitecore InDesign Connector 1.1

Monitoring PostgreSQL database with Verax NMS

Amman Jordan Mob: Tel:

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Load testing with. WAPT Cloud. Quick Start Guide

Using Parametric Equations in SolidWorks, Example 1

Generating Automated Test Scripts for AltioLive using QF Test

For Introduction to Java Programming, 5E By Y. Daniel Liang

SCUtils WorkItem Scheduler Guide Solution for Microsoft System Center 2012 Service Manager

Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1

Using these objects to view the process of the whole event from triggering waiting for processing until alarm stops. Define event content first.


Set up My Sites (SharePoint Server

Instructions to operating forms created in MSWord and Excel

Integrating CoroSoft Datacenter Automation Suite with F5 Networks BIG-IP

Hands-On Lab. Client Workflow. Lab version: Last updated: 2/23/2011

Transcription:

CST STUDIO SUITE Introduction in VBA Macro usage and programming M. Balk Existing Macros Different Macro Types Templates Structure of a Macro Example 1

Outline Why macro programming? Existing macros Different types of macros Creating and testing new macros Getting more information 2

Outline Why macro programming? Existing macros Different types of macros Creating and testing new macros Getting more information 3

Why Macro Programming? Automate common tasks, save time, increase productivity Extend the program s capabilities, e.g. post processing, optimization Customize the program for particular applications Make advanced functionality available to less experienced users CST STUDIO SUITE s macro language: Compatible to the widely used VBA (Visual Basic for Applications) COM based CST STUDIO SUITE can be controlled by other applications CST STUDIO SUITE can control other applications 4

Integration Into Workflow MS Windows Scripting Host COM DCOM Excel, Word, Matlab, AutoCad, etc... e.g. ppt-reports reports e.g. bidirectional Excel link CST Software (MWS, DS) CST Studios can be both: OLE client and server OLE: CommunicationStandard for Data Exchange 5

Matlab Integration Into Workflow Call via command line option CST Software (CST MWS, CST DS) Call:! "C:\Program Files\CST STUDIO SUITE 2006B\CST DESIGN ENVIRONMENT.exe" m D:\MBK\Start_CST_5.bas Execute command in Matlab CST MWS is called Path of the VBA script within the CST DESIGN Sub Main ENVIRONMENT OpenFile("D:\MBK\test1\test1.mod") Solver.Start Save Opens an existing CST MWS file Start of Transient Solver End Sub Saves results and gives control back to Matlab 6

Project Templates Customize the default settings for particular types of applications. At the beginning: or later: File -> New... File -> Select Template... The template library can be easily extended 7

Project Templates Input some commands you often use for your MWS structures, e.g.: Frequency range, units, Background-mat + boundaries Definition of materials (parameters, favorite colours...) Working plane settings (especially snapping!) Monitors at favorite frequencies,... Open the history list Mark the commands, press Macro Give a name to your macro, e.g. File / My defaults Click Make globally available, then OK 9

Customize CST MWS exactly to your needs Postprocessing Import and compare with measured data Special postprocessing (e.g. TDR) Store Views and Animations in different formats Userdefined goal-functions (e.g. antenna goal) Creating a Powerpoint Presentation 10

Outline Why macro programming? Existing macros Different types of macros Creating and testing new macros Getting more information 11

Useful, predefined macros 12

Useful, predefined macros 13

Useful, predefined macros 14

Useful, predefined macros 15

Outline Why macro programming? Existing macros Different types of macros Creating and testing new macros Getting more information 16

Structure Macros and Control Macros Structure macros Modify the structure Stored in the history list for parametric model definition Name:.... mcs Example: Creation of advanced geometry, e.g. spirals, c Macros -> Construct -> Coils -> Sectioned Spiral 17

Structure Macros and Control Macros Control macros Do not modify the structure Do not need to be stored in the history list Name:.... mcr Examples: Postprocessing, Calculation of analytical line impedance, etc. Macros -> Calculate -> Calculate Analytical Line Impedance 18

Project Macros and Global Macros Project macros Can be either command macros or structure macros Specific for a particular project Stored with the project. Not available for other projects as well Global macros Can be either command macros or structure macros Generally useful Stored in a global location (Global Macro Path) Can be shared accross projects 19

Result Templates Purpose: Customized and automized postprocessing Store in <installationpath>/library/result Templates/my_template.rtp Will be evaluated after each solver run. Can perform just an action or return 1D or 0D values. Performs an action 20

Result Templates Purpose: Customized and automized postprocessing Store in <installationpath>/library/result Templates/my_template.rtp Will be evaluated after each solver run. Can perform just an action or return 1D or 0D values. Returns a value 21

Outline Why macro programming? Existing macros Different types of macros Creating and testing new macros Getting more information 22

The Integrated Development Environment Open IDE 23

The Integrated Development Environment Run the macro Debug the macro Edit macro code here (syntax highlighting) 24

The Integrated Development Environment Macro Debugger: Set breakpoints Step through the macro Watch variables etc 25

The Integrated Development Environment Graphical GUI builder Source code for the dialog box is automatically created and Inserted at the caret s position 26

How to Create Macros? There exist different ways to create a macro Copy and modify an existing macro Go to the history list, select lines and press Macro Use Macro -> Make VBA Control Macro and start from Scratch Let MWS create the macro s framework by pressing Edit for User defined excitation function User defined parameter sweep watch User defined optimizer goal function 27

Outline Why macro programming? Existing macros Different types of macros Creating and testing new macros Getting more information 28

Getting More Information Advanced Topics Manual Check the VBA online manual (Help -> VBA Macro Language) Have a look at the pre-loaded macro examples Visit a special training class on macro programming Learning by doing. 29