Bug in getting XY position of ULP in schematic editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am currently trying to get the position of nets, parts, text, etc. in the schematic editor.
I can get the exact position of nets, text, polygons, etc.
However, the outlines of parts (Synbols), pins, etc. are out of position.
There is also "dxf.ulp" which exports the contents of the schematic editor to DXF, but only the parts are misaligned as well.
I have tested it and it seems to shift the position twice the actual position.
I tried the circuits in "Electronics Samples", but they are misaligned as well.
I tried with dxf.ulp. I used dxf.ulp which can be selected from the ULP dialog, Library.io Public.
I am attaching an image. The gray line is the origin of the schematic editor and the upper left corner of the red part symbol is the origin of the part. The white cross is the mouse pointer. Don't worry about it.
Based on the schematic origin, the part origin is moved to the X=0, Y=4 position. When this is output, it is shifted to the Y=8 position.
For clarity, only one axis is moved, but both X and Y are displaced by a factor of 2.
This is my first ULP so I am not sure, but both dxf.ulp and the ULP I am coding now work fine in Eagle.
My code is simple: Schematics>Parts>Instances>Gates>Symbol, then Wire/Texts/Pins position is obtained at x1,x2,y1,y2 and output to file.
We think it is a bug. Any feedback would be appreciated.