Search found 23 matches
- Fri Mar 18, 2016 7:28 pm
- Forum: QCAD Troubleshooting and Problems
- Topic: Unproportional scale of block containing arcs
- Replies: 1
- Views: 4037
Unproportional scale of block containing arcs
Hi, I noticed that arcs, circles and ellipses that are part of a block don't scale properly if scale factors (x and y) are different. Non-proportional scaling of entities that are not gathered in a block is correctly working. The bug is noticed whit latest versions of QCAD. I tested it on Linux syst...
- Fri Mar 18, 2016 6:44 pm
- Forum: QCAD Community Edition
- Topic: Offset on full ellipses
- Replies: 3
- Views: 8082
Re: Offset on full ellipses
Hi, in order to solve the bug I made a little change in ShapeAlgorithms.js ( scripts folder). In ShapeAlgorithms.getOffsetEllipses function I replaced the lines if (isFullEllipseShape(shape)) { spl.setPeriodic(true); } whit these lines: if (isFullEllipseShape(shape)) { if (isSplineShape(spl)) { spl....
- Fri Feb 26, 2016 4:10 pm
- Forum: QCAD Community Edition
- Topic: Offset on full ellipses
- Replies: 3
- Views: 8082
Offset on full ellipses
Hi, I noticed that the offset tools on full ellipses is not working on open source version (after disabling pro plugins) of QCAD 3.12.8. I noticed the issue using Linux (Ubuntu) and Windows 7. The issue doesn't show up on trimmed ellipses. I think it's related to the ShapeAlgorithms.getOffsetEllipse...
- Sat Nov 14, 2015 1:00 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
Hi Husky, I tried to test your file using my last edit of CreateBlock.js (posted here on October 16) and I didn't notice any problems: the block is updated and renamed properly without the need to explode it first. Here is what I see: http://mfarchitetti.it/download/various/replaceItselfTest.gif I t...
- Fri Oct 16, 2015 11:26 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
This is expected behaviour for recursive block references (i.e. block A contains directly or indirectly a reference to block A). After 16 iterations, QCAD stops to prevent endless recursion and ultimately a crash. I see. Anyway I tried to make some little change to your code (here attached) to allo...
- Wed Oct 14, 2015 12:58 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
Hi Andrew, now the code is much cleaner! Thanks. I did some test and I noticed some strange behavior: 1. When I create a new empty block and name it like some other existing block the OK button in the dialog allows overwriting. But if I click it the dialog closes and nothing happens. I think that cr...
- Wed Oct 07, 2015 10:41 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
Hi marzof - you are really busy! :wink: Not really. :) I like doing it and it's a very useful exercise for me: in doing so, I'm improving my programming skills and, at the same time, trying to enhance an important instrument for my job. I hope that my work doesn't bother you. :oops: In this case, p...
- Tue Oct 06, 2015 8:07 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
Hi, I updated the scripts to fix what Husky pointed out. The automatic name generator seems ok now. Also blocks renaming has been corrected: now, if you give an existing name to a block, all its instances are redirected to the existing one and the renamed block is removed. To tell the truth I don't ...
- Thu Oct 01, 2015 10:23 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
I'm glad you like it. The things you point out have to be fixed, no doubt. I had noticed the name generator and I think I can fix it. Instead, I didn't think about replacing through the block list: I'll try to understand how to solve it. (Before getting deep in coding I wanted to know if it was of s...
- Thu Oct 01, 2015 8:15 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
Hi, I changed the path as you suggest (just for ReplaceBlock.js... InsertBlockItems.js it's not used here: it was a previous attempt and I forgot to delete it from the code) and it seems working. I attach the file CreateBlock.js (the others are the same). Here is an animation to show how it works in...
- Wed Sep 30, 2015 8:02 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Re: Replace block with same name
Hi Husky, no, you are totally right. Those are the correct files locations. It's weird: I don't know why but sometimes it seems that ReplaceBlock.js is not read. In that case I open CreateBlock.js, make some irrelevant change, save it again and restart QCAD... and it works! And it keeps working for ...
- Wed Sep 30, 2015 11:54 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Replace block with same name
- Replies: 28
- Views: 52815
Replace block with same name
Hi, I'm working on a function that allow to replace an existing block and its instances when a user creates a new block with the same name. In order to do this, I made a script that, when users choose an existing block name, follows this steps: 1. creates a new temporary block marked by a prefix 2. ...
- Tue Sep 29, 2015 11:54 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Double-click to select contour
- Replies: 4
- Views: 16707
Re: Double-click to select contour
Great!
Please take all the liberty you need to get a better code.
Also the idea to support the shift-double-click is very useful.
For the credits my name is Marco Ferrara
Bye
Please take all the liberty you need to get a better code.
Also the idea to support the shift-double-click is very useful.
For the credits my name is Marco Ferrara
Bye
- Sun Sep 27, 2015 7:06 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Double-click to select contour
- Replies: 4
- Views: 16707
Double-click to select contour
Hi, I wrote a few lines of code to allow a selection contour (very useful command) by double-clicking on entity (except for texts and blocks): it's like the SketchUp selection where double-click extends the selection to the nearest elements and triple-click to all connected entities. Maybe someone o...
- Sun Aug 23, 2015 5:56 pm
- Forum: QCAD Community Edition
- Topic: Dimension label font in free version
- Replies: 8
- Views: 17963
Re: Dimension label font in free version
Did anybody encounter this bug?
Or it affects just my two computers?
Thanks for your reply
Or it affects just my two computers?
Thanks for your reply