YCAD库使用 [英] YCAD Library Usage

查看:742
本文介绍了YCAD库使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用 YCAD Library .问题是我找不到任何使用说明,我有点困惑,因为我不知道如何使用它.我希望这里的人以前使用过它,或者现在正在使用它,以便他/她可以给我一些使用库的提示.

I started using the YCAD Library. The problem is that I cannot find any usage instructions and I am kind of confused because I have no idea how to use it. I am hoping that somebody here used it before or is using it now so he/she can give me some tips how to use the library.

谢谢.

PS.

该项目的要求之一是在Java中进行开发.我知道在C#,C ++等中有一些不错的库,但是我需要在Java中完成.

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 it in Java.

最好的问候,迪米塔尔·乔治耶夫

Best regards, Dimitar Georgiev

推荐答案

导入诸如com.ysystems.ycad.lib.yxxf.Yxxf之类的类.

打开文件对象:

File flname = new File(filename);

使用文件打开缓冲的输入流:

Open the buffered input stream with the file:

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 );

此后,您可能会找到对象并进行遍历.

After this, you may probably find the objects and iterate through.

这篇关于YCAD库使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆