Home › Forums › General discussions › Using updated parameters in properties script
- This topic has 6 replies, 3 voices, and was last updated 5 years, 3 months ago by
David Shorter.
-
AuthorPosts
-
-
August 6, 2018 at 23:50 #4207
Matt Andrews
ParticipantI would like to create a number in the 3d script for use as a quantity in the properties script.
Currently I’ve created a parameter of length type and I give it a new value using the parameters command in the 3d script
parameters totalBattenLength = totalBattenLength + ZZYZX
I then reference the
totalBattenLength
parameter in the properties scriptCOMPONENT "batten", totalBattenLength, "m"
However in the component list, the length for batten is always zero.
How do I update this value properly?
-
August 7, 2018 at 02:10 #4208
David Shorter
ParticipantHi Matt
Not sure what you are actually trying to do. What sort of object are you trying to create?
Probably it would be easier to create a property and achieve totals when you SCHEDULE.
Usually the ‘update’ occurs when you schedule.
Provide a bit more info and we will try and help -
August 7, 2018 at 02:21 #4209
Barry Kelly
ParticipantYou can’t set parameter values in the 3D script.
This can only be done in the parameter and master scripts.You can change a parameter value in the 3D script, but it will only be available from that point in the 3D script only.
It can not be used in any of the other scripts.Barry.
Versions 6.5 to 22
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit -
August 7, 2018 at 22:06 #4213
Matt Andrews
ParticipantI’m trying to create objects for a prefab building system.
The objects represent elements of the system which are wall, floor and roof.
The wall elements have battens, moisture membranes, etc. I’ve now added those components via the components list within the object. I’d like to update their quantities when the objects are resized or options are changed.
For example, the wall object can have battens on the inside, outside or both. It seems like the best way to calculate the quantities of the battens is when they’re being drawn as then you can update some number every time you draw a new batten. However it seems like there is no way to share variables between scripts.
I’m looking for some way of sharing varibales or parameters between scripts that can then be accessed by the component list.
Is this the correct approach, or is this not possible?
-
August 8, 2018 at 01:02 #4216
David Shorter
Participantits possible but I think you are approaching it the wrong way. Do you have any ARCHICAD files you could post to illustrate what you have done or what you are trying to do.
-
August 9, 2018 at 01:36 #4220
Matt Andrews
ParticipantI’ve attached the object I’ve started working on.
AS you’ll see, I’m trying to have horizontal or vertical battens and be able to measure the length of all battens in the object.
-
August 9, 2018 at 03:43 #4221
David Shorter
ParticipantHi Matt
No attachment? or at least I cant see it
pls send to david.shorter@internode.on.net
-
-
AuthorPosts
- The forum ‘General discussions’ is closed to new topics and replies.