Forum Replies Created
-
AuthorPosts
-
Gergely FehérKeymaster
I think we corrected it, please check.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterYou need to set/use the AC_MarkerSize parameter correctly, it will shorten the line to the proper length.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterNo, it is not possible.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterGLOB_HSTORY_ELEV is a project dependent global variable, so it is not allowed to use it in parameter script. In gdl elements there is no workaround for it.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterif WALL_SKINS_PARAMS[ i][2] # 0 then –> if abs(WALL_SKINS_PARAMS[ i][2]) > 0.0001 then
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterThe returned parameters is just a “simple value list” in the specified order – it is not really “parameters”, just variables in the scripts.
You need to declare the list of values to be returned at the end of the called macro’s script, like this:
end value1, value2, value3
Then in the caller object, you need to specify the variables to where you want to fill in these values:
call “samplemacro” parameters …..
returned_parameters variable_receives_value1, variable_receives_value2, variable_receives_value3I hope it helps, if not, please upload a sample which you can’t solve. (Upload in zip please, as gsm files are forbidden by the hosting service provider of this site.)
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymaster[ i ] doesn’t show up for me in the posts (Chrome, Windows). I thought it’s a problem with the code block in my post, but plain text is wrong as well.
It is caused by the BBCode formatting: [ i ] stands for italic, read more here: https://gdl.graphisoft.com/forum-functions
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterYou need to use a single request with the exact number of variables, to get all the physical properties in one step:
n = REQUEST{2} (“Building_Material_info”, “Brick”, “gs_bmat_physical_properties”, thermalConductivity, density, heatCapacity, embodiedEnergy, embodiedCarbon)
You can not split it up to 5 requests…Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterCan you please specify the problem a bit deeper? What dou you exactly want to do?
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi,
It is caused by the bad design of the STR command, which can not be corrected, due to compatibility issues. Sorry, but I can’t help with a quick fix or a real workaround. Maybe you can try with usign spit command, but I’m really sure that can fit all the workflows you need.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi Michael,
If the data is not changing too often, I think I would create a macro, which stores the possible value sets and return them to the caller doors/windows with returned parameters. And if there is a need to change the stored data, I would regenerate the macro – maybe I would write a python script to create a macro in xml format from the data source, and then compile the macro with LP_XMLConverter. After that, you can change the macro in the project libraries.
This solution would be much faster in AC, than always reading xml files in paramscript. Of course, it needs some more work, when there are changes.Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterMaybe. But not in the near future…
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterJoachim,
As I know, there is no exact limit for reading xml lines, but according to my experience, it can be extremely slow with big amounts of data. If you really need to use so big files, then I suggest to create an addon, that can handle the data files, or create a script that converts the data to a macro (if it is possible…).
Can you tell me more about the development details (you can send it in mail, if it can’t be published here…)
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi,
Parameter changes from interactive schedule will initiate a paramscript run in the selected object(s).
The best way of reading an xml file depends on many things:
– how often the source will change,
– will it be a part of the library, and loaded together with the objects,
– and the purpose of using external data…You should tell me more about the details, to be able to suggest a solution.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterPlease use the RSS instead of the mails.
You can read more here.Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
AuthorPosts