Reactors

Reactors

Anonymous
Not applicable
250 Views
2 Replies
Message 1 of 3

Reactors

Anonymous
Not applicable
Hi, Here is my problem. I have two entities: A and B A is reacator of B and B is reactor of A, such as: A->addPersistentReactor(B->objectId()) B->addPersistentReactor(A->objectId()) So, when I move A, B comes together and vice-versa. The problem happens when I select both of them (A and B at the same time) and ask to move. As a result both of them move but with the double distance that I ask to do. What happens is the following: A moves and brings together B. So, B moves again and brings together A, which results in the double displacement. Any help? Thanks very much, Felício. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/9/2004
0 Likes
251 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
So i think, if both entities are moved, the reactors should do nothing? If you are move it with AutoCAD command, take a look at the last selectionset you can get with: acedGetCurrentSelectionSet(curSelSet) with curSelSet.find(id, 0) you can find out if the other object are also inselectionset. Bernd
0 Likes
Message 3 of 3

Anonymous
Not applicable
Personally, I would put in timeout and transformation thresholds. So if object B is moved 0.1 seconds after object A and both transformations are 99% identical, you know you are probably duplicating the transform. What you do after that is up to you. :-) "Bruno" wrote in message news:41595457_1@newsprd01... > Hi, > > Here is my problem. > I have two entities: A and B > A is reacator of B and B is reactor of A, such as: > A->addPersistentReactor(B->objectId()) > B->addPersistentReactor(A->objectId()) > > So, when I move A, B comes together and vice-versa. > The problem happens when I select both of them (A and B at the same time) > and ask to move. As a result both of them move but with the double distance > that I ask to do. What happens is the following: A moves and brings together > B. So, B moves again and brings together A, which results in the double > displacement. > > Any help? > Thanks very much, > > Felício. > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.769 / Virus Database: 516 - Release Date: 24/9/2004 > >
0 Likes