Search found 10 matches

by PeterR
Thu Feb 17, 2022 2:23 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Selection From Polyline
Replies: 4
Views: 4255

Re: Selection From Polyline

Thank you for the fast and helpful answer. After I added the "include" it works in the intended way. I suggested, that there is "include" missing, but I could not find it in the "Source Code" that I downloaded from your website(https://github.com/qcad/qcad/archive/v3.27.1.0.zip) or in the documentat...
by PeterR
Wed Feb 16, 2022 2:34 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Selection From Polyline
Replies: 4
Views: 4255

Selection From Polyline

Linux: Ubuntu 20.04 and Wayland qcad-3.27.1-pro-linux-qt5.14-x86_64 Hello, I want to change a rectangle build by 4 lines to a rectangle made by one polyline using a script. I use your script "ExThreePoints.js" to test functions for my script and copied it to my script ExTrial.js for modifications. I...
by PeterR
Wed Feb 11, 2015 2:14 pm
Forum: QCAD 'How Do I' Questions
Topic: Set different layers for different objects in a script
Replies: 7
Views: 6044

Re: Set different layers for different objects in a script

Sorry, there is a wrong coding: when block names exists, the result is not correct. This coding must be written before block is created. // existiert ein Block mit dem Namen name? var blocknames = document.getBlockNames(); blocknames.sort(); j=0; for (var i=0; i<blocknames.length; i++) { if (name ==...
by PeterR
Tue Feb 10, 2015 2:34 pm
Forum: QCAD 'How Do I' Questions
Topic: Set different layers for different objects in a script
Replies: 7
Views: 6044

Re: Set different layers for different objects in a script

No, there was no block reference. I tried and looked for examples and now I solved the problem. I added/changed the following lines: line1.setLayerId(document.getLayerId(layername)); line2.setLayerId(document.getLayerId(layername)); line3.setLayerId(document.getLayerId(layername)); line4.setLayerId(...
by PeterR
Fri Jan 30, 2015 7:37 pm
Forum: QCAD 'How Do I' Questions
Topic: Set different layers for different objects in a script
Replies: 7
Views: 6044

Re: Set different layers for different objects in a script

operation.addObject(textL, false); This was the first action I have done. But it did not solve the problem. The layer of the complete block is "Text". So I tried to add the layer of the lines. var layrectId = document.getCurrentLayerId(); var layrect = document.queryLayer(layrectId); operation.addO...
by PeterR
Fri Jan 30, 2015 4:40 pm
Forum: QCAD 'How Do I' Questions
Topic: Set different layers for different objects in a script
Replies: 7
Views: 6044

Re: Set different layers for different objects in a script

Sorry, I tried to realize your answer. But it did not work. Mostly I got syntax errors or nothing happened. Can you give me an example?
by PeterR
Fri Jan 30, 2015 2:46 pm
Forum: QCAD 'How Do I' Questions
Topic: Set different layers for different objects in a script
Replies: 7
Views: 6044

Set different layers for different objects in a script

Hello, I work with Xubuntu 14.04 (64 bit) and QCad Professional 3.7.0. The script BlocksFromFile reads lines from a csv-file and created blocks from the data stored in this file. It is used to start in a drawing, which was created by a template, where a few layers are defined. The blocks consists of...
by PeterR
Wed Dec 17, 2014 12:15 pm
Forum: QCAD Professional
Topic: Coding für Beispiel Scripts in QCad 3.7.0.0
Replies: 1
Views: 3539

Coding für Beispiel Scripts in QCad 3.7.0.0

Hallo

in QCad 3.7.0.0 befinden sich unter dem Menü "Diverses" "Skript Beispiele" verschiedene Skripte.

Wo finde ich das Coding für diese Skripte?

Mit freundlichen Grüßen!

Peter
by PeterR
Thu Oct 21, 2010 8:31 pm
Forum: QCAD Professional
Topic: Drucker Einrichtung unter Linux
Replies: 2
Views: 6153

Hallo andi8008, ich weiß nicht mehr genau, weshalb das Problem auftritt. Bei mir hat die folgende Lösung gezogen. Gib folgenden Befehl über das Terminal ein: sudo ln -sf /var/run/cups/printcap /etc/printcap Das funktioniert natürlich nur, wenn Du CUPS als Druckmanager einsetzt. Ich benutze Ubuntu 10...
by PeterR
Thu Oct 21, 2010 8:10 pm
Forum: QCAD Professional
Topic: Bedeutung der Einträge in der qcad.ini
Replies: 1
Views: 5269

Bedeutung der Einträge in der qcad.ini

Hallo ich habe ein paar Fragen: Gibt es eine öffentliche Doku zu den Einträgen in der qcad.ini? Ich habe den Hintergrund hellgrau eingestellt. Die Schriftfarbe für die im Menü Info abgelegten Befehle ( ip, ie, ia,..) ist weiß und daher schwer erkennbar. Wo kann ich die Schriftfarbe für die Ausgabe d...

Go to advanced search