ArchiFrame Manual ENen · Published 13 Nov 2026

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:

  • •

    Cover, listing for weatherboards.

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:

  • •

    collectspecial, bit mask of what special planks to collects. Elements having parameter iSpecialType zero are always collected. Default=2 (include just combined ones)

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:

function FilterPlank(sGuid)
  local sUsage
  ac_objectopen(sGuid)
  sUsage=ac_objectget("iUsageId")
  ac_objectclose()
  if sUsage==nil then
    return false
  end
  
  return string.upper(sUsage)=="BUCK"
end

nSorting

Sorting criteria:

  • •

    0, by plank ID.

  • •

    1, material id, height, thickness, ID, length.

  • •

    2, material id, height, thickness, length, ID.

nAllowSameId

Many different planks have the same ID:

  • •

    0, no (default).

  • •

    1, may have.

nCollectElem

Collect all planks related to the elements (use possible selection to collect every plank from elements related to the selection):

  • •

    0 or missing, no (default).

  • •

    1, collect all.

nCollectType

ArchiFrame collects planks only to table gtblPlanks. This field is used to change that.

  • •

    Missing, default and collect planks only.

  • •

    0, don’t pre-collect anything.

  • •

    1, collect planks.

  • •

    4, collect boards.

  • •

    1+4, collect planks+boards.

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).