switch between flush and mate

switch between flush and mate

Anonymous
Not applicable
979 Views
5 Replies
Message 1 of 6

switch between flush and mate

Anonymous
Not applicable
Is there a way to switch between flush and mate using macro?
thx
0 Likes
Accepted solutions (1)
980 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
From a quick look at the API docs, it looks like you would have to use
the info from the flush constraint to add a new mate contraint and then
delete the flush constraint, as far as I can see. I bet the UI does it the same
way.

Bob S.

"Chris" wrote in message news:[email protected]...
Is there a way to switch between flush and mate using macro?
thx
0 Likes
Message 3 of 6

Anonymous
Not applicable
As I remember that is what I do in KWiKSert

--
Autodesk Discussion Group Facilitator
http://discussion.autodesk.com/
"Bob S." wrote in message
news:[email protected]...
From a quick look at the API docs, it looks like you would have to use
the info from the flush constraint to add a new mate contraint and then
delete the flush constraint, as far as I can see. I bet the UI does it the
same
way.

Bob S.

"Chris" wrote in message
news:[email protected]...
Is there a way to switch between flush and mate using macro?
thx
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hi kent,
Can you post the code?
Thx
"Kent Keller" wrote in message
news:[email protected]...
As I remember that is what I do in KWiKSert

--
Autodesk Discussion Group Facilitator
http://discussion.autodesk.com/
"Bob S." wrote in message
news:[email protected]...
From a quick look at the API docs, it looks like you would have to use
the info from the flush constraint to add a new mate contraint and then
delete the flush constraint, as far as I can see. I bet the UI does it the
same
way.

Bob S.

"Chris" wrote in message
news:[email protected]...
Is there a way to switch between flush and mate using macro?
thx
0 Likes
Message 5 of 6

Anonymous
Not applicable
I took a quick look back at the code and it is a little to spread out to
post anything that would be helpful.

Basically in mine, I set up the transaction manager before making the
constraint, and then if the person clicks the flush button I undo the
transaction, and then re-run the constraint code which checks the state of
the buttons before making the constraint.

--
Kent Keller
Autodesk Discussion Forum Facilitator


"Chris" wrote in message
news:[email protected]...
Hi kent,
Can you post the code?
Thx
0 Likes
Message 6 of 6

Curtis_W
Consultant
Consultant
Accepted solution

adding a link to an ilogic API example to this old thread, as it came up in my search for an example:

 

https://forums.autodesk.com/t5/inventor-customization/how-do-you-convert-a-constraint-from-mate-to-f...

 EESignature

0 Likes