The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Discussion of non-graphical data: Properties, Property Expressions, Classifications, Interactive Schedules

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy

By gedzior84
#311123
Hello everyone!

Is there any way to change 100 schedules with one global option?
For example the font type and size is wrong in all of them - should I go to every single schedules to change these settings?
It is very time consuming.

Thank you in advance!
User avatar
By poco2013
#311136
DWilson wrote:
Wed May 20, 2020 6:24 pm
This might be a great little project for someone in python.
It would be but unfortunately the present proposed version of Python even in 24 beta 3 is so limited as to be worthless in every area except properties. I think we'll have to wait several years to have a viable product here.

IMNOHO -- By that time interest may be so low that Python may be just another unsupported "Goodie".
I hope not but looking that way??? -- Comments - anyone?

I don't mean to denigrate the present effort. The work on properties in Python is excellent, but properties alone will not make it a viable tool. Definite not a Revit "killer", if NEMETSCHEK is serious about competing?
#311147
gedzior84 wrote:
Wed May 20, 2020 3:04 pm
should I go to every single schedules to change these settings?

As far as I know, yes, this is what you will have to do.


Barry.
By gedzior84
#311168
Barry Kelly wrote:
gedzior84 wrote:
Wed May 20, 2020 3:04 pm
should I go to every single schedules to change these settings?

As far as I know, yes, this is what you will have to do.


Barry.

ARGHHH!!!
There goes another day of my work...
Thank you for your response!
By mbl
#314649
poco2013 wrote:
Wed May 20, 2020 8:09 pm
DWilson wrote:
Wed May 20, 2020 6:24 pm
This might be a great little project for someone in python.
It would be but unfortunately the present proposed version of Python even in 24 beta 3 is so limited as to be worthless in every area except properties. I think we'll have to wait several years to have a viable product here.

IMNOHO -- By that time interest may be so low that Python may be just another unsupported "Goodie".
I hope not but looking that way??? -- Comments - anyone?

I don't mean to denigrate the present effort. The work on properties in Python is excellent, but properties alone will not make it a viable tool. Definite not a Revit "killer", if NEMETSCHEK is serious about competing?
I agree, I was very positively surprised to see that Graphisoft has already implemented Python in the new version. I thought it would take some time before they actually put it in, but when I saw how limited it is, I was a big disappointment. It's great that the python is there, but it is far away from what I have expected.

But anyway, it might actually be possible to use a Python script to change Schedules at once. Just not inside of Archicad (as of today). You can export all your schedules at once as .xml files and you should be able to change these with a relatively simple Python script. Then just import the .xml files back to your project.

Theoretically it should work, but maybe someone more experienced in such data conversions will correct me...
#314665
mbl wrote:
Wed Aug 05, 2020 2:59 pm
You can export all your schedules at once as .xml files and you should be able to change these with a relatively simple Python script. Then just import the .xml files back to your project.

Theoretically, it should work, but maybe someone more experienced in such data conversions will correct me...

Exporting/Importing XML works only in the Scheme Settings Dialog. That will export the criteria and schedule fields defined for your schedules, but it does not affect the formatting of the actual generated schedules in any way.
Actually, this would be a good wish: the ability to define/save/restore default formatting (sort of like Favorites) for the various parts of generated schedules, like Value rows, Total rows, Headlines, etc. Then we could also specify which formatting a Scheme should use when generating the schedule.
User avatar
By poco2013
#314672
FYI:

Actually you can change the the font and size in a exported xml schedule file by just changing the font element field for each of the headers in the file. When you import the xml file, if it has the same name as one existing, Archicad will rename it and make a new schedule.

However, since, Graphisoft does not publish the xml scheme, doing so is extremely unwise.
#314694
mbl and Gerry,

Wow, thanks for this info, I stand corrected. I was not aware that the formatting settings of the generated schedule are also saved when exporting the Schedule Scheme as XML. Now I can see that what you guys are saying is actually possible.

Thinking about this, you may not even need Python. You can just open all those XML files in Notepad++, which gives you the ability to replace text in all open documents in a single step.
So, for example, you could replace this
Code: Select all
<Font_Type>Arial</Font_Type>
with this
Code: Select all
<Font_Type>Calibri</Font_Type>
in all exported XML files in a single step.

Of course, if this is something that needs to be done regularly, then a Python script is probably better.