16 Listings
16.1 Hundegger cnc-file
File extension is bvn. The planks will get the ID like below:
- •
In case of fully numeric ID, it will be copied to Hundegger's number column and Part column will contain the set usage type:
- •
If the ID contains non-numeric digits, ArchiFrame will assign consecutive numbers to the number columnd starting from one. Part column will contain ID (usage type):
16.2 Editing listings
Note! Always edit a copy of the data-folder, for example C:\ArchiFrame\Data_own. This way the changes will remain during installation of updates.
The file to be edited is ArchiFrameListing.lua inside the data folder (see Lua scripts). In addition to the default listing there are special listings defined in global variable gtblListings. One item in the table contains fields:
Field | Description |
strName | Name of the listing. |
strUIClass | Special listings can be invoked from another place in the UI other than the default listing tool:
|
strPreCollectFunc | Called before planks/boards are collected. Function may show settings dialog and affects how ArchiFrame collects planks & boards. Returns nil=cancel the process or a table having fields:
|
strOnInitFunc | Function that is called at the start of listing. |
strOnSaveListFunc | Function that creates the actual listing. |
strFilterFunc | Function that filters planks to collect, "" = no filter. For example: |
nSorting | Sorting criteria:
|
nAllowSameId | Many different planks have the same ID:
|
nCollectElem | Collect all planks related to the elements (use possible selection to collect every plank from elements related to the selection):
|
nCollectType | ArchiFrame collects planks only to table gtblPlanks. This field is used to change that.
|
ArchiFrame also sets Lua-global gbPlanksSel to tell if source for the operation was element selection (true) or not selection (false). If listing script sets Lua-global gnStatusCount, it will be shown in tool palette’s status text after the operation. Script may also set global gbCncIncludeNoCnc- to process also planks having parameter icnc- set to zero (usually skipped).