dear all,
I have ventured the world of scripting,
diligently I have read through the Lua tutorials and find myself now half impressed and half depressed because theory and practice do not match.
I am trying to apply some of the basics learnt and get ecotect to do what I tell it to, but with scarce success...I know I am a rookie but...
Well to be more precise; I am having trouble getting a hang on the help lines that pop up when you browse the various ecotect extensions, especially how to structure the commands in a sequence...there isn't a Lua-Ecotect tutorial yet?
once I have drawn a zone with a window for example, do I have to write on the script to get model.zone or objects in order to reference those to further commands???
Say I have three separate zones with a window each, and I want to tell ecotect to choose only the windows and run VSC analysis and print results...
I have so far managed either to get it cycle through zones and get me surfaces, or to cycle through windows and get me surfaces, or get me the VSC for one window only, but it does not repeat the action for the other windows.....I do not seem able to combine the scripts up to do it all at once...
Can anyone help?
I know there are several issues here but any help welcome!
ciao
Simo

Scripting
Hello Simone,
Ah! Here we are again...remember that command line for w, x, y, z, do... ?
You will probably want to use that to go through your windows objects.
You could maybe write something where w is the object index of the window, and x to y are the object index of all your windows. Then you'll have to have the script calcultate the VSC for each object index, instead of the window object itself. of, course, you'll want to be able to define x to y prior, maybe by getting the object index from each selected windows? in fact, you may run a script by first having it selecting all window objects in the scripts, get their object indexes and run through them via the for...do command?
Just a thought.
Let me know how things go.
Best,
Olivier
scripting
Cheers for the advise.
I have managed to move a little forward now insecurely but steadily....
have encountered a different problem which is really bugging me...
let me explain firstly what i am trying to do.
For any of the windows selected in the model print in the following order:
1-the zone they are in
2-the object number
3-the total zone surface area
4-the window surface area
5-the window VSC
I have managed more or less everything, but I am having trouble at point No 2.
In fact when you run the script it outputs the first object No. twice, once in the first line of results and a once in the second line of results.
I really do not get why and haven't been able to fix this so far.
I am sending you a test model and my script; would you please see if it makes any sense, please?
Thank you,
simone
excel export
hi
Can anybody tell me, is there any other excel commands can be oprated from ecotect scripting other than cell, value, font. I mean formatting excel cells, changing the colour, comparing the values between two cells and so on. is it possible to open an existing excel file and append information in it? instead creating a new file and saving them.
Thank you
Anbusivan
Scripting
Simone,
Sorry for the delay, i have been too swamped to participate to the forum lately. I will try to look into your script and see if there is a better way to accomplish what you are after. Give me a bit of time.
Best,
Olivier
Excel export
See post