Could I get a nudge forward? Given this code as a base, how do I return the number of objects on the selected layer? Currently, I get "no static 'CadLayer' in class 'CadLayerManager'". I've tried several combinations of this property structure with the same results.
Code: Select all
-- VECTRIC LUA SCRIPT
function main()
job = VectricJob()
layer = job.LayerManager:GetActiveLayer()
objects = CadLayerManager.CadLayer.Count
MessageBox ("objects=" .. objects)
return true
end