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 :
I do not understand what could be the source of the problem (The files come from AutoCad)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"
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 !