bimserverjavaclientdemo's Issues
How to download .ifc models by using Java API?
Hello, i am an user of BIMserver.
Recently, i try to use the Java API to do something.
I referred your BimServerJavaClientDemo project and run java successfully (including CreateProject.java, CheckinIFCFile.java etc..).
But, i also want to download .ifc file from Java. So I found some APIs:
1: ServiceInterface.checkout
2: ServiceInterface.download
3: ServiceInterface.getDownloadData
I tried them all but i still cannot download .ifc model.
The main reason is that the input parameter needs "topicId", "serializedOid" and "Path".
But the API document has not clearly illustrate what is topicId? what is serializedOid? what is Path???
I just guessed them so that API doesn't work.
I hope you can tell me how to use the download JAVA API.
Of course, if you can create a Java program like "checkout.java" in the BimServerJavaClientDemo project, it will be more useful for lots of users.
Waiting for your detailed reply.
Many Thanks!
org.bimserver.shared.reflector.ReflectorException
public void start() {
JsonBimServerClientFactory factory;
try {
factory = new JsonBimServerClientFactory("http://localhost:8080/bimserverwar-1.5.111");
try {
BimServerClient client = factory.create(new UsernamePasswordAuthenticationInfo("[email protected]", "admin"));
doWithClient(client);
} catch (ServiceException e) {
// TODO Auto-generated catch block
} catch (ChannelConnectionException e) {
e.printStackTrace();
}
} catch (BimServerClientException e) {
e.printStackTrace();
}
}
Exception in thread "main" org.bimserver.shared.reflector.ReflectorException: java.lang.UnsupportedOperationException: "3c66c1c9b60573dad20d82530c15f4fe1669db724dd9040b24afb68953d18c8a6d826644a48237565f44e9db6874a36d"
at org.bimserver.shared.json.JsonReflector.callMethod(JsonReflector.java:106)
at org.bimserver.generated.AuthInterfaceImpl1.login(AuthInterfaceImpl1.java)
at org.bimserver.client.BimServerClient.authenticate(BimServerClient.java:130)
at org.bimserver.client.BimServerClient.connect(BimServerClient.java:122)
at org.bimserver.client.BimServerClient.setAuthentication(BimServerClient.java:115)
at org.bimserver.client.json.JsonBimServerClientFactory.create(JsonBimServerClientFactory.java:68)
at com.starli.bim.ifc.BaseApp.start(BaseApp.java:19)
at com.starli.bim.ifc.App.main(App.java:24)
Caused by: java.lang.UnsupportedOperationException: "3c66c1c9b60573dad20d82530c15f4fe1669db724dd9040b24afb68953d18c8a6d826644a48237565f44e9db6874a36d"
at org.bimserver.shared.json.JsonConverter.fromJson(JsonConverter.java:295)
at org.bimserver.shared.json.JsonReflector.callMethod(JsonReflector.java:92)
... 7 more
Query tree, floor
Hey,
Please could you help me to realise how to query by tree categories?
Like how to request floor 1?
thank you so much!
How to apply BimServerJavaClientDemo
Hi,
If I want to handle n different actions or combinations of actions
e.g.
1. do CreateProject
2. do CheckInIfcFile
3. do AddExtendedData
4. do CreateProject AND CheckInIfcFile
5. do CreateProject AND AddExtendedData
...
n. ...
would I write n classes extending GenericDemoClient
and implement whatever I want to do in their doSomethingWithClient()
method?
And therefore end up with a set of n classes!?
e.g.
1. CreateProject.java
2. CheckInIfcFile.java
3. AddExtendedData.java
4. CreateProjectAndCheckInIfcFile.java
5. CreateProjectAndAddExtendedData.java
...
n. ...
Not able to download ifc-model
Hi,
how do I download an ifc model using the bimserverclientlib?
Somehow I cannot manage to get around the error
java.io.EOFException: Unexpected end of ZLIB input stream
caused by the generated inputStream
from getDownloadData(topicId, serializerOid)
I guess.
Maybe you can add another example for this case in BimServerJavaClientDemo?
Thanks in advance!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.