Search found 850 matches

by CVH
Fri Sep 18, 2020 6:45 am
Forum: QCAD Troubleshooting and Problems
Topic: [solved] DWG file not properly imported
Replies: 10
Views: 432

Re: DWG file not properly imported

Silly questions:
Aren't these 'Apearance' settings the default?
Or should they be?

Can't even remeber that I changed these lately, and I wipe my QCAD.ini every update.
CVH
by CVH
Thu Sep 17, 2020 10:42 pm
Forum: QCAD Troubleshooting and Problems
Topic: [solved] DWG file not properly imported
Replies: 10
Views: 432

Re: DWG file not properly imported

Same file, probably. Well as it was, the drawing is 393.428m by 269.767m But there is some text outside that. Your paper is A4 portrait. Select 'Landscape' Select 'Auto fit drawing to page(s)' You get scale 0.000454 With a scale of 0.0007 the drawing would fit on one page. The scales mentioned on th...
by CVH
Thu Sep 17, 2020 8:34 am
Forum: Chat
Topic: The quest for the 'addlayer' with a green color
Replies: 2
Views: 300

Re: The quest for the 'addlayer' with a green color

Never would be able to come up with that. Surely not the link with SVG colors. Using the 'RLB' color index over 'RGB' (with L from 'lime' and not G from 'green') :lol: Of course, as a man I am less gifted and have much fewer cones in my retina, so I looked up the color 'Lime'. It still looks 'lime g...
by CVH
Wed Sep 16, 2020 2:20 pm
Forum: QCAD 'How Do I' Questions
Topic: New user - need help using Blocks
Replies: 4
Views: 121

Re: New user - need help using Blocks

Yes,
All visible, unlocked and so on
You edit the block.
Make the dims layer the active one.
Create dims as one does normally.
Then go back to model space.

Edit another one.

Regards,
CVH
by CVH
Wed Sep 16, 2020 1:26 pm
Forum: QCAD 'How Do I' Questions
Topic: New user - need help using Blocks
Replies: 4
Views: 121

Re: New user - need help using Blocks

Hi,
Create your blocks on a dedicated layer.
Create your dims in blocks on another.

Now the block is vissible when on a visible main layer.
The block entities when the block entity layer is visible.
The dims when .... :wink:

Regards,
CVH
by CVH
Tue Sep 15, 2020 9:43 am
Forum: Chat
Topic: The quest for the 'addlayer' with a green color
Replies: 2
Views: 300

The quest for the 'addlayer' with a green color

Hello, it took me a half day to get the layer colors right. Simple API addlayer() uses a colorName, addshape() uses a New Rcolor(). Added a layer with addlayer using "green" and I got dark green ... (0,128,0) With "dark green" I got back even darker green ... (0,100,0) Went through the whole RColor ...
by CVH
Mon Sep 14, 2020 4:41 pm
Forum: QCAD Suggestions and Feedback
Topic: Efficient Math.sign(value) polyfill
Replies: 3
Views: 676

Re: Efficient Math.sign(value) polyfill

Yes I did ... :( Running it against the compiled polyfill of input.js Also given a baseline with a dummy to time the looping itself. Long story short. It is the order of thing and because it runs from within an addon script. The newer polyfill is definitively faster in all cases if you run it in sec...
by CVH
Mon Sep 14, 2020 8:20 am
Forum: QCAD Developers and Contributors
Topic: Free Hatch Patterns
Replies: 71
Views: 10246

Re: Free Hatch Patterns

Swirl-Dots is surely a CPU killer ... :lol:
One can consider the hatch to be an intersection of the area within the boundary and 2185 planes filled with 1 dots per tile.

In Scales we see the magic of angle restriction ... Cloning load is 6 or less. :wink:
Nice.

Thanks John,
CVH
by CVH
Sat Sep 12, 2020 9:23 am
Forum: QCAD Suggestions and Feedback
Topic: Efficient Math.sign(value) polyfill
Replies: 3
Views: 676

Efficient Math.sign(value) polyfill

Andrew, all, stepping trough a lot of code these days ... :roll: I pass this polyfill hundred and more times a day. // In input.js: sign = Math.sign = function(x) { x = +x; if (x === 0 || isNaN(x)) { return Number(x); } return x > 0 ? 1 : -1; }; It is a three / four step process that returns (NaN / ...
by CVH
Sat Sep 12, 2020 8:07 am
Forum: QCAD Developers and Contributors
Topic: [SOLVED] font.setStrikeOut
Replies: 4
Views: 413

Solved: font.setStrikeOut

Ok got it, Sorry Andrew, it might have been a typo or the order of things. I ran my latest trials again, isolated to document the newer error messages. Your solution works fine ... now. :oops: var radioButtonFont; radioButtonFont = widgets["RunT2HExport"].font; radioButtonFont.setStrikeOut(true); wi...
by CVH
Sat Sep 12, 2020 7:32 am
Forum: QCAD Developers and Contributors
Topic: [SOLVED] font.setStrikeOut
Replies: 4
Views: 413

Re: font.setStrikeOut

This one gives a totally different error that was quite new to me:
widgets["RunT2HExport"].font.__proto__.setStrikeOut(true);
->TypeError: QFont.setStrikeOut(): this object is not a QFont
CVH
by CVH
Sat Sep 12, 2020 7:04 am
Forum: QCAD Developers and Contributors
Topic: [SOLVED] font.setStrikeOut
Replies: 4
Views: 413

Re: font.setStrikeOut

Andrew, that doesn't it either. Among dozens of other trials and online resources ... Set or not set striked out in the UI A widgets["QRadioButton"].font returns: "MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0" with a sub class '_proto_' FontSub.png And that class with 59 sub classes going from again '_prot...
by CVH
Fri Sep 11, 2020 1:32 am
Forum: QCAD Developers and Contributors
Topic: [SOLVED] font.setStrikeOut
Replies: 4
Views: 413

[SOLVED] font.setStrikeOut

Andrew, I would like to use a strike out font for the text of a QRadioButton on a dialog. On top off being enabled / disabled the strike out tells there is no selection at all. Got this far: The Dialog and Widgets and the flag 'hasSelection' var dialog = WidgetFactory.createDialog(Tile2Hatch.include...
by CVH
Wed Sep 09, 2020 3:55 pm
Forum: QCAD Troubleshooting and Problems
Topic: [solved] Text hidden and not selectable
Replies: 4
Views: 123

Re: Text hidden and not selectable

hi,
Your text is indeed an Attribute definition.
Use Selection Filter on 'Attribute definition', hit replace selection.
The text is indeed '301G5'
The prompt is 'Device Descriptor'

How? why? Don't ask, I can not answer that.

Regards,
CVH
by CVH
Sun Sep 06, 2020 8:06 am
Forum: QCAD Developers and Contributors
Topic: Export Hatch Segments to CSV file
Replies: 16
Views: 363

Re: Export Hatch Segments to CSV file

Find this most off-topic. Find that this is PM stuff. I only comply with the standard until otherwise stated. AC are those who have set the standard. But you know what: Again off-topic: I just added the setting RAW to the T2H UI. Besides all the checks it makes it will disregard these checks in RAW ...

Go to advanced search