2020-11-04 08:41 AM
2020-11-04 08:51 AM
2020-11-04 09:40 AM
Barry wrote:Hi Barry,
How do you change the height of the chair object?
You have to schedule that object parameter.
So if the object parameter allows you to set the height '700', '900' or '1100', then you can schedule that parameter.
But if you set the height in the object by 'height 1', 'height 2' or 'height 3' or something similar you will not have an actual height parameter to schedule.
Basically if there is a parameter in the object that shows you the actual height you can schedule that.
If the actual height is not shown in the object parameters then you are out of luck.
Unless you want to create a Property with an expression formula to calculate the height you want to see.
Or edit the object to create a usable parameter.
Barry.
2020-11-04 10:09 AM
Mats_Knutsson wrote:
Thing is I have many objects written in different decades...by different persons/companies... The example chair has its height parameter in "seat height" while another use regular ZZYZX etc.
2020-11-04 10:17 AM
Barry wrote:It makes sense yes but the expression is kind of the same as using schedules and picking the crucial parameter from every object that doesn't use "standard" definition. The template is supposed to be a plug-and-play which means no need for any of our Archicad support group. I think I'll need to make it mandatory to enter configuration in a property (to some extents I can pre-set this in the favourites). The interior architects need freedom and since we don't know what kind of objects we'll use a dumb property is the only way to go.
Mats_Knutsson wrote:
Thing is I have many objects written in different decades...by different persons/companies... The example chair has its height parameter in "seat height" while another use regular ZZYZX etc.
Tricky problem.
Ideally you will want all of the objects to have the same parameter so it can easily be scheduled.
Is it possible to amend these objects?
I think that would be easier than playing with properties with expressions.
If the heights are set in different ways in each object, then it will be messy to create a property with expressions to create a single common property that all of these objects can have associated to them.
The expression will need to identify the library part name (LPN) (which it can do).
Then if LPN = object_1 the height property = ZZYZX.
If LPN = object_2 then height property = seat height parameter.
If LPN = object_3 then height property = some other parameter.
It will need to filter through all objects to set the height property correctly to match which ever parameter it is set by.
I hope that makes sense.
Barry.
2020-11-04 10:50 PM
zzyzx = seatHeight parameters zzyzx = zzyzxIf the object is locked then you wont be able to do this, however, I doubt that someone who is not intelligent enough to use the correct height parameter in their code would care to protect their code. where does the object come from?
2020-11-05 07:49 AM
Kristian wrote:Infinite objects! Thumbs up
Like Barry I would advise editing the GDL code by just adding the following to the master script:
assuming the "seat height" parameter is "seatHeight" or similar.zzyzx = seatHeight parameters zzyzx = zzyzxIf the object is locked then you wont be able to do this, however, I doubt that someone who is not intelligent enough to use the correct height parameter in their code would care to protect their code. where does the object come from?
Perhaps I should be creating an "Infinite Furniture" object that works with manufacturers content in the same way "Infinite Openings" does.