Design Tooling - Sketching by Computation

Return to front page

 
 

Information

Introduction

 

Computer programs tend to become quickly huge and complex. The current solution for this problems is founded in the idea of modularization. There are two basic methods for doing this: cutting code into chunks with common topic and describing processes as driven by objects that know about their properties and methods. Both of these tactics help a little bit but still because it is difficult to slice problems into sub-problems. The sketching by computation library contains geometric objects and functions that are usually handy to be around for not having to reinvent the wheel each time you want some simple function. I tried to make the library as readable as possible by sacrificing some performance because it seems to me that clarity and readability are more important features for building high level of abstractions.

 
 

vbscript library

The vbscript library contains a collection of the most commonly used objects and functions in computational geometry. It was developed for rhino-scripting and it is used in most examples presented in the design tooling web, but it is not limited to a single CAD platform. You can employ the geometry operations in every CAD system that uses vbscript. In order to use the library you just have to copy and paste it (before or after your code) or import it before running your script.

 
 

Vbscript among other limitations, does not allow access to binary reading and writing. While this is ok for most of the cases, it makes it impossible to read for instance a bitmap file or create an interaction link with another software or hardware. For these reasons there was a dynamic link library (aka dll) developed which extends the language capabilities by allowing binary reading and writing into files and the serial port. In order to employ this capabilities and use the file, serial, bitmap and wave function of the library, you have to install the executable dll. For more information read the "readme.txt" file in the library bundle.

   
 

Download the vbscript library

 

Online documentation

 

Scripting Server Source Code

   

lisp library

The lisp library is a derivative of the vbscript library that was ported to lisp for applications in the autocad environment. Unlike the previous library which is decomposed in file modules, this one is contained in a single file that you can copy and paste.

   
 

Download the lisp library

   
   
 

Return to front page