Beispiel #1
0
    public override string ExecuteRequest()
    {
        GetMaterials materials = new GetMaterials();

        List <BIM_Service.Material> list = materials.Get(Pamareters["elementID"]);

        string response = "";

        for (int i = 0; i < list.Count; i++)
        {
            response += "{";
            response += "id:" + list[i].id + ";";
            response += "name:" + list[i].name + ";";
            response += "color:" + list[i].color + ";";
            response += "shininess:" + list[i].shininess + ";";
            response += "smothness:" + list[i].smothness + ";}#";
        }

        return(response);
    }
Beispiel #2
0
    public List <BIM_Service.Material> GetMaterialsFromElement(string id)
    {
        GetMaterials materials = new GetMaterials();

        return(materials.Get(id));
    }