OpenJSCAD.org icon indicating copy to clipboard operation
OpenJSCAD.org copied to clipboard

DXF : add support for INSERT entities

Open z3dev opened this issue 5 years ago • 1 comments

Expected Behavior

Mulitple renderings of the block entity are inserted into the returned shapes.

Actual Behavior

Just one, from the block.

Steps to Reproduce the Problem

  1. Convert the given DXF
  2. There should be several holes (circles) offset from the first.

Specifications

  • Version: ALL
  • Platform: ALL
  • Environment: ALL

insert.dxf.txt

z3dev avatar Apr 22 '20 23:04 z3dev

Hi,

I see the way of exporting dxf content by using some static parts and combine them. For the INSERT entity to work properly its need the BLOCKS section to be dynamic and support:

  • Adding new blocks
  • Adding entities to blocks (lines, circles, etc...)
  • Add INSERT entity by referencing created blocks

There is to options to acheive this:

  • Using a tier library to handle all the complexity (I suggest my lib dxfjs/writer 😁).
  • Implement dynamic solution. I want to mention there is some content optional included in the static parts.

If you can tell which option I will make some PRs to help as I can.

Regards

tarikjabiri avatar Aug 19 '22 20:08 tarikjabiri