opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
171 stars 87 forks source link

BIMViews hangs loading 3d view #55

Open webdada opened 8 years ago

webdada commented 8 years ago

bimviews_loading_issue

BIMViews would not load 3d view.

Please see the screen capture and highlighted Javascript errors. It starts with error loading projectTreeWrapper. promise.chain(load(containerDiv.find(".projectTreeWrapper"), "projecttree.html", function(){

BIMViews_Doc2.docx

function Navigator(containerDiv, parent) { var o = this;

this.load = function(){
    var promise = new window.BimServerApiPromise();
    promise.chain(load(containerDiv.find(".projectTreeWrapper"), "projecttree.html", function(){
        o.projecttree = new ProjectTree($(this), parent, {}, o.selectedObjectId);
        o.sidespan = o.projecttree;
        return o.projecttree.load();
    }));
    promise.chain(load(containerDiv.find(".typesWrapper"), "types.html", function(){
        o.types = new Types($(this), parent);
    }));
    promise.chain(load(containerDiv.find(".layersWrapper"), "layers.html", function(){
        o.layers = new Layers($(this), parent);
    }));
    promise.chain(load(containerDiv.find(".classificationWrapper"), "classifications.html", function(){
        o.classifications = new Classifications($(this), parent);
    }));
    promise.chain(load(containerDiv.find(".propertiesWrapper"), "properties.html", function(){
        o.properties = new Properties($(this), parent, o.selectedObjectId);
    }));

    return promise;
};

this.resize = function(){
    var width = $(window).width() / 3 - 50;
    var height = ($(window).height() - $(".navbar").outerHeight() - $(".navbar-header").outerHeight() - containerDiv.find(".navigator .panel-heading").outerHeight());
    containerDiv.find(".sidespanWrapper").width(width + "px");
    containerDiv.find(".sidespanWrapper").height(height + "px");
};

this.showProjectTree = function(){
    if (o.sidespan != null) {
        o.sidespan.hide();
    }
    o.sidespan = o.projecttree;
    o.sidespan.show();
};

this.showProperties = function(){
    if (o.sidespan != null) {
        o.sidespan.hide();
    }
    o.sidespan = o.properties;
    o.sidespan.show();
};

this.showTypes = function(){
    if (o.sidespan != null) {
        o.sidespan.hide();
    }
    o.sidespan = o.types;
    o.sidespan.show();
};

this.showLayers = function(){
    if (o.sidespan != null) {
        o.sidespan.hide();
    }
    o.sidespan = o.layers;
    o.sidespan.show();
};

this.showClassifications = function(){
    if (o.sidespan != null) {
        o.sidespan.hide();
    }
    o.sidespan = o.classifications;
    o.sidespan.show();
};

containerDiv.find(".btnProjectTree").click(o.showProjectTree);
containerDiv.find(".btnProperties").click(o.showProperties);
containerDiv.find(".btnTypes").click(o.showTypes);
containerDiv.find(".btnLayers").click(o.showLayers);
containerDiv.find(".btnClassifications").click(o.showClassifications);

// $(window).resize(o.resize); }

Siddle111 commented 8 years ago

Hi All, I have installed BIMserver and pluged in BIMvie in tomcat7 ubuntu system.

BIMViews is not load 3d view.

How can i find the javascript file name path of the director. i have installed BIMserver and plunged in BIMvie i have create and uploaded ifc file but the file 3D view loading. i can't execute the 3D view.

Thank you

rubendel commented 8 years ago

BIMserver requires Tomcat 8