We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2004-11-19 12:18 AM - last edited on 2022-12-13 10:30 PM by Daniel Kassai
2004-11-19 12:44 AM
adambutler wrote:Perhaps someone who has looked at this specific situation can can respond. I haven't tried anything with the 'listing only' variables ... and suspect that they are just that.
For simple property scripts the output is correct. However for scripts that use global variables like WALL_LENGTH_A (ie. those which the GDL manual says are 'for listing only) this approach does not work. The 'for listing only' global variables have values of 0.
Is there a way to get component quantities from scripts that use these global variables in version 7?This is a pretty specific request. Most of us on 9 are separated from you by many API releases. If you want to PM me with a zip of your add-on and a tiny PLA (like one element that your property script attaches to), I'll take a look.
If we upgrade to version 8 or 9 will our apx be able to get the component quantities?
Even if this is available I would still like to know if the problem we encountered below is a known bug in ArchiCAD 7 and have described it below.This is a tough one, unless someone experienced it and knows the answer. I don't know that anybody tracks bugs in any release other than the current one...
In the last few weeks the save dialog box has been occasionally not working.This is suspicious, but you don't give enough information to explain if this is a problem with your system (reinstall AC?), or if it is just the project you're working on? Or is it just listings that are over a certain length? If you open an old version of the project, when things used to work for you, do they still work?
2004-11-19 05:58 AM
2004-11-29 11:34 AM
adambutler wrote:Yes, through the API
The property scripts seem like the ideal way to do estimating as each library part can contain costing details for itself. Is there any other way to cost wall lengths in ArchiCAD?
adambutler wrote:In v9 they work the same way as ArchiCAD 7; you will get 0 for those calculated values which refer to 'for listing only' GDL globals. If you'd like I can enter it as a bug. The interesting thing here is that if I define the variable this way:
Upon looking at the version 9 documentation I see that ACAPI_GetComponents is still available, and the 'for listing only' gdl global variables are also available. My problem is that I am unable to find if there is a way to get them working together, short of buying V9 and trying it.
component "my_length", 5, "m", 2 ! 2-> proportional to lengththen the calculated value is correct; whereas if the component is
component "my_length", 5*WALL_LENGTH_A, "m"then the value is 0.
adambutler wrote:You can also use the
Getting the component list through code is my ideal solution as it will save the drafters time and I can ensure that the files are saved correctly.
2004-12-02 12:01 AM