January 4, 2021 at 8:35 pm
Subscriber
I managed to solve my problem, and it was a bone headed mistake. I wrongly assumed (based on the example) that the TechFileLayers input array was the array where I declared which layer I wanted to import, where in reality what I wanted was the LayerInfo array. It now correctly works, and I wrote a base function for the API around that code. Attached is how it appears in the API right now. It uses ezdxf to parse the file and check th elayers (PYDXF and Defpoints are empty layers that contain other information from the DXF generation using another Python API) and then imports them (or the selected layers) after determining if they are valid. self._modeler is the oEditor object.n
Hope this helps anyone else stuck on this issue.nn~Andrewn
