I am trying tu use my first script in E3.Cable. I want to assign the length to each core from the length of the bundles. So I found this script in examples:
nNSegs = Cor.GetNetSegmentIds(NSegIds)
for ns = 1 to nNSegs
Id = Nseg.GetId
if NSeg.IsView then
App.PutInfo 0, "NSeg " & Id & " is a view"
elseif Nseg.GetLength = 0 then
App.PutInfo 0, "NSeg " & Id & " has no length!"
l = l + Nseg.GetLength
But when i execute the script, this error message is displayed:
E - Object required.: 'Cor'
Src: Microsoft VBScript - runtime error
I started with quite easy project to test the sript (see image)
What is wrong with this script?
Please sign in to leave a comment.