-
I am doing off-line robot programming based on coordinates of dxf entities. I would like to make an svg based web gui to make the user able to choose from different dxf entity coordinates to send to the robot.
A nod in the right direction or alternative solutions will be greatly apprieciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
btw I also checked whether it's possible to pass metadata via the Qt backend with QSVGGenerator, but I can't see any way you could get the metadata all the way from the ezdxf Qt backend (which draws to a
@mozman do you think an FAQ or something in the documentation should be added to cover the 'how do i map between cad and the rendered image' because it seems like this question keeps being asked |
Beta Was this translation helpful? Give feedback.
matplotlib.backends.backend_svg.RendererSVG
. Usingmatplotlib.artist.Artist.set_gid
you could implement a custom version of theezdxf.addons.drawing.matplotlib.MatplotlibBackend
which sets the id of each artist to some value which can be linked back to the dxf, then when your custom SVG renderer is writing out individual svg tags you may be able to obtain the id of the entity currently being drawn and be able to link that all the way back to the dxf entity id. But as you can see this won't be easy. An alternative would be to implement anSVGBackend
to ezdxf directly. This is something whi…