SetDwgProp

SetDwgProp(KeyWord: stringa, str: stringa) → booleano

Imposta una property del file DWG.

In ingresso vuole 2 stringhe (keyWord e stringa) che possono essere sia standard LUA 4 che unicode.

Se str è nil cancella la custom property.

Ritorna 1 se l'operazione è andata a buon fine, altrimenti nil

 

Esempio 1. Esempio SetDwgProp

-- ATTENZIONE: può causare crash se il disegno non è stato salvato su disco.
-- Verificare che CurrentDwgName() non sia nil prima di chiamare.
local autore = GetDwgProp("Author")
SetDwgProp("Author", "QS Informatica")