Search found 19 matches

by mariosboarina
Mon Mar 11, 2013 9:11 pm
Forum: QCAD Developers and Contributors
Topic: Triggering function on (before) document save
Replies: 3
Views: 4665

Re: Triggering function on (before) document save

Yet one issue still stands: this way I can't intercept Save when it's not called from gui. One important case is when the user closes an unsaved drawing. In this case the original Save is called, by mdiChild.closeRequested.connect(). This connection is established in NewFile class which is invocated...
by mariosboarina
Thu Mar 07, 2013 8:20 pm
Forum: QCAD Developers and Contributors
Topic: Triggering function on (before) document save
Replies: 3
Views: 4665

Re: Triggering function on (before) document save

Thank you! That's what I needed.
Also, this way I can do both pre and post operations.
by mariosboarina
Thu Mar 07, 2013 4:40 pm
Forum: QCAD Developers and Contributors
Topic: Triggering function on (before) document save
Replies: 3
Views: 4665

Triggering function on (before) document save

Hi, I have some external data files which I'd like to keep updated accordingly to the drawing document. So I have to save them when the user saves the document, and make renamed copies when the user does a SaveAs. I wouldn't modify original QCad scriptings and so I'm trying somehow to intercept Save...
by mariosboarina
Sat Feb 16, 2013 2:13 pm
Forum: QCAD Troubleshooting and Problems
Topic: Snap problem, entities inside block
Replies: 7
Views: 7638

Re: Snap problem, entities inside block [SOLVED (workaround)

Finally, I almost found out what's the matter! Sure I found out a difference between the 2 drawings I attached: origin of blocks in the problematic drawing is different from (0,0) and I think this is not somehow contemplated by Snap algorithm (or perhaps it makes some noise over it or over some spat...
by mariosboarina
Sat Feb 16, 2013 1:56 pm
Forum: QCAD Developers and Contributors
Topic: Macro to solve snap problem (reset origins to (0,0))
Replies: 0
Views: 5519

Macro to solve snap problem (reset origins to (0,0))

Hi, I posted some days ago my solution to a snap problem to entities (circles centers, etc.) inside blockReferencesEntities (see post http://www.qcad.org/rsforum/viewtopic.php?f=33&t=2319 ). The problem (IMO) was I had drawings with blocks origin different (or distant) from (0,0) and this (somehow) ...
by mariosboarina
Mon Feb 11, 2013 12:54 pm
Forum: QCAD Troubleshooting and Problems
Topic: Snap problem, entities inside block
Replies: 7
Views: 7638

Re: Snap problem, entities inside block

Sorry, perhaps one thing I didn't mention :oops: : I'm not using Auto snap mode, but instead I activate Center mode before selecting. In fact with Autosnap I can replicate J-J behaviour; instead, using Center snap, I have some drawings which snap to centers and some which doesn't. With Center snap a...
by mariosboarina
Fri Feb 08, 2013 3:59 pm
Forum: QCAD Developers and Contributors
Topic: blockReference permanent identifier
Replies: 4
Views: 5272

Re: blockReference permanent identifier

Ok, it is working wothout any problems. :D I saved and resored after reopening an integer ID for some blockRefs. I'm testing it since days and non problem outcame. I've also tried exporting in Autocad, modifing and re-importing it, and all is fine. Here's the snippet I tried out: MyCommand.prototype...
by mariosboarina
Fri Feb 08, 2013 3:38 pm
Forum: QCAD Troubleshooting and Problems
Topic: Snap problem, entities inside block
Replies: 7
Views: 7638

Re: Snap problem, entities inside block

Ok, it seems reasonable, but in some way the most of drawings don't have this problem. For example, see attached drawing, in which snaps works perfectly from outside blockRefs: test snap ok.dxf So, there is somehow a way to access snap points in subentities without exploding blockRefs. Maybe some sc...
by mariosboarina
Mon Feb 04, 2013 9:21 am
Forum: QCAD Troubleshooting and Problems
Topic: Snap problem, entities inside block
Replies: 7
Views: 7638

Re: Snap problem, entities inside block

It is the export of an annotation view froma a 3D CAD.
(I verified arcs to be arcs and Z coordinates to be 0)
by mariosboarina
Fri Feb 01, 2013 7:42 pm
Forum: QCAD Troubleshooting and Problems
Topic: Snap problem, entities inside block
Replies: 7
Views: 7638

Snap problem, entities inside block

Hi I have a problem with snap on entities inside a block reference. It seems it cannot sense centers, midpoints etc of geometry inside references. If I cut+paste the blockrefs in a new document it works without problem. In attachment, the incriminated drawing. I don't have the problem with other dra...
by mariosboarina
Mon Jan 28, 2013 11:59 am
Forum: QCAD Developers and Contributors
Topic: blockReference permanent identifier
Replies: 4
Views: 5272

Re: blockReference permanent identifier

Ok, I surrender, I think there's no solution, I didn't find any :( I'll try attaching an XData to interested entities and then query for them on drawing opening, hoping this isn't going to cause compatibility problems. As a consequence I'll have to start QCad within a .bat, with the -enable-xdata op...
by mariosboarina
Mon Jan 21, 2013 6:40 pm
Forum: QCAD Developers and Contributors
Topic: blockReference permanent identifier
Replies: 4
Views: 5272

blockReference permanent identifier

Hi, I can't find a way to permanently identify a blockReferenceEntity. I need it as key to an external xml db. - I tried both Id and Handle, but they change on save-close-reopen of QCad; Id always changes, Handle changes after modification to other elements of the drawings (adding blocks). - It's be...
by mariosboarina
Fri Dec 28, 2012 11:49 am
Forum: QCAD Developers and Contributors
Topic: Scripting question, add custom property
Replies: 4
Views: 8842

Re: Scripting question, add custom property

Ok so I'll use it very carefully; better: I'll search an alternative way if possible what I really need is a little thing, actually: a way to store permanently at least one string (e.g. an external file name), somewhere in the saved drawing; maybe USERI1, USERI2, etc. of known variables are free to ...
by mariosboarina
Thu Dec 27, 2012 3:49 pm
Forum: QCAD Developers and Contributors
Topic: Scripting question, add custom property
Replies: 4
Views: 8842

Re: Scripting question, add custom property

Hi, I've tried setting properties as described (attaching to a block, then to a blockReference). No problem in setting and getting, but setted properties seem not to be permanent: if I save, close QCad, and then reopen it, I find no property attached, but only a kind of ",RPropertyAttributes(0x6bbe2...
by mariosboarina
Thu Dec 27, 2012 2:16 pm
Forum: QCAD Developers and Contributors
Topic: Re: Movement animation - update problem [SOLVED]
Replies: 5
Views: 5731

Re: Movement animation - update problem

Ok. Tested. It works perfectly.
Thank you again.

Go to advanced search