hOW TO TOGGLE BETWEEN LOAD AND LOAD DENSITY IN ELECTRICAL LOADS

I have managed to access load density parameter and check wether it read only or not using the below code.
image

Space_Element = UnwrapElement(IN[0])

Place your code below this line

doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)

ParamN = Space_Element.get_Parameter(BuiltInParameter.ROOM_DESIGN_LIGHTING_LOAD_PER_AREA_PARAM)
ParamNST = ParamN.StorageType
ParamNSTV = ParamN.AsDouble()
check = ParamN.IsReadOnly

TransactionManager.Instance.TransactionTaskDone()

Assign your output to the OUT variable.

OUT = ParamN,ParamNST,ParamNSTV,check

Hello @j.sunnyT6MVA …something here should work… Base Lighing Load on : -1 = by spacetype, 0=specified, 2= actuel…Lighing load Units: 1=load, 0= Load Density

2 Likes

Thanks.Its working.

1 Like

Great it works…no need python for that task

2 Likes