您好,使用Workspace ws = new Workspace();
WorkspaceConnectionInfo info = new WorkspaceConnectionInfo();
info.setServer("D:\\idesktopdata\\社区问题\\test1.smwu");
info.setType(WorkspaceType.SMWU);
ws.open(info);
Scene scene = new Scene(ws);
System.out.println(ws.getScenes().getCount());
scene.open(ws.getScenes().get(0));
scene.getLayers().add("scp文件路径", Layer3DType.OSGB, true, "test1");
ws.getScenes().setSceneXML(0, scene.toXML());
ws.save();将scp保存到场景,然后再打开场景即可