Re: Referencing Image from a PlugIn
Posted by perepujal on Oct 05, 2021; 9:46pm
URL: https://forum.librecad.org/Referencing-Image-from-a-PlugIn-tp5721100p5721111.html
File Import Insert Image to put it in the drawing,
then click it to select, alternative you could drag a rectangle enclosing it
or crossing it, depending on the direction of the drag.
Once it is selected, your code could use doc->getSelect() as LordOfBikes says.
The snippet I posted uses doc->getEnt("Select an image") which not cares
about what it is selected and prompts you to click an image.