Move object from center bidirection

Move object from center bidirection

gary.wuEQ8E4
Contributor Contributor
311 Views
3 Replies
Message 1 of 4

Move object from center bidirection

gary.wuEQ8E4
Contributor
Contributor

I have a drawing that contains two parts. Part A can move left and right based on the center point of Part B. The moving distance must be between -90mm(Top left) and 90mm (Top right). 0mm means Part A is in the center position.

2022-10-21_22h52_48.png

However, I got some trouble creating this movement. It seems I can only create a movement that starts from 0 to a certain number. This means I have to place Part 1 at the top left and set up the max movement is 180mm. That's not the ideal way to do it.

 

Is there any good method to do a bidirectional move with 1 parameter (value from -90 to 90)?

0 Likes
312 Views
3 Replies
Replies (3)
Message 2 of 4

j.palmeL29YX
Mentor
Mentor

Something like >>that<<

 

 

(The embedded video is for my testing only)

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 4

gary.wuEQ8E4
Contributor
Contributor

Hey... Sorry for the late reply.

 

I was working on your suggestion. It solves the problem. However, it seems the constraint conflicts with my action parameters. The rotation action would cause abnormal activity on the block even after I removed the horizontal constrain and fixed constrain. 

 

Is there a better solution for this? Or how can I solve the rotation action issue?

0 Likes
Message 4 of 4

j.palmeL29YX
Mentor
Mentor

@gary.wuEQ8E4 wrote:

Hey... Sorry for the late reply.

 

... it seems the constraint conflicts with my action parameters.


 

It is always a bad idea to mix constraints and actions in the same block definition and in most cases it will fail. 

In your first post#1 there was no mention of a rotation parameter nor action, so I could not know that. Notwithstanding a few exceptions you should build the functionality of a dynamic block either using only dynamic parameters and actions or using only parametric constraints and dimensions.
If you need further help for your current problem let us know the complete requirements and needed functionality of the block. 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes