Description
Remove the value for the key “building” of the selected objects.
See also
Building, BuildingIsolate, BuildingSelect scripts.
Author and license
Script by MLAV.LAND, licensed under the GNU GPL 3 License.
Code
import rhinoscriptsyntax as rs
def assign_building_value():
# Get currently selected objects
objects = rs.SelectedObjects()
if not objects:
print("No objects selected. Please select objects before running the script.")
return
# Assign or update the 'building' key/value pair for each object
for obj in objects:
rs.SetUserText(obj, "building", "")
assign_building_value()