VBScript Subroutines and Functions This section provides an overview of using subroutines and procedures in Altum Designer VisualBasic scripts. Passing Parameters to Procedures When a function or subroutine (a procedure/method) that can accept parameters is defined in a script, variables can be passed to the function or subroutine in two ways: by reference or by value, using ByRef or ByVal…
This reference describes the VisualBasic Scripting language used to create scripts in Altium Designer. It provides details of the VisualBasic Scripting statements, functions, and extensions that are supported in the scripting system. Also in this reference: VBScript Statements VBScript Subroutines and Functions Using Form Components with VBScript The VBScript Language The Visual Basic Scripting …
Parent page: VBScript Using Components in VBScript Forms Although Forms and Components are based on Embarcadero Delphi's™ Visual Component Library (VCL), the Altium Designer Delphi-based Tool Palette is still used to drop Controls on a form when using VBScript. Also, event handlers are generated and code is written using the VBScript language, regardless of the Form/Component Delphi roots in…
The common function statements used by the DelphiScript language are covered below. The range of DelphiScript functions are presented in sections for FileIO routines, Math routines, String routines, and Extension routines. Calculating Expressions with the Evaluate Function The built-in function Evaluate interprets a string containing a valid mathematical expression during runtime and a result is…
DelphiScript Statements A statement in DelphiScript is considered 'simple' when it does not contain any other statements. Examples of simple statements are assignment statements and procedure calls. Simple statements: X := Y + 10; // assignment ShowMessage('Hello World!'); // procedure call A compound statement consists of multiple statements. Compound statements: Begin If A > B Then ShowMessage(…
This reference covers the DelphiScript keywords used for the Scripting System in Altium Designer. The scripting system supports the DelphiScript language, which is very similar to the Embarcadero Delphi™ programming language. The key difference is that DelphiScript is a typeless scripting language. For more detailed information on the differences between DelphiScript and the Delphi programming…
Differences between DelphiScript and Delphi This section covers the essential differences between the DelphiScript scripting language and Embarcadero's Delphi programming language, and how this applies to the Altium Designer API. The Altium Designer scripting system uses untyped DelphiScript language so there are no data types in scripts. Although you can declare variables and their types, and…
Conditional Statements The main conditional statements supported by VBScript are: If...Then For Next Loop Exit For For Each Next Do Loop While...WEnd Select Case Care needs to be taken to code scripts that avoid infinite loops — that is, ensuring that the conditions will eventually be met. The If...Then Statement The syntax is: If Condition Then 'code Else If AnotherCondition Then 'code Else …
Altium Designer users have long enjoyed the ability to interactively view PCB designs in fully rendered 3D, which provides a unique insight into the real structure of the board design, its components and associated mechanical parts. There are significant advantages in being able to bring this 3D capability to those outside the immediate design team, such as fabrication and assembly houses, and…
The Company Dashboard Authentication page allows Company Account Administrators to configure and enable Single Sign-On (SSO) capabilities for your Company Account and includes support for SCIM (System for Cross-domain Identity Management) user and group provisioning, which automates the exchange of identity data between your company and its Identity Provider (IdP). This backend configuration…
Get Started