Search found 50 matches

by Taygete
Wed Apr 01, 2015 2:10 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [INFO] Debugging QCAD C++ plugin using pro features
Replies: 0
Views: 5597

[INFO] Debugging QCAD C++ plugin using pro features

Hi All, If anyone has wanted to debug their QCAD C++ Plugin using the released Pro version of QCAD then the following may be of interest. An issue I had was I use custom properties in my plugin that need to be saved out with the file, however if I try loading the file back into QCAD using a debug bu...
by Taygete
Tue Mar 24, 2015 9:14 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] Snapping restrictions
Replies: 6
Views: 9417

Re: Snapping restrictions

Hi Andrew, Thanks for the info. It worked okay this time, I had tried calling setSnapRestriction previously on an earlier build of QCAD (version 3.6.1 I think) and couldn't get it to work however it works fine on 3.9.1. I also needed to include the RestrictAngleLength.js script include("scripts/Snap...
by Taygete
Sat Mar 21, 2015 8:32 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] Snapping restrictions
Replies: 6
Views: 9417

Re: Snapping restrictions

Hi Andrew, Thanks for the information. That got me a bit closer, the "Restrict Angle or Length" button in the CADTools is highlighted however I still don't get the "Restrict Angle or Length" ui components added to my tools optionsbar until I click the "Restrict Angle or Length" button on the CADTool...
by Taygete
Fri Mar 20, 2015 12:36 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] Snapping restrictions
Replies: 6
Views: 9417

Re: Snapping restrictions

Hi Andrew, Thanks for the guidance. I had tried this previously but without success, so I tried again but it still doesn't add the "Restrict Angle or Length" ui components to my tools optionsbar. The only way I can get it too work is if I physically click the option from the CAD Tools bar. I was hop...
by Taygete
Wed Feb 25, 2015 9:20 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] Snapping restrictions
Replies: 6
Views: 9417

[SOLVED] Snapping restrictions

Hi Andrew, I was wondering if there is a way to switch on snapping restrictions from within a script without the user having to select the restriction from the snap tools palette? I can see you allow a user to enable the restrict angle length in the Line2P.js script but this is enabled via a button ...
by Taygete
Fri Feb 20, 2015 9:18 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: REntity::Id and RObject::ParentId
Replies: 3
Views: 7962

Re: REntity::Id and RObject::ParentId

2. I found that RObject carries a member ParentId. Is it already used in QCAD, and, if yes, for what purpose? If not, can I use it in my application to build up some Parent-Child-Relationship which stays intact in the cases mentioned above? The reason for asking is that in my application I need to ...
by Taygete
Tue Jan 27, 2015 12:23 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++,Modifyng entities moves them to current layer
Replies: 2
Views: 5723

Re: C++,Modifyng entities moves them to currently selected l

andrew wrote:Try:
modOp->addObject(entity, false);
False here indicates that you don't want to use the current attributes and layer for the entity (default).
Thanks Andrew, that solved the issue :)

Andrew.
by Taygete
Mon Jan 26, 2015 6:39 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++,Modifyng entities moves them to current layer
Replies: 2
Views: 5723

[SOLVED] C++,Modifyng entities moves them to current layer

Hi Andrew, I am seeing something odd when modifying entities. If I modify a number of entities (each on a different layer) then call applyOperation it seems to be changing the entities layer to the documents currently selected layer. I thought I could overcome this by calling the entities setPropert...
by Taygete
Mon Jan 26, 2015 5:50 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++ unresolved external
Replies: 10
Views: 12172

Re: C++ unresolved external

Hi Andrew, Including the qcad/shared.pri into my .pro file has solved the link error so thanks for that, I am however not seeing what I thought would happen with setProperty method call so I will create a new thread regarding that issue. For anyone interested with regards the solution: Include the q...
by Taygete
Mon Jan 26, 2015 3:24 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++ unresolved external
Replies: 10
Views: 12172

Re: C++ unresolved external

OK, thanks. Are you compiling / linking a plugin, an additional library or an application? Are you including qcad/shared.pri in your .pro? Hi Andrew, I am building a qt plugin which runs within the QCAD application. I am not including the qcad/shared.pri in our .pro file, I didn't realise I needed ...
by Taygete
Mon Jan 26, 2015 12:24 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++ unresolved external
Replies: 10
Views: 12172

Re: C++ unresolved external

Strange. It sure looks like the qcadcore is not loaded or that the symbols are not being exported. Are you using the default .pro files provided with the QCAD sources or your own setup? Are you linking against the QCAD DLLs or static libraries? Hi Andrew, I am using the default .pro files as provid...
by Taygete
Mon Jan 26, 2015 11:30 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++ unresolved external
Replies: 10
Views: 12172

Re: C++ unresolved external

OK, thanks. Did you compile the QCAD sources yourself or are you using the DLLs from one of our downloadable packages? I have built them myself, however this is the only issue (and has always been an issue since I started working with QCAD) I have with regards link errors. I am currently building a...
by Taygete
Mon Jan 26, 2015 11:15 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++ unresolved external
Replies: 10
Views: 12172

Re: C++ unresolved external

Please indicate what platform and platform version you are on (Windows, Linux, Mac OS X) and what compiler and compiler version you are using (gcc, clang, mingw, msvc, etc). Thanks. Sorry Andrew, forgot that info. I am building on Windows 7 x64, VS2010. Qt Version: 4.7.4 Compiler: MSVC++ 10.0 (2010...
by Taygete
Sun Jan 25, 2015 5:58 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [SOLVED] C++ unresolved external
Replies: 10
Views: 12172

[SOLVED] C++ unresolved external

Hi Andrew, I have had an issue for a while now whenever I try to use setProperty within C++ code, I've previously managed to work around it but I wanted to flag it up with you to see if you have a solution. If I use the following code as an example QSharedPointer<REntity> entity = docInterface->getD...
by Taygete
Fri Dec 05, 2014 10:08 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Multiple snap types
Replies: 6
Views: 7123

Re: Multiple snap types

Hi Andrew,

Thanks for the input, I will take a look at this after grabbing the latest source from git.

Thanks,

Andrew.

Go to advanced search