Search found 13 matches

by woddy
Wed Jan 23, 2019 10:41 pm
Forum: QCAD 'How Do I' Questions
Topic: Getting error on plugin tutorial
Replies: 6
Views: 2262

Re: Getting error on plugin tutorial

Hello again, As i worked out the out the code and used different qt versions,minGW and MSCV i got different results. However in some cases i managed to get qcadexample.dll file i got, Plugin verification data mismatch in '.../plugins/qcadexample.dll' error on QCAD's about dialog. Also plugin name, v...
by woddy
Tue Dec 25, 2018 1:30 pm
Forum: QCAD 'How Do I' Questions
Topic: Where are QCAD scripts?
Replies: 9
Views: 2960

Re: Where are QCAD scripts?

Hey,

You can reach them from github https://github.com/qcad/qcad/tree/master/scripts. On the newer versions of Qcad they are compiled as plugin for faster load and less disk space as far as i know.
by woddy
Tue Dec 25, 2018 1:26 pm
Forum: QCAD 'How Do I' Questions
Topic: Getting error on plugin tutorial
Replies: 6
Views: 2262

Re: Getting error on plugin tutorial

Greetings again, By following https://adrianhenke.wordpress.com/2008/12/05/create-lib-file-from-dll/ this website i managed to create first def then lib files for qcadcore,gui and ecmaapi. (I tried to add them on attachment but seems like their file type is not supported) Then i tried to compile exa...
by woddy
Fri Nov 23, 2018 5:22 pm
Forum: QCAD 'How Do I' Questions
Topic: Getting error on plugin tutorial
Replies: 6
Views: 2262

Re: Getting error on plugin tutorial

Hello Andrew,
Thanks a lot for your answer and helpful approach. Do you mind sharing or letting me know the directory of qcadcore.lib, qcadgui.lib and qcadecmaapi.lib files? Im just trying to learn qcad more by following tutorials.
Thanks again
by woddy
Thu Nov 22, 2018 1:40 pm
Forum: QCAD 'How Do I' Questions
Topic: Getting error on plugin tutorial
Replies: 6
Views: 2262

Re: Getting error on plugin tutorial

Should i use LIBS += -L"C:/qcad-master" -lqcadcore LIBS += -L"C:/qcad-master" -lqcadgui LIBS += -L"C:/qcad-master" -lqcadecmaapi instead of LIBS += -lqcadcore -lqcadgui -lqcadecmaapi once i do that i got file format not recognized error. Do i need qcadcore.lib, qcadgui.lib and qcadecmaapi.lib files ...
by woddy
Wed Nov 21, 2018 8:15 pm
Forum: QCAD 'How Do I' Questions
Topic: Getting error on plugin tutorial
Replies: 6
Views: 2262

Getting error on plugin tutorial

Hello again and apologies for asking another newbie question. While i was practising on tutorials i did come across creating a Qcad Plugin one. I downloaded the source code exampleplugin.pro file (the one having RESOURCES = scripts.qrc) and then debug it in Qt Creator 4.7.2 Once i debugged it i got ...
by woddy
Tue Nov 13, 2018 1:56 pm
Forum: QCAD 'How Do I' Questions
Topic: How to set Linetype Scale
Replies: 1
Views: 1078

How to set Linetype Scale

Greetings again and apologies for bothering, This time im stuck chaning the linetype scale of my line by scripting. I can simply change the Linetype , Lineweight or even the color of the line by putting it on the defined layer but i couldnt manage to define transaction and hence setLinetypeScale ope...
by woddy
Fri Oct 26, 2018 12:52 pm
Forum: QCAD 'How Do I' Questions
Topic: Calling a variable from another js file
Replies: 1
Views: 996

Calling a variable from another js file

Greetings again, During scripting i noticed that my 1.js script is quite long and since its hard to follow, i want to do some calculations that i currently do on 1.js in 2.js I used export/import from ' ' statement but couldnt manage to send the variable 'first' under prototype.beginEvent in 1.js to...
by woddy
Thu May 17, 2018 12:18 pm
Forum: QCAD 'How Do I' Questions
Topic: Put a variable on qt's display widget
Replies: 1
Views: 1171

Put a variable on qt's display widget

Hello, recently i created a variable 'x' that changes whenever i run the script. Now i want it to be displayed on my .ui widget i created in qt. I know how to call an input text box value from qt to qcad script but i couldn't manage to change this value and display it on my widget. In other words, b...
by woddy
Mon Mar 26, 2018 3:06 pm
Forum: QCAD 'How Do I' Questions
Topic: Hatch creation and calling it from block
Replies: 1
Views: 1380

Hatch creation and calling it from block

Hello again, this time i wonder how can i create a hatch by using RHatchData and RHatchEntity. Let's assume i have created circle, var circle = new RCircleEntity (document,new RCircleData (p11,1)); how can i fullfil this circle by using RHatchEntity. Is there any example script of this? And secondly...
by woddy
Wed Mar 14, 2018 10:53 am
Forum: QCAD 'How Do I' Questions
Topic: [solved] deleteObject() usage
Replies: 2
Views: 1047

Re: [solved] deleteObject() usage

Thanks a lot i can do it now.
by woddy
Tue Mar 13, 2018 10:28 am
Forum: QCAD 'How Do I' Questions
Topic: [solved] deleteObject() usage
Replies: 2
Views: 1047

[solved] deleteObject() usage

Hello, I wrote a script action to draw circles on work screen by getting the radius and center from user. The RCircleEntity works fine it can draw circles and addObject adds them on screen. But what i want to do is to remove previous circle after user draws a new one. The past circle should be remov...
by woddy
Mon Mar 05, 2018 10:57 pm
Forum: QCAD 'How Do I' Questions
Topic: Getting cursor coordinate with mouse click
Replies: 1
Views: 851

Getting cursor coordinate with mouse click

Hello sorry for my newbie question but i tried quite a lot of ways to solve it.. I wonder how can i get the coordinate of my cursor with my left mouse button click. I tried QMouseEvent but seems like i have difficulties calling and defining it. I want to get the cursor x and y coordinate on script s...

Go to advanced search