command_entpoint

command_entpoint(entità, punto: Point)

Funzione che vuole in ingresso un entità e un punto. Serve in funzione ad un altro command(taglia, filetta..) per andare a modificare l'entità passata. Se l'operazione è andata a buon fine ritorna 1, altrimenti nil.

Esempio 1. Esempio command_entpoint

local ds = NewDrawStyle()
ds:line(Point(0, 0, 0), Point(100, 0, 0))
local ln = entlast()
local r = command_entpoint(ln, Point(50, 0, 0))
print("\ncommand_entpoint(line, mid) ritorno = " .. tostring(r))
local cur = entlast()
if cur and cur:className() == "AcDbLine" then cur:erase() end

Created with the Personal Edition of HelpNDoc: Free help authoring environment