AngelCAD Forums

User Forums => General Discussion => Topic started by: Carsten Arnholm on 2019-05-04, 10:43:24

Title: User libraries
Post by: Carsten Arnholm on 2019-05-04, 10:43:24
AngelCAD contains a number of built-in features, but since it is based on a scripting language, i.e. AngelScript (https://www.angelcode.com/angelscript/sdk/docs/manual/doc_script.html) with AngelCAD language extension (https://arnholm.github.io/angelcad-docs/docs/annotated.html), any user can create reusable *.as files and store them under the AngelCAD libraries folder.

To detect where the AngelCAD libraries folder is on your computer, use the menu item File -> Show Libraries Folder, which will open the file browser in that location. To create a new library called "mylib", you create a subfolder "mylib" and put your *.as files there. Then, from any other AngelCAD *.as source file, you can refer to your library using an #include statement. If we assume you created a file testing.as, it can be referenced as follows

#include "mylib/testing.as"

As an example of an existing library, see https://github.com/arnholm/aclib . If you open the libraries folder, and from ther issue the command
$ git clone https://github.com/arnholm/aclib

You can then use the solid trimming feature via an #include from another source file

#include "aclib/trim.as"



Title: Re: User libraries
Post by: Carsten Arnholm on 2019-05-28, 23:19:03
aclib also contains features for 3d font generation as shown in this example

https://www.thingiverse.com/thing:3606649