We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2022-08-08 07:39 AM
Hi,
I have a label, that has a parameter that I don't want to be modified when I use the eyedropper / syringe. Is this possible? I still want this parameter to be editable by the user though, so I can't force a default a value through VALUES or PARAMETERS.
I'm wondering if it's possible to get the previous value of a parameter when it gets modified by the Eyedropper/Syringe and then push the old value back into the parameter.
Thanks,
Scott
2022-08-08 08:16 AM
You should be able to edit the Element Transfer Settings. You have to set them up and you can configure any amount of ‘rules’. When you click alt and mouse click to inject the parameters, hold the mouse button and a little button will pop up saying which Element Transfer Setting you have deleted. Most likely it says ‘Transfer All Settings’ click that button and you can change to any of the others you have predefined. If you accidentally inject all properties just undo as you would normally.
2022-08-08 08:18 AM
2022-08-08 09:04 AM
Element Transfer settings do not apply to individual parameters of an object or label.
But as the label is a scripted object, you can set the parameters to not transfer.
I can never remember what it is called, but the 'U' button in the parameter list, prevents the values of the parameter being passed along when you pick up / inject settings.
Barry.
2022-08-09 10:00 AM
Sadly this is exactly how it does not work. 😞
Or rather, Archicad is again really inconsistent.
The undocumented "U" parameter flag tells Archicad, that this parameter has to be treated differently and was invented to have the possibility to have the same parameter name in different objects, but meaning different things.
The only place where it comes into play is in the object dialog. It is possible to inject settings there (no eye-dropper, only syringe in the left side of the dialog). If you do this, and the object you are injecting to (!) happens to have a parameter with the same name, but the "U" flag, this parameter value will then not be injected/overriden.
So, in all in all, this thing does not do what everybody thinks it does, and it also proves a bit unhelpful in that regard. And as you would expect from Archicad, it is opaque and unintuitive why the same thing works different depending on if you're in the dialog or not. Already argued with them too much about this, but the devs are just to dense to comprehend that the user doesn't care why this is. It just makes no sense.
2022-08-09 10:46 AM
@runxel , you are correct and I was mistaken in my thinking of how this works.
This only works when transferring settings when in the object settings dialogue.
So when you have an existing object and you want to replace it with a new object, with all the same settings (if they have those settings in common), except those tagged with the 'U' flag.
Select an existing object, open the settings dialogue, find the new object you want it to become and CTRL+ALT (inject) the properties into that object.
It does not apply when transferring settings from one object to another.
Barry.
2022-08-10 03:42 AM - edited 2022-08-10 03:42 AM
🤦 Looks like GDL was luring me down the wrong path yet again! Guess I'll just have to hardcode some default options based on the element type.
Thanks so much for your help to clarify @runxel and @Barry Kelly
Totally agree that the logic is totally counterintuitive and I can't see any reason why the Unique setting couldn't also apply to the eyedropper / syringe action.
2022-08-10 12:43 PM
For what it's worth (not very experienced GDL coder): I generally define a few parameters in script for this reason. At least I only have to change one instance in the script and the code can stay the same.
You are probably already doing this, but just incase 🙂
2022-08-10 10:44 PM
Let me tell y'all one very crude tip:
You, foremost @scottjm, can circumvent this issue with GLOB_INTGUID.
I've used it in some of my objects where I wanted them to "reset" when eyedropping them. Works like a charm.
2022-08-11 12:21 AM
Thanks @runxel. Yes I had been messing around using GLOB_INTGUID to set the param value I was wanting for a specific element type for it’s first placement which was kinda working. So will attempt to modify that to get it to react to a syringe to reset to a default for each element type.
I’ve been modifying the standard Archicad generic label and it was the SurfaceToDisplay param that was giving me grief. Given it changes it’s available options of available surface to display depending on the element type the label is associated too. (Wall face vs slab face etc).
But a user can also choose between outside, inside or edge face etc to be displayed so I was wanting the user selection to be able to be preserved when syringing other label configs arounds.
but alas.
thanks again!