reading dxf

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
RobinCris
Registered Member
Posts: 2
Joined: Sun Jul 19, 2015 11:07 am

reading dxf

Post by RobinCris » Sun Aug 02, 2015 10:06 am

Hello.
I am building a small automation to read dxf files.
All the dxf files are made by me, so I decide their format.
I can choose to use blocks instead of polylines for example)
Every layer is a building floor.
In this example.
The hatch color is the area type.
1. Some of the lines in the area, need to be different (different materials). what can I do that I will be able to read it automatically (both different color or line type do not work with polyline).
2. I need to put something on the walls (lines) to represent windows. I need to connect it to a specific line with the height and width information. and read automaticly from the dxf file.
This is a 2D drawing not 3D.

Any ideas
Please advice
Attachments
zone.png
zone.png (20.16 KiB) Viewed 19848 times

User avatar
andrew
Site Admin
Posts: 9036
Joined: Fri Mar 30, 2007 6:07 am

Re: reading dxf

Post by andrew » Tue Aug 18, 2015 10:31 am

RobinCris wrote:1. Some of the lines in the area, need to be different (different materials). what can I do that I will be able to read it automatically (both different color or line type do not work with polyline).
Both should work fine, also with polylines.
2. I need to put something on the walls (lines) to represent windows. I need to connect it to a specific line with the height and width information. and read automaticly from the dxf file.
This is a 2D drawing not 3D.
You could use blocks for this. It's also possible to attache additional information to entities (XData) which is then processed through addXData[String|Real|Int] in your DL_CreationInterface implementation.
Please elaborate if that's not what you meant.

Post Reply

Return to “dxflib 'How Do I' Questions”