Hello together,
we´re searching for a new simple CAD solution, for creating some production draws, but we have some obstacles which I try to find a solution.
First point is that we need the function to create a draw from an XML-file which contains the dimensions of an exterior rectangle with inside the rectangle a specific count of vertical and horizontal bars. These bars have (dependend of the bar-type) specific connectors which should initially automaticall drawed:
I think it should be possible to work with scripts to achive this requirement.
The next problem we have is, that we want to draw just a single line and get the bar-type automatically drawed (afaik in Autocad there is a multi-line option and I hope to find a similar solution here).
With an auto-trim function we need the possibility to fit a bar on one side to the frame and if we move to a crossing bar we need a specific "closure" of the bar.
There I have no idea how to get this solution.
I hope the explanation of my request is my request is comprehensible and someone can give me some hints if (and if yes how) it´s possible to solve these problems.
Thanks a lot in advance.
BR
Christian
Multli-Line with auto-Trim
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: Multli-Line with auto-Trim
Yes, you could develop a script with QCAD that reads the information from the XML file and generates the drawing based on that.Christian_R wrote: ↑Tue Jul 20, 2021 8:49 amFirst point is that we need the function to create a draw from an XML-file which contains the dimensions of an exterior rectangle with inside the rectangle a specific count of vertical and horizontal bars. These bars have (dependend of the bar-type) specific connectors which should initially automaticall drawed:
I think it should be possible to work with scripts to achive this requirement.
QCAD does not have a multiline tool, so this is something you'd have to implement (i.e. a line tool which draws these bars and does the trimming).Christian_R wrote: ↑Tue Jul 20, 2021 8:49 amThe next problem we have is, that we want to draw just a single line and get the bar-type automatically drawed (afaik in Autocad there is a multi-line option and I hope to find a similar solution here).
Again, something to implement in a script. This is all possible as long as you know the logic that determines how the end result should look like. some of it might not be straight-forward though.Christian_R wrote: ↑Tue Jul 20, 2021 8:49 amWith an auto-trim function we need the possibility to fit a bar on one side to the frame and if we move to a crossing bar we need a specific "closure" of the bar.
-
- Newbie Member
- Posts: 3
- Joined: Tue Jul 20, 2021 6:44 am
Re: Multli-Line with auto-Trim
Hallo Andrew,
thank you very much for the very fast answer.
This gives me hope that I can solve my problems with QCAD.
One more question, do you know where (or if) I can find some examples (especially from the line-tool-scripting) ?
Christian
thank you very much for the very fast answer.
This gives me hope that I can solve my problems with QCAD.
One more question, do you know where (or if) I can find some examples (especially from the line-tool-scripting) ?
Christian
Re: Multli-Line with auto-Trim
All interactive tools and widgets in QCAD are implemented as scripts (at the top level). You can find these scripts of all existing tools at:
https://github.com/qcad/qcad/tree/master/scripts
For example the line tool:
https://github.com/qcad/qcad/tree/maste ... ine/Line2P
-> Line2P.js
https://github.com/qcad/qcad/tree/master/scripts
For example the line tool:
https://github.com/qcad/qcad/tree/maste ... ine/Line2P
-> Line2P.js