External lighting calculations

Hi, have anyone tried to made a dynamo script to calculate the lighting lux levels for external lighting fixtures? (similarly as done in DialuxEvo etc) And to set up automatically the columns/fittings layout spacing to get a demanded lux level in given area?