Search found 6388 matches

by andrew
Fri Dec 13, 2019 8:28 am
Forum: QCAD Developers and Contributors
Topic: New library developer - Debugging
Replies: 3
Views: 67

Re: New library developer - Debugging

qDebug("message") writes to the system console from where QCAD was started (i.e. the terminal, stderr).

To output to the QCAD command line history widget, you can use EAction.handleUserMessage("message");
by andrew
Thu Dec 12, 2019 9:33 pm
Forum: Announcements
Topic: QCAD Snapshot 3.23.0.10
Replies: 0
Views: 80

QCAD Snapshot 3.23.0.10

QCAD 3.23.0.10 is a snapshot release. Snapshot releases are not intended for production use.

An intermediate change log is available at:
https://qcad.org/changelog

Update instructions for QCAD Pro or QCAD/CAM users can be found at:
https://qcad.org/customer-area
by andrew
Thu Dec 12, 2019 4:21 pm
Forum: QCAD Professional
Topic: Server nicht gefunden
Replies: 7
Views: 109

Re: Server nicht gefunden

FlyingEaglE: please post one question per topic, thanks.
by andrew
Thu Dec 12, 2019 2:22 pm
Forum: QCAD Professional
Topic: Server nicht gefunden
Replies: 7
Views: 109

Re: Server nicht gefunden

Vermutlich wird ein Snapshot verwendet? Diese können nicht auf Updates prüfen.
by andrew
Thu Dec 12, 2019 8:31 am
Forum: QCAD Developers and Contributors
Topic: Get the line number of an error
Replies: 2
Views: 79

Re: Get the line number of an error

You could use multiple try / catch blocks to narrow down the location.

Or leave away the try / catch and let the script debugger tell you where the error is (start QCAD with -enable-script-debugger).
by andrew
Thu Dec 12, 2019 8:29 am
Forum: Pre-sales Questions
Topic: Criar linhas ou arcos via ecmascrits, sem o uso do "simple.js"
Replies: 6
Views: 197

Re: Criar linhas ou arcos via ecmascrits, sem o uso do "simple.js"

Na consola de script: var doc = getDocument(); var di = getDocumentInterface(); var e = new RArcEntity(doc, new RArcData(new RVector(0,0), 20, 0,RMath.deg2rad(30), false)); var op = new RAddObjectOperation(e, "Adding an arc"); di.applyOperation(op); Os ângulos estão em rad. Os vetores são dados como...
by andrew
Wed Dec 11, 2019 8:13 pm
Forum: QCAD Troubleshooting and Problems
Topic: Import DWG files from AutoCad to QCAD.
Replies: 1
Views: 104

Re: Import DWG files from AutoCad to QCAD.

The drawing contains an OLE object in model space. OLE is a Windows technology that allows a 3rd party application to render contents embedded in another application (in this case Autocad).

QCAD does not support OLE.
by andrew
Wed Dec 11, 2019 10:16 am
Forum: QCAD Professional
Topic: Schraffureigenschaft "Von Objekt"
Replies: 1
Views: 63

Re: Schraffureigenschaft "Von Objekt"

Schraffuren verwenden in der Regel ein Schraffurmuster, das mit QCAD installiert wurde. Wird eine DXF/DWG Datei geladen, so kann es sein, dass die Datei ein Schraffurmuster enthält, welches nicht in QCAD enthalten ist. Deshalb werden Schraffuren zusammen mit dem verwendeten Muster in DXF/DWG gespeic...
by andrew
Wed Dec 11, 2019 10:13 am
Forum: QCAD Professional
Topic: Schraffureigenschaft "Von Objekt"
Replies: 1
Views: 63

Schraffureigenschaft "Von Objekt"

Von einem QCAD Benutzer:
Was bedeutet es, wenn eine Schraffur die Eigenschaft "Von Objekt" gesetzt hat (Wert "Ja")?
by andrew
Wed Dec 11, 2019 10:08 am
Forum: QCAD Professional
Topic: Eigene Schraffur
Replies: 2
Views: 104

Re: Eigene Schraffur

QCAD unterstützt das standard PAT-Format für Schraffurmuster, das auch von Autocad und vielen anderen CAD-Paketen verwendet wird. Online lassen sich unzählige kostenlose solche Schraffurmuster finden. Es gibt auch Software, um Schraffurmuster zu erstellen, wenn auch nicht kostenlos (soweit bekannt)....
by andrew
Wed Dec 11, 2019 10:03 am
Forum: QCAD Professional
Topic: Eigene Schraffur
Replies: 2
Views: 104

Eigene Schraffur

Von einem QCAD Benutzer:
Wie kann ich ein eigenes Schraffurmuster an QCAD hinzufügen?
by andrew
Tue Dec 10, 2019 8:19 pm
Forum: Pre-sales Questions
Topic: Criar linhas ou arcos via ecmascrits, sem o uso do "simple.js"
Replies: 6
Views: 197

Re: Criar linhas ou arcos via ecmascrits, sem o uso do "simple.js"

Por favor, forneça mais contexto. Que tipo de script você está escrevendo? Am ferramenta interativa com um menu / botão de ferramenta? Uma ferramenta de linha de comando? Você está experimentando com o console de script do QCAD? Você também pode encontrar muitos exemplos de scripts em: https://githu...
by andrew
Tue Dec 10, 2019 4:35 pm
Forum: Pre-sales Questions
Topic: Criar linhas ou arcos via ecmascrits, sem o uso do "simple.js"
Replies: 6
Views: 197

Re: Criar linhas ou arcos via ecmascrits, sem o uso do "simple.js"

Para adicionar um arco, você pode usar:

Code: Select all

var e = new RArcEntity(document, new RArcData(center, radius, angle1, angle2, reversed));
var op = new RAddObjectOperation(e, "Adding an arc");
di.applyOperation(op);
Onde "di" é o seu RDocumentInterface.
by andrew
Tue Dec 10, 2019 2:49 pm
Forum: QCAD/CAM
Topic: Modify Post Processor
Replies: 4
Views: 348

Re: Modify Post Processor

Thanks for your contribution.

Can we include this in future QCAD/CAM releases? We'd rename it to something like "MazakNexus510.js".
by andrew
Tue Dec 10, 2019 2:25 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: How to get currently editing block name in Script Shell
Replies: 1
Views: 195

Re: How to get currently editing block name in Script Shell

dfriasb wrote:
Sat Dec 07, 2019 3:59 pm
I can't find the way to get the Id of the block that I am editing right now.

Code: Select all

var blockId = doc.getCurrentBlockId();
dfriasb wrote:
Sat Dec 07, 2019 3:59 pm
I mean get document entities only inside some block...

Code: Select all

doc.queryBlockEntities(blockId);

Go to advanced search