Introduction
In this module we like to introduce the concept of programming. You will create 2D and 3D intelligent CAD-objects. We will not draw them. We try to describe them by arithmetic expressions, numbers and variables. Starting point are selected graphic patterns which we try to analyse and define the specific composition rules. Like a recipe, you will write down step by step how the pattern is built up starting from a blank sheet. This joins the concept of algorithms. "An algorithm is a finite set of well-defined instructions for accomplishing some task which, given an initial state, will terminate in a corresponding recognizable end-state. Algorithms are essential to the way computers process information, because a computer program is essentially an algorithm that tells the computer what specific steps to perform."
In a second step we will program with the scripting language Vector-Script the investigated sets of rules. By the integration of parameters the generation of many variants in short time are possible. Changing the values leads to unexpected results.
Keyword: Parametric CAD
Parametric means related to one or more parameters. Practically speaking, the user can modify the value of the dimensional parameters. Distances, angles and rays can all be set, producing corresponding variations to the geometric entity to which the parameter refers and generating modifications in the entire CAD design.
Keyword: Scripting Languages:
Scripting languages allow you to define parametrically-defined and intelligent objects which can be easily used and edited. CAD Scripting Languages can contain all the information necessary to completely describe building elements as 2D CAD symbols, 3D models and text specifications for use in drawings and presentations. Many application programs include scripting language tailored to the needs of the application user.
Keyword:Vector Script:
Vector-Script is the scripting language component of the Vector-Works software package. It is a lightweight programming language which syntactically resembles Pascal, incorporating many of the programming constructs of that language. Vector-Script is actually a "supset" of the Pascal language, extending Pascal capabilities with a number of API's (application programming interfaces) which provides access to the features and functionality of the Vector Works CAD engine.
Assignment 1:
Starting point of the first Assignment are selected graphic patterns which we will analyse and define their specific composition rules. Like a recipe, you will write down step by step how the pattern is composed.
Procedure:Choose eight patterns, ornaments or structures of your environment! Select your two favorites and analyse them. Find for each five patterns, ornaments or structures who focus on one of the characteristics of the choosen favorite. Present your results on the twiki.
Presentation Assignment 01-1: Fri, 03.11.2005, 11.00 o'clock, HIL E 15.1.
In a second step we will learn how to program the set of rules of your favorite pattern with the scripting language VectorScript. Variations of the pattern are easily done by integration of parameters. It is not the aim to program the pattern in detail! The pattern and its description rules should be the starting point of your transformation .
Presentation Assignment 01-2: Wed, 23.11.2005, 14.00 o'clock, HIL E 15.1
Results: ...>>
Mini-Assignment I:
Write five small scripts. Experiment with the if statement, for loop and mathematical operations like sinus and cosinus. If you like your results can be geared to the
op art.
Present each script with a small thumbnail (335x335 pixel) on your twiki page.
Mini-Assignment II:
Write a VectorScript to move one or more objects like the move tool in autocad!
Results:
You must copy the vst file into your 'RWeiterungen' or 'Plug-Ins' folder from Vectorworks e.g. C:\Programme\VectorWorks 11\Plug-Ins
Mini-Assignment III:
Make a plug-in ! Each plug-in must have an icon and should be presented on the twiki with a meaningful screenshot and descriptive short text.
Organize the 'layout' in your group and include all results from every single pesonal page in one twiki page.
Results: ...>>
Deadlines and Schedule
Check always
MAS05-06 Calendar : the page about deadlines, meetings and locations. It's the permanently moderated list and central infobase
Introduction to VectorScript
VectorScriptExamples
Links
Internal Ressources :
External Ressources: