entget

entget(entity: Entità | SelectionSet)

Legge la lista di associazione di un'entità <ent>. Meglio usare <ent>:entget()

Esempio 1. Esempio entget

local ds = NewDrawStyle()
ds:line(Point(0, 0, 0), Point(10, 10, 0))
local ln = entlast()
local tbl = entget(ln)
print("\nentget tipo = " .. type(tbl) .. " count = " .. tostring(getn(tbl)))
for i = 1, min(3, getn(tbl)) do
  local item = tbl[i]
  print("\n  [" .. tostring(i) .. "] group " .. tostring(item[1]) .. " = " .. tostring(item[2]))
end
ln:erase()

Created with the Personal Edition of HelpNDoc: Effortlessly Support Your Windows Applications with HelpNDoc's CHM Generation