I’m trying to find certain parameters (volume, material) in the sent revit objects and then do some calculations and then send it back as a new parameter field. But I’m being stumped by the first step…
I am not a Python expert but afaik, you can use BaseObjectSerializer, if you want to serialize your base object into a JSON string. This returns a tuple containing the object id of the base object and the serialized object string.
Let us know if it helps.
from specklepy.serialization.base_object_serializer import BaseObjectSerializer
serializer = BaseObjectSerializer()
serializer.write_json(your_base_object)