Search found 15 matches

by Cambridge Ray
Sat Nov 24, 2012 12:17 am
Forum: dxflib 'How Do I' Questions
Topic: How to determine whether the file is 2D or 3D?
Replies: 0
Views: 9205

How to determine whether the file is 2D or 3D?

What I would like to code is this: I enter the DXF file, and as soon as I find the first line segment that contains a non-zero Z value, I return: "This is a 3D file". I am even willing to return a "2D" answer after inspecting the first dozen points or so. Given the callback architecture of the libra...
by Cambridge Ray
Sat Nov 24, 2012 12:08 am
Forum: dxflib 'How Do I' Questions
Topic: How can a DXF file be validated?
Replies: 0
Views: 7928

How can a DXF file be validated?

I am developing an application similar to the Windows Search. It performs a recursive search, looks for some items inside the DXF file and proceeds to the next. There may be hundreds or even thousands of files, so expediency is a must. My problem is that when confronted with an in invalid DXF file, ...
by Cambridge Ray
Sat Nov 17, 2012 9:02 pm
Forum: dxflib 'How Do I' Questions
Topic: Some basic questions about DXF files
Replies: 2
Views: 9233

Re: Some basic questions about DXF files

Luckily, my universe of DXF files contain limited features and hence the application will only have to deal with the most common entities: - Lines - Text - Polylines - Vertices - 3-D Faces Furthermore, I ignore the Z dimension and am not doing any rotation. Please notice the results that I have so f...
by Cambridge Ray
Sat Nov 17, 2012 8:27 pm
Forum: dxflib 'How Do I' Questions
Topic: Some basic questions about DXF files
Replies: 2
Views: 9233

Re: Some basic questions about DXF files

I modified the provided " test " application so it shows more details. I would like to better understand things like: - Polyline parameters: flags, m, n, number - Vertex bulge But, alas, despite having a sizable collection of DXF files. All of them have zero values in those fields (except for "flags...
by Cambridge Ray
Sat Nov 17, 2012 8:08 pm
Forum: dxflib 'How Do I' Questions
Topic: Some basic questions about DXF files
Replies: 2
Views: 9233

Some basic questions about DXF files

I am attempting to develop a "dxf2pdf" application (I guess I don't have to tell you what it does :-) It is being written under Linux, but will eventually be ported to Windows. Note on my background : Luckily, back in school I took a Master's level CS course, called "Computer Graphics" (which I fina...
by Cambridge Ray
Mon Nov 05, 2012 1:09 am
Forum: dxflib 'How Do I' Questions
Topic: How to retrieve the header properties of the DXF file?
Replies: 4
Views: 10765

Re: How to retrieve the header properties of the DXF file?

The DL_CreationInterface::setVariable* handlers are called for those. E.g. for $ACADVER: DL_CreationInterface::setVariableString("$ACADVER", "AC1024", 1) Andrew: My only use for dxflib is to read DXF files, and the purpose of the function that you mentioned seems to be to write DXF files. I am simp...
by Cambridge Ray
Mon Nov 05, 2012 12:58 am
Forum: dxflib 'How Do I' Questions
Topic: How to retrieve the header properties of the DXF file?
Replies: 4
Views: 10765

Re: How to retrieve the header properties of the DXF file?

Thanks, Andrew!

-Ramon

Oooops, I may have spoken too soon. See below...
by Cambridge Ray
Mon Nov 05, 2012 12:12 am
Forum: dxflib 'How Do I' Questions
Topic: How to retrieve the header properties of the DXF file?
Replies: 4
Views: 10765

How to retrieve the header properties of the DXF file?

I am referring to items like: AutoCAD Version ($ACADVER), etc. Those in Segment #1.

TIA,

-RFH
by Cambridge Ray
Mon Oct 29, 2012 9:48 pm
Forum: dxflib Suggestions and Feedback
Topic: The ONE item that is missing in the distribution
Replies: 1
Views: 12741

Re: The ONE item that is missing in the distribution

Actually, dear Self, it is rather simple. Just add the following member function to the provided "test" utility:

Code: Select all

void
CreationClass::addText(const DL_TextData& data)
{
    cout << "TEXT: `" << data.text << "'" << endl;
    printAttributes();
}
by Cambridge Ray
Mon Oct 29, 2012 8:52 pm
Forum: dxflib Troubleshooting and Problems
Topic: The Number of Layers is a matter of dispute
Replies: 1
Views: 10166

Re: The Number of Layers is a matter of dispute

I just tried several of my files with QCAD, and it handles their layers correctly. So the problem is either dxflib - or that I don't know how to use it. :-(

-RFH
by Cambridge Ray
Mon Oct 29, 2012 8:26 pm
Forum: dxflib Troubleshooting and Problems
Topic: The Number of Layers is a matter of dispute
Replies: 1
Views: 10166

The Number of Layers is a matter of dispute

Please notice the attached files. Different applications report different number of layers.

In my experience, dxflib (and QCAD?) handle layers correctly, provided that they are named.

TIA,

-RFH
by Cambridge Ray
Mon Oct 29, 2012 4:59 pm
Forum: dxflib 'How Do I' Questions
Topic: How do I retrieve a POLYLINE?
Replies: 1
Views: 8155

How do I retrieve a POLYLINE?

In the example provided with the distro, they only show how to retrieve the flags.

TIA,

-Ray
by Cambridge Ray
Sat Oct 27, 2012 10:03 pm
Forum: dxflib Suggestions and Feedback
Topic: The ONE item that is missing in the distribution
Replies: 1
Views: 12741

The ONE item that is missing in the distribution

The ONE item that is missing in the distribution is an example of how to deal with TEXT.

TIA.

-Ray
by Cambridge Ray
Thu Oct 04, 2012 6:00 pm
Forum: dxflib 'How Do I' Questions
Topic: Heights and locations of TEXT entities are being coupled
Replies: 1
Views: 8414

Heights and locations of TEXT entities are being coupled

Question: Are the heights and locations of 2 AcDbText entities supposed to be coupled? QCAD doesn't think so but a 3rd. party vendor says otherwise. How can I decouple them?? Another way to ask this question is this: In addition to the text group code 40, what other parameter (code, table, dictionar...
by Cambridge Ray
Wed Oct 03, 2012 7:16 pm
Forum: dxflib Troubleshooting and Problems
Topic: Does dxflib retrieve TEXT?
Replies: 1
Views: 9247

Does dxflib retrieve TEXT?

dxflib Version 2.5.0 I have tried the test application that is included in the distribution with FIVE different DXF files. All of them contain one string ("Hello World!"). The 5 files have the following versions: Hello-R12.dxf: AC1009 Hello-R2000.dxf: AC1015 Hello-R2004.dxf: AC1018 Hello-R2007.dxf: ...

Go to advanced search