Forum Replies Created
-
AuthorPosts
-
Barry Kelly
ParticipantThis forum needs to be locked off now from new posts if it is not going to be used any more.
Otherwise it is just going to fill up with junk.
I assume the forum will remain open (but locked) so we can still refer to old posts.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 64bitBarry Kelly
ParticipantShame, it would be handy.
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 64bitBarry Kelly
ParticipantThanks Csilla,
All looks good again.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 64bitBarry Kelly
Participant– I cannot use a Property, as Properties cannot read object parameters
No of course not – I wasn’t really thinking there – sorry.
– I cannot use a SPLIT command, as I cannot REQUEST the Surface command in the Parameter script
Again, sorry.
I was thinking the parameter is already a name, but of course it is an index number.
You still have to REQUEST the name for that index number.I understand the reason GS gives for not being able to REQUEST the Surface name in the parameter script, but surely there’s a better way?
I don’t.
When is the material ever going to be different other than when you change the parameter in the object – and doesn’t that mean the parameter script is run?
Unless Gergely is saying it is because someone may edit the name of the surface (material) attribute in the attribute manager and then the object script is not being run to get the changed name.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 64bitBarry Kelly
ParticipantIt is happening again.
“NEW” post are showing when in fact there are no new posts at all – or is it just me seeing this?
I assume it is because spam posts have been deleted.
Can the “NEW” tag also please be removed when the spam post are removed, if that is the case.Or can we have a ‘Mark all as read’ button as suggested.
Barry.
Attachments:
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 64bitBarry Kelly
ParticipantI am not sure if I follow the exact problem here.
If your material is set by a parameter in the object then there is no need to REQUEST anything, as you already have the parameter value.Otherwise, can you create a property with an expression that splits the material name into its code and description components?
Then you can schedule that property value.
This method could be used on other elements (walls, slabs, etc.) as well as objects.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 64bitBarry Kelly
ParticipantI assume not then
Apparently not according to this post …
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 64bitBarry Kelly
ParticipantAs far as I know that is the GDL version.
Just like Archicad has a new version each year, so does GDL.
It is not always sequential.Archicad 23 = GDL 40 version 2.300
Archicad 22 = GDL 38 version 2.208
Archicad 21 = GDL 37 version 2.117
Archicad 20 = GDL 36 version 2.01When you request the version in GDL you will get the decimal number (i.e. 2.300).
I don’t know what the actual version number you show is used for (other than for internal reasons), as it does not seem possible to access it via GDL itself as far as I know.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 64bitBarry Kelly
ParticipantIt will give you the parameter name if you know the index, and it will give you the index if you know the name.
It will also give you other information such as parameter type, value and description.The example I linked to uses a range of index numbers to list all of the parameter names for those numbers.
1 = A (length)
2 = B (width)
3 = ZZYZX (height)I believe the index number is just the order that they are in the parameter list.
So if you know the position of the parameter in the list, you can use its index number to get the parameter name (and value, description, etc.).But if you are trying to do this by API then you will need to ask in the Developer section of Archicad Talk.
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 64bitBarry Kelly
ParticipantYou can use …
n = REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)
Or
n = REQUEST ("ASSOCLP_PARVALUE_WITH_DESCRIPTION", expr, name_or_index, type, flags, dim1, dim2, p_values_and_descriptions)
But the problem is you need to know the parameter name or index you want before you can request it – which defeats the purpose of requesting it?
To label all parameters of an object you might want to look at this …
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 64bitBarry Kelly
ParticipantIf they are not scripted hotspots, then in the Details section > Compatibility Options, there is an option for showing hotspots on the bounding box.
If that is already turned off (or makes no difference) you may have to script one hotspot (HOTSPOT 0,0,0) as it should then only show that one scripted hotspot.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 64bitBarry Kelly
ParticipantI guess you would have to script (in the master or parameter script) something that calculates the length of each component.
These values could then be saved to parameters and these can be listed in an interactive schedule.I have no idea what “an abacas” is, but if you need the data in an external program you can write it out as a text file.
But you really need to know what you are doing in GDL – this is not for a novice.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 64bitBarry Kelly
ParticipantAgain answered over on the Archicad-talk forum.
https://archicad-talk.graphisoft.com/viewtopic.php?f=6&t=69434
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 64bitBarry Kelly
ParticipantAnswered over on Archicad-talk.
https://archicad-talk.graphisoft.com/viewtopic.php?f=6&t=69433
It is probably better to post in one forum or the other, and then if you get no reply try the other forum.
It gets a bit tricky when the same conversation is happening on two different forums.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 64bitBarry Kelly
ParticipantThen back in the master script I used the HIDEPARAMETER ALL command with my new title in quotes after the ALL and my new variables show up and can be edited.
Yes if you add parameter names after the ALL then they will show.
HIDEPARAMETER ALL – will hide ALL parameters
HIDEPARAMETER ALL [“name1” [, “name2”, …, “namen”]] – will hide ALL parameters except name1, name2, etc.
When you say all the scripts are blank except the master script, are they all empty or are the script buttons locked.
They may all be empty as the master script is CALLing another macro that has al the scripts.
The GS objects do a lot of CALLing other macros so it can sometimes be a bit tricky to follow exactly what is going on.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 -
AuthorPosts