DXF Export - suggested fix for exporting layers and color information as intended. #105302

Open
opened 2024-04-30 11:15:28 +02:00 by tabmow · 2 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: Quadro P2000/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.45

Blender Version
Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: 40a5e739e270
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Export Autocad DXF Format (.dxf) (2, 2, 3)
Author: Remigiusz Fiedler (AKA migius), Vaclav Klecanda

Short description of error
Options at export include: "Entity Layer = Object name" & "Entity Color = Object material" - however neither of these options currently work.

Exact steps for others to reproduce the error
Load or create any mesh with a material slot active. Enable DXF Export addon and then Export>DXF. In export window, choose settings as noted above (other settings make no impact).
The exported DXF will only include 1 layer ("PYDXF"), and the objects will not have a DXF color code (code 62).

Tweaks to 3 py modules needed to 'activate' this functionality as it is intended: export_dxf.py, migiusModel.py, mesh_exporter.py.
I can share the amended scripts, but potentially not best practice. Necessary edits are fairly small. I have this functionality working on my own version now.

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: Quadro P2000/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.45 **Blender Version** Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: `40a5e739e270` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Export Autocad DXF Format (.dxf) (2, 2, 3) Author: Remigiusz Fiedler (AKA migius), Vaclav Klecanda **Short description of error** Options at export include: "Entity Layer = Object name" & "Entity Color = Object material" - however neither of these options currently work. **Exact steps for others to reproduce the error** Load or create any mesh with a material slot active. Enable DXF Export addon and then Export>DXF. In export window, choose settings as noted above (other settings make no impact). The exported DXF will only include 1 layer ("PYDXF"), and the objects will not have a DXF color code (code 62). Tweaks to 3 py modules needed to 'activate' this functionality as it is intended: export_dxf.py, migiusModel.py, mesh_exporter.py. I can share the amended scripts, but potentially not best practice. Necessary edits are fairly small. I have this functionality working on my own version now.
tabmow added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-04-30 11:15:29 +02:00
Member

@tabmow Actually if you are able to share your code as a pull request, or just a patch/diff, we would be very happy to integrate the fix :D

@tabmow Actually if you are able to share your code as a pull request, or just a patch/diff, we would be very happy to integrate the fix :D
Author

@ChengduLittleA I will try one evening this week. Thanks

@ChengduLittleA I will try one evening this week. Thanks
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105302
No description provided.