2024-12-09
07:47 PM
- last edited on
2024-12-11
04:50 AM
by
Laszlo Nagy
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!
Operating system used: Windows Windows 10 - Intel Core i7-9700 3GHz - 32Gb
2024-12-11 05:03 AM - edited 2024-12-11 02:50 PM
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
2024-12-11 08:17 AM
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 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
a week ago
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
a week ago
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.
a week ago
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.
a week ago - last edited a week ago
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)
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.
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
a week ago
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 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |