Erfan-Shooraj / ifc2b3dm

MIT License
70 stars 35 forks source link

Question regarding downloading the 'project json' #1

Closed sellingsolutions closed 5 years ago

sellingsolutions commented 5 years ago

What do you mean when you say 'download directly from bimserver' ?

// Get the Project Json
            Long roid = client.getServiceInterface().getTopLevelProjectByName(PROJECT).getLastRevisionId();
            DownloadProjectJSON(client, roid); //Downloads malformed json on large models sometimes
                                                 //Better to download directly from bimserver and put in the model folder
Erfan-Shooraj commented 5 years ago

It means just launch BIMServer and download your project with Json serializer and put it in the same folder as defined in your:

public static String JSON_PATH = CONVERTER_PATH + PROJECT + "\" + PROJECT + ".json";

You only need to do it if you get malformed json from the function.

sellingsolutions commented 5 years ago

All right, it sounded like there was some alternate API that was more reliable. Thanks!