Search found 9017 matches

by andrew
Tue Dec 16, 2014 9:29 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] RRay bug or misunderstanding?
Replies: 10
Views: 9377

Re: RRay bug or misunderstanding?

smf wrote:Thank you very much - so this prooves that I had another misunderstanding: I thought of a ray being infinite in both directions. :(
No. That would be an XLine (RXLine).
by andrew
Tue Dec 16, 2014 8:43 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] RRay bug or misunderstanding?
Replies: 10
Views: 9377

Re: RRay bug or misunderstanding?

Debug: first ray: RRay(RShape(address: "0x1795a20"), basePoint: RVector(818.375, 535.92, 0), directionVector: RVector(4.271, 15.938, 0)) Debug: second ray: RRay(RShape(address: "0x17962f0"), basePoint: RVector(173.915, 86.6006, 0), directionVector: RVector(15.9378, 4.27, 0)) So I've entered these r...
by andrew
Tue Dec 16, 2014 6:23 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] RRay bug or misunderstanding?
Replies: 10
Views: 9377

Re: RRay bug or misunderstanding?

I'm not at my desktop now, but these rays don't look like they intersect.
Perhaps enter these rays into a QCAD drawing..
by andrew
Tue Dec 16, 2014 4:56 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] RRay bug or misunderstanding?
Replies: 10
Views: 9377

Re: RRay bug or misunderstanding?

Bit complicated.. ;)

Can you output the rays used for the calculation:
qDebug("first ray:", rrd);
qDebug("second ray:", rra);
qDebug("result:", irda);
by andrew
Tue Dec 16, 2014 4:53 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: CXF file format description?
Replies: 6
Views: 13114

Re: CXF file format description?

Sure! I'm driving old HP-GL pen plotters from Python. I'm using the Shapely and Fiona libraries to handle 2D geometry and arbitrary vector file formats. HP-GL's text formatting is weak and old fashioned. If I'm able to use someone else's vector fonts, I'll be able to render complex characters as ve...
by andrew
Tue Dec 16, 2014 3:10 pm
Forum: QCAD Professional
Topic: Einige Tastaturkürzel ohne Funktion
Replies: 1
Views: 3333

Re: Einige Tastaturkürzel ohne Funktion

WV für Ansicht WB für Blockwerkzeuge Diese Tastenkürzen zeigen die entsprechenden Werkzeuge in der CAD Werkzeugleiste links an. Allerdings sind weder die Ansichtwerkzeuge noch die Blockwerkzeuge standardmässig in der CAD Werkzeugleiste vorhanden. Das müsste also erst so konfiguriert werden: Screen ...
by andrew
Tue Dec 16, 2014 3:04 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] RRay bug or misunderstanding?
Replies: 10
Views: 9377

Re: RRay bug or misunderstanding?

I'd have to see the actual coordinates to see if this is a bug. I like to test such situations in simple test scripts like this: File test.js: var r1 = new RRay(new RVector(10,10), new RVector(1,0)); var r2 = new RRay(new RVector(50,0), new RVector(0,1)); var inters = r1.getIntersectionPoints(r2); q...
by andrew
Tue Dec 16, 2014 11:54 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: CXF file format description?
Replies: 6
Views: 13114

Re: CXF file format description?

The format of the glyphs in .cxf files is: [<hex unicode>] <character (optional for better readability)> <'L' for line> <start x>,<start y>,<end x>,<end y> <'A for arc (CCW)'> <center x>,<center y>,<radius>,<start angle in degrees>,<end angle in degrees> <'AR for reversed arc (CW)'> <center x>,<cent...
by andrew
Mon Dec 15, 2014 7:38 pm
Forum: QCAD Troubleshooting and Problems
Topic: Autocad won't read dxf file
Replies: 8
Views: 9776

Re: Autocad won't read dxf file

I was not expecting entities out of view as usually when opening a file, auto zoom supposedly shows everything on the screen... The problem for auto zoom is that these invalid entities have no size and are ignored for auto zoom (like empty texts). This has actually been changed recently, no way you...
by andrew
Mon Dec 15, 2014 4:15 pm
Forum: QCAD Troubleshooting and Problems
Topic: Autocad won't read dxf file
Replies: 8
Views: 9776

Re: Autocad won't read dxf file

On this other drawing, I did the same but found nothing You likely found two entities but didn't see them getting selected because they're off the canvas: Screen Shot 2014-12-15 at 16.15.04.png Check also the status bar after running the selection filter: Screen Shot 2014-12-15 at 16.15.07.png
by andrew
Mon Dec 15, 2014 2:22 pm
Forum: QCAD Suggestions and Feedback
Topic: persisting QDoubeSpinBox
Replies: 2
Views: 6427

Re: persisting QDoubeSpinBox

Thanks. I've implemented these changes in:
https://github.com/qcad/qcad/commit/c9d ... 186857d864

On a side note: QCAD never uses QDoubleSpinBox but RMathLineEdit instead. RMathLineEdit allows the user to enter mathematical expressions such as "17.5/2" or "sin(32.5)*37".
by andrew
Mon Dec 15, 2014 2:09 pm
Forum: QCAD 'How Do I' Questions
Topic: [SOLVED] correctly add multiple blocks inside script
Replies: 7
Views: 7124

Re: correctly add multiple blocks inside script

The blockRefId in new RAttributeData(e.getData(), blockRefId, e.getTag())); refers to the block reference the attribute belongs to. Attributes have a life on their own though, as individual entities on the same level as the block reference. To check if an attribute is indeed linked to a block refere...
by andrew
Mon Dec 15, 2014 1:17 pm
Forum: QCAD Troubleshooting and Problems
Topic: Autocad won't read dxf file
Replies: 8
Views: 9776

Re: Autocad won't read dxf file

If the problem is the same, you can fix them as follows: - Load the file with QCAD - Show selection filter: View > Selection Filter - Entity Type: Dimension - Click left button to replace the current selection Screen Shot 2014-12-15 at 13.17.35.png - Check that no real, valid dimensions are selected...
by andrew
Mon Dec 15, 2014 12:50 pm
Forum: QCAD Troubleshooting and Problems
Topic: Autocad won't read dxf file
Replies: 8
Views: 9776

Re: Autocad won't read dxf file

There were indeed two invalid dimension entities in this file.
I've removed them and attached the fixed file.

This is the first time I've seen an error like this. Please let me know if it occurs again. Thanks.
by andrew
Sat Dec 13, 2014 9:01 pm
Forum: QCAD Community Edition
Topic: Select a printer
Replies: 5
Views: 30223

Re: Select a printer

You could, but that's not exactly straight forward and would very likely not fix this problem. I think actually that QCAD / Qt should be able to print to any printer that has been set up on your computer. So this might be a different problem after all. The error message "Before you can print, you ne...

Go to advanced search