cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Library part maker - resizing objects

Rogerio M
Enthusiast

Hello everyone,

I've recently started using the Library Part Maker (LPM) to create custom objects for my firm. So far, I've made good progress using Graphisoft's manual and successfully created some objects. However, I've encountered an issue: I can't resize the objects after saving them.

When I open the object settings, the input fields for parameters like A, B, or Zzyzx are missing.

Does anyone know why this might be happening or how I can make these fields appear in the settings? Any help would be greatly appreciated!

 

RogerioM_0-1733769984227.png

 

Operating system used: Windows Windows 10 - Intel Core i7-9700 3GHz - 32Gb

Windows 10 Pro, Intel i7-9700 3.0GHz, 32Gb, RTX 2060
Archicad 28 BRA 4100
7 REPLIES 7
Laszlo Nagy
Community Admin
Community Admin

I think this could be caused by the HIDEPARAMETER command in the Parameter Script of the generated Library Part.

The HIDEPARAMETER command would be used with the A, B, and ZZYZX parameters.

So, in the Parameter Script look for this:

 

HIDEPARAMETER "A", "B", "ZZYZX"

 

or this:

 

HIDEPARAMETER ALL

 

The first will hide those three parameters (Length, Width, Height, respectively) from the User Interface, the second will hide all parameters.

 

For more detailed info, see:

 

https://gdl.graphisoft.com/reference-guide/the-parameter-script

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac29
Lingwisyer
Guru

If library parts created by LPM have the same 2D and 3D script structure as Save-As ones, commenting the lines highlighted by Laszlo will do the trick. If it does not, you could possibly amend the two scripts yourself by adding the relevant MUL commands to the start of them.

 

!2D Script
MUL2 A/[original width], B/[original depth]

!3D Script
MUL A/[original width], B/[original depth], ZZYZX/[original height]

 

 

Ling.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Hi all, 

 

I share the issue with Rogerio. I have tried to follow both workarounds however there is still something wrong. If I delete all HIDE and LOCK functions, the A, B, and ZZYZX Values are visible in UI, however it is not possible to change them. (attach 1)

 

If I add the MUL commands, the object disappear at all. (attach 2)

 

Could you maybe share more specific descriptions of the workarounds please? 

 

All Best, 

Jakub

I can't quite see in the video (it is to small on my screen) but you need to get rid of the square brackets.

So you would just have something like ,,, A/0.75

0.75 being the original width of A for your object.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

I see that you removed both the LOCK and the HIDEPARAMETER commands from the Parameter Script.

However, I can see there is a macro call there as well.

I suggest that you open the DetLevelFunctionMacro macro to see if there are any more of those LOCK and the HIDEPARAMETER commands and delete them, if there are any.

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac29

hi,

in reply to Jakub Nohejl - arch

 

The problem is in the master script,

custom values are made,(step 1)

custom_A =0.600047

custom_B =0.447772

custom_ZZYZX=0.235546

 

then a,b,zzyzx are set to those values ,(step 2)

A = custom_A

B = custom_B 

ZZYZX = custom_ZZYZX

 

then the parameters script writes those values back into the stored values of the object,(step 3)

parameters A = custom_A

parameters B = custom_B 

parameters ZZYZX = custom_ZZYZX

 

remove (step 2) and (step 3)

AllanP_1-1764879016820.png

 

 

Note:

Hideparameter "A" removes "A" them from the list/ info pallet

 

Lock "A" turns the content of "A" grey and makes it so it cant be edited

 

Parameters A = setvalue will seem like they are edited, but will immediately overwrite the value back to setvalue after you change it.

 

Hideparameter ALL "A","B","ZZYZX" removes all from the list/ info pallet except the parameters listed after the ALL command, so A,B,ZZYZX would be shown in this case, but all the other parameters would be hidden.

 

also

For Lingwisyer script,do not put the values in Square Brackets so 

mul2 a/[600],b/[448] will not work,

that is why you get errors when you save it.

Square Brackets are used for array positions,

Round Brackets should have been shown.

Units shown in GDL are expressed in meters,

so 600 = 600m,

and 0.600 = 600mm

so mul2 a/(0.600),b/(0.448) would work.

AllanP_2-1764880673699.png

The action center will point you to the log which will tell you what lines of the script are not working,

see the red dot in the tab above,

follow the red dot,

go to the report that is red in the action center...

 

 

 

 

you could try changing the Lingwisyer script to use the predefined values in the master script for the size in (Step 1), after deleting (Step 2) and (Step 3) :

!2D Script
MUL2 A/custom_A, B/custom_B

!3D Script
MUL A/custom_A, B/custom_B, ZZYZX/custom_ZZYZX

 

I hope this helps

I have been using ArchiCAD continually since ArchiCAD 4.5
Member of Architalk since 2003, but missed the migration from Architalk to Graphisoft Communities. Melbourne, Australia
Lingwisyer
Guru

Sorry about the confusing square brackets. Was just using them like you would when typing a user defined variable in system pathing or what not (c:\users\[username]\...) where the text within the brackets is an explaination of what to replace it with. Should really stop doing that when it comes to coding related things...

 

Ling.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Setup info provided by author