From 260e889e296f395567fd2259d0f4db5783e661ff Mon Sep 17 00:00:00 2001 From: infeeeee Date: Thu, 17 Sep 2020 14:00:08 +0200 Subject: [PATCH] update some documentation --- revitAddinDisabler.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/revitAddinDisabler.js b/revitAddinDisabler.js index 1d0b672..402d6bb 100644 --- a/revitAddinDisabler.js +++ b/revitAddinDisabler.js @@ -203,14 +203,16 @@ function selectoption(version, tabl, data, pathvis = false) { } }) } - +/** + * change addin to disabled or enabled + * @param {string} version Revit version + * @param {number} addinnr Number of addin in the list + * @param {Array} fullobj All addins as objects + * @param {*} forcedStatus "enabled"|"disabled"|false: force enable/disable all + * @param {boolean} last Last element in enable/disable all + */ function chAddin(version, addinnr, fullobj, forcedStatus, last) { - //change to disabled or enabled - //version: revitversion - //addinnr: number of addin in the list - //fullobj: all addins as objects - //forcedStatus: "enabled"|"disabled"|false: force for enable/disable all - //last: boolean: last element in enable/disable all + var currObj = fullobj[addinnr] var np var targetStatus