Using the YCAD Library

I started using YCAD Library. The problem is that I cannot find the instructions for use, and I am a little confused because I have no idea how to use it. I hope someone here has used it before or is using it now so that he / she can give me some tips on how to use the library.

Thanks in advance.

PS.

One of the requirements for the project is to develop it in Java. I know that there are some good libraries in C #, C ++, etc., but I need to do this in Java.

Sincerely, Dimitar Georgiev

+1
source share
1 answer

, com.ysystems.ycad.lib.yxxf.Yxxf.

-:

File flname = new File(filename);

:

BufferedInputStream is = null;

:

is = new BufferedInputStream(new FileInputStream(flname ));

Yxxf:

Yxxf dxfDrawing = new Yxxf();

YdxfGetBuffer:

YdxfGetBuffer buffStream = new YdxfGetBuffer();

:

int typ = YdxfGetBuffer.GET_TYPE_MAIN; 
buffStream .setInput(typ, in, drawing);
YdxfGet.get(buffStream );

, , .

+2

Source: https://habr.com/ru/post/1584745/


All Articles