Python Script to extract Property value and place in parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-08-30
04:58 PM
- last edited on
2021-09-14
09:18 AM
by
Noemi Balogh
We are trying to implement a system that reduces the potential for errors in data entry, so to acheive this we have created a property with an option list for all room names in a project along with a corresponding short-code in the format Shortcode:Room Name Then we use expressions to pull out the Room name and Short codes to use in labels, etc.
Now I would like to create room schedules showing the furniture contained within a zone grouped by zone, but the only way I can get that to work is to use the Zone Name parameter, so I want to set up a python script that will enable us to look at the Zone Name property and then copy this to the Zone Name parameter.
Thanks for your assistance in advance.
Solved! Go to Solution.
- Labels:
-
Automation (Python or JSON)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-09-09 10:17 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-09-09 11:40 AM
Would need both the pln & mod files -- Dropbox link via PM would be great
Windows 11 - Visual Studio 2022; ArchiCAD 27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-09-15 03:12 PM
Hi Gerry,
I have created a folder here for you to take a look at, containing pln and mod files of project plus the python script you sent through, modified to our needs and another I was experimenting with to redirect to the already shortened property rather than do the splitting in the python script.
Waiting to see what you make of it.
best regards
Tony

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-09-15 08:24 PM
I do see how you revision #2 would work Of course, i could be wrong, but as I understand it:
GetPropertyValues require a type (class) not a string and Elelement PropertValue value is packed with a type (class) for the value
Also SetPropertyValues should be outside and below the for loop. I believe that was my original mistake
Windows 11 - Visual Studio 2022; ArchiCAD 27
- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »