dwghatch issue

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
jcthomas
Junior Member
Posts: 11
Joined: Mon Jun 17, 2019 4:49 pm

dwghatch issue

Post by jcthomas » Tue Oct 15, 2019 8:43 am

Hello,

I encounter troubles by running dwghatch program on several files (i.e. DWG file in attachment).
Herebelow the error returned by the program, no resulting DWG file :
09:29:26: Debug: calling odInitialize
09:29:26: Debug: dropped global XDATA (no value): "ASEBlockHierarchyIndexRecord"
Warning: RScriptHandlerEcma::eval: script engine exception: "TypeError: Result of expression 'entity.getStartPoint' [undefined] is not a function."
Warning: "<anonymous>(hatchData = RHatchData(0x41b1d280), docOrBlockRef = RDocument(0x44302e60), entity = RHatchEntityPointer(0x44cd9fa0), candidateIds = 92,93,94,95,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,58,59,60,61,62,63,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,80,81,82,83,84,85,86,87,88,89,90,91) at :scripts/Draw/Hatch/HatchFromSelection/HatchFromSelection.js:325\n<anonymous>(doc = RDocument(0x44302e60), entityIds = 92,93,94,95,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,58,59,60,61,62,63,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,80,81,82,83,84,85,86,87,88,89,90,91, ignoreOpenLoops = true) at :scripts/Draw/Hatch/HatchFromSelection/HatchFromSelection.js:198\nmain() at :scripts\\Pro\\Tools\\DwgHatch\\DwgHatch.js:87\n<global>() at :scripts\\Pro\\Tools\\DwgHatch\\DwgHatch.js:114"
Warning: At least one uncaught exception:
Warning: "<anonymous>(hatchData = RHatchData(0x41b1d280), docOrBlockRef = RDocument(0x44302e60), entity = RHatchEntityPointer(0x44cd9fa0), candidateIds = 92,93,94,95,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,58,59,60,61,62,63,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,80,81,82,83,84,85,86,87,88,89,90,91) at :scripts/Draw/Hatch/HatchFromSelection/HatchFromSelection.js:325\n<anonymous>(doc = RDocument(0x44302e60), entityIds = 92,93,94,95,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,58,59,60,61,62,63,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,80,81,82,83,84,85,86,87,88,89,90,91, ignoreOpenLoops = true) at :scripts/Draw/Hatch/HatchFromSelection/HatchFromSelection.js:198\nmain() at :scripts\\Pro\\Tools\\DwgHatch\\DwgHatch.js:87\n<global>() at :scripts\\Pro\\Tools\\DwgHatch\\DwgHatch.js:114"
09:29:26: Debug: "<global>() at 325"
I do not understand what could be the source of the problem (The files come from AutoCad)
There are two layers : 0 and vision. If I erase the layer "Vision", the program succeeds in hatching the DWG and resulting DWG is what I expect.
Thank you in advance for your help !
Attachments
testHatch.dwg
(50.33 KiB) Downloaded 360 times

CVH
Premier Member
Posts: 3467
Joined: Wed Sep 27, 2017 4:17 pm

Re: dwghatch issue

Post by CVH » Tue Oct 15, 2019 9:08 am

Hi,
Don't know how you started dwghatch.

Opened the file in Qcad.
On Layer 0 is a boundary.
On Layer VISION is a Hatch.
Selecting all >> Hatch >> creates one extra hatch.
Pritty obvious you can't Hatch a Hatch.

For so far my insights.

Regards,
CVH

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

Re: dwghatch issue

Post by andrew » Tue Oct 15, 2019 9:09 am

The dwghatch tool expects a drawing file which contains exclusively the outline to be hatched (lines, arcs, splines, polylines, etc.). The attached drawing "testHatch.dwg" contains already a hatch entity.

jcthomas
Junior Member
Posts: 11
Joined: Mon Jun 17, 2019 4:49 pm

Re: dwghatch issue

Post by jcthomas » Tue Oct 15, 2019 10:13 am

Thank you, I understand.
I will come back to the provider of the DWG file in order him to fill the "Vision" layer properly.

Post Reply

Return to “QCAD Troubleshooting and Problems”