[[SOLVED]] Looking for scripting help (paid)
Posted: Mon Feb 27, 2023 8:52 pm
Hello All,
I'm looking for some help with what I *think* is a fairly simple script.
I'd like to use QCAD (Windows 10 version) to help lay out an installation plan for a network device using a building floorplan. The devices all need to be within 10m of at least one other device. Once all of the devices are placed I need to generate a CSV file with an ID and (x,y) coordinates for each of them.
From what I've read of the scripting engine, this seems straightforward. My initial thought was to create a new entity that is essentially a circle with a 10m radius and the ability to set a name/ID/label for the entity, and rely on a simple visual check by the user (it'll mostly be me) to ensure that each circle overlaps with at least one other. A more sophisticated approach would be to have the entity or the cursor change color when within the 10m range of a previously placed entity.
So something like the attached image, where the red lines are the floorplan and the blue lines are the new entity (labels not shown).
Then I'll need a menu option that dumps out a CSV that contains all of the entities with their label and the (x,y) of the circle's center point. In a perfect world there would also be a UI setting to change the 10m range to other values.
I don't think it's a huge amount of work, but certainly beyond my lousy JS programming skills.
If you're interested in taking this on and available to start soon, please DM me here.
Thanks!
-Nick
I'm looking for some help with what I *think* is a fairly simple script.
I'd like to use QCAD (Windows 10 version) to help lay out an installation plan for a network device using a building floorplan. The devices all need to be within 10m of at least one other device. Once all of the devices are placed I need to generate a CSV file with an ID and (x,y) coordinates for each of them.
From what I've read of the scripting engine, this seems straightforward. My initial thought was to create a new entity that is essentially a circle with a 10m radius and the ability to set a name/ID/label for the entity, and rely on a simple visual check by the user (it'll mostly be me) to ensure that each circle overlaps with at least one other. A more sophisticated approach would be to have the entity or the cursor change color when within the 10m range of a previously placed entity.
So something like the attached image, where the red lines are the floorplan and the blue lines are the new entity (labels not shown).
Then I'll need a menu option that dumps out a CSV that contains all of the entities with their label and the (x,y) of the circle's center point. In a perfect world there would also be a UI setting to change the 10m range to other values.
I don't think it's a huge amount of work, but certainly beyond my lousy JS programming skills.
If you're interested in taking this on and available to start soon, please DM me here.
Thanks!
-Nick