Working with Resources
Resources are geometrical objects (e.g. lines, circles, solids), bitmaps and subscripts (external SmartParts), which are needed during execution of a script. Resources are either saved in the SmartParts object itself (local resources) or in the office folder (external resources).
The following mapping applies:
- Geometrical objects: Geometrical objects are 2D or 3D Allplan objects like lines, circles, solids. They are always local and stored within the SmartPart. Geometrical objects are used inside the script with the PLACE or PLACE2 command.
- Bitmaps: Bitmaps can be used as png, jpg, tif, gif bmp. They are stored locally within the SmartPart or in ...\Std\SmartParts\Bitmaps folder. Using bitmaps as external resources helps you to keep the size of the SmartPart small and is improving performance. On the other hand, if you forward your SmartPart to another person you have to make sure that you deliver also the external bitmaps together with the SmartPart.
- Subscripts: Subscripts are referenced *.smt files. They are always stored in ...\Std\SmartParts folder. Subscripts are used inside the script with the CALL command.