The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Topics specific to the scripting and development of Library Parts and Libraries using Param-O or the Geometric Description Language – GDL. (Example: How do you use “REQUEST” GDL commands?)

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy, rmasaki, Akos Somorjai, Peter Baksa, Csilla Mai

User avatar
By Moonlight
#317298
Hi Graphisoft,

Based on How to make a MEP Equipment object? and I quote the first paragraph:
The MEP Add-On functions can be accessed through the MEP_m_ConnectionsACL_4 macro object.

It happens that we as users can't find this macro, neither in the Graphisoft Installation folder, nor in the MEP Library ... just as vdentello have pointed out in his thread, MEP CONNECTION WON'T ACTUALLY CONNECT

The surprise it becomes available if you open the Dryer library part and search for it in the scripts.
User avatar
By vdentello
#317328
Moonlight wrote:
Fri Oct 02, 2020 5:32 pm
Hi Graphisoft,

Based on How to make a MEP Equipment object? and I quote the first paragraph:
The MEP Add-On functions can be accessed through the MEP_m_ConnectionsACL_4 macro object.

It happens that we as users can't find this macro, neither in the Graphisoft Installation folder, nor in the MEP Library ... just as vdentello have pointed out in his thread, MEP CONNECTION WON'T ACTUALLY CONNECT

The surprise it becomes available if you open the Dryer library part and search for it in the scripts.
The answer to this one is Right here:
http://gdl.graphisoft.com/forums/topic/ ... nt-connect
Complementing what @moonlight said, consider mentioning a few things more clearly on the topic, like the subtype issue that i had with the object or even that if you want a "45 Degree" connection for example you'll need to use 2 Vectors for direction with values of 0.707107 for it to work, otherwise it'll distort the connection.
User avatar
By Moonlight
#317330
@vdentello

Thank you ... and I invite you to read this thread as this one was made to ask Graphisoft to improve their manuals.
User avatar
By Peter Baksa
#317818
Moonlight wrote:
Sun Aug 23, 2020 7:32 pm

For this post issue, it's going to be adding a side/marginal note about Parameter Arrays - Parameter Script - graphical user interface - & n = APPLICATION_QUERY ("parameter_script", "firstoccasion_in_progress", isFirstRun)

The note:

- When working with inter-related parameter arrays that are exposed (or shown in) in the UI that may be updated by adding an index outside the predefined bounds, it is expected that some (or all) the arrays that needs to add a column (or row) may not take effect even when the script is correct.

For those issues, copy the parts of script that updates the parameter arrays to the Master Script.
Hi, could you write a more detailed example about what the code was trying to do when the update wasn't effective?
User avatar
By Moonlight
#317844
Hi Peter,

Thank you for replying, right now I don't have an example, but when I get one I will mention you
User avatar
By Moonlight
#318600
Hi there,

There is a note that I believe that Graphisoft should include for the VALUES function

Note:
VALUES will not accept a unique negative value for parameter assignment/initiation. Negative values used in VALUES function must exist within a multiple selection of possible values or with in a range of values, whether all values were negative values or not.
such as in the following example

For those cases use PARAMETERS function
User avatar
By Peter Baksa
#318602
This sounds like a bug, values doesn't accept the first value to have a negative operator. Please use this as a workaround:
Code: Select all
v = -1
values "p" v, -2 ...
or
Code: Select all
values "p" 1 * (-1), -2 ....
User avatar
By runxel
#318603
Peter Baksa wrote:
Wed Nov 04, 2020 1:07 pm
This sounds like a bug, values doesn't accept the first value to have a negative operator.
This bug is there since the dawn of Archicad... At least I've found references to that for version 9 already :)

BTW: the following is much easier on the eyes:
Code: Select all
values "p" 0-1, -2 ....
User avatar
By Moonlight
#318607
@Peter Baksa @ruxel

I didn't expect that at all, thank you all for you suggestions ...

but i don't think this is to be a bug in the pure sense of the definition cause the VALUES function can work perfect with it's first/only option is a negative value in the following form

Code: Select all
values "Param", -1
the comma had made it work

@Peter Baksa

On the other side i found a real bug with VALUES function in the following case
Code: Select all
 values "Param", -1, 
if you used the "Check Script" in the GDL editror, the editor will not find the last comma as a violation of GDL's grammer.
User avatar
By Moonlight
#318769
Hi Graphisoft,

I have been revising the TUBE function definition and help, where it explain with a special emphasis about the V-axis with the following quotes

TUBE n, m, mask,
u1, w1, s1,
...
un, wn, sn,
x1, y1, z1, angle1,
...
xm, ym, zm, anglem


and

V axis: approximates the tangent of the generator curve at the corresponding point.


As you will see in the manual, although the V-axis is explained, we don't know where to put it in the Tube function or what's its implication on the results we may get
  • 1
  • 4
  • 5
  • 6
  • 7
  • 8