Forum Replies Created
-
AuthorPosts
-
Gergely FehérKeymaster
Hi Phil,
GLOB_SCALE and GLOB_VIEW_TYPE can not be used in parameter script. Parameters of any object must not depend on the view, as they can appear on many different views with different scales, and enabling dependencies on those 2 globals would cause inconsistent behaviour and parameter settings on placed instances.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterI think you can not reach that from GDL. Why do you need that? If an object is not needed on a story, AC simply won’t show it…
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterZone always adds a rectangle to the zone, with the width equals with your “A” parameter, and the depth is calculated from the sill depth and frame thickness. You can not change it from GDL, so it won’t be correct in many situations.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi Denny,
It’s not a single problem, it is adding a new function to the standard library. This should be done with the proper workflow as you mentioned first, there is no other solution, teher is no migration between duplicates…
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterYou can not reach the graphic override’s pen from a GDL object.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterSorry, I changed to ii and jj, I hope it helps. (The forum engine stoles the single i char in square brackets, as it thinks is is an italic definition for text formatting.)
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterI tried wtih the following code in a labels’ 2d script:
dim p_values_and_descriptions[][] n = REQUEST ("ASSOCLP_PARVALUE_WITH_DESCRIPTION", "myParam", name_or_index, type, flags, dim1, dim2, p_values_and_descriptions) for ii = 1 to vardim1(p_values_and_descriptions) for jj = 1 to vardim2(p_values_and_descriptions) text2 jj, ii, p_values_and_descriptions[ii][jj] next jj next ii
This code writes both the integer value and the description to the floorplan view.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHere is a sample about text rotation: https://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymastern = REQUEST{2} ("Building_Material_info", name_or_index, param_name, value_or_values)
Returns information in the given variable(s) on a parameter of the specified building material. Expression returns 0 and contains dummy return values (emtpy string or 0) if used in parameter script, causing additional warning.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi,
It seems to be a bug, I added it to our bug database.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHere you can find some examples about STR: https://gdl.graphisoft.com/gdl-basics/advanced-text-handling
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterIt seems your calculated area is a number, which you can’t add to a string. You can create a string from a number with the STR function.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterThanks for the responses, you’re right, it’s a bit more than a useless warning. For the first check, it seems we can correct it for the next main version.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterI checked the request with a simple script in ac20&21 – it works the same way, gives a warning instead of just returning zero… For me it seems to be a bug, I add it to our bug database, to eliminate the warnings from attribute checking requests (it seems other similar requests are affected too…). If this problem is more than a “useless warning” in your objects, please send me some details in mail, to be able to raise the issue’s priority.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterCan you attach a test libpart, and tell me which AC version you are using?
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
AuthorPosts