Methods
Product
getProducts
returns product data for the specified objects example usage const objectids = \["object id 1, object id 2"]; const products = viewer3d getproducts(objectids); parameters objectids list of object ids to limit result, returns all products by default type required array\[string] no return value list of product data type array\[object or null] if any of the ids in the list are invalid, the corresponding entry in the returned list will be null properties name type description ifctype string ifc type modelid string id of the model objectid string id of the object attributes map\[object] object attributes attributes only supports attribute type of globalid type map\[object] properties name type description type string type of the attribute ifctype string ifc type value string value of the attribute example \[ { ifctype "ifcwall", modelid "model id", objectid "object id 1", attributes { globalid { ifctype "ifcgloballyuniqueid", type "string", value "2 tmt90td0x9tjstsytb1j", }, }, }, { ifctype "ifcdoor", modelid "model id", objectid "object id 2", attributes { globalid { ifctype "ifcgloballyuniqueid", type "string", value "2 let78tf0x5tdsrsyht5k", }, }, }, ];