Jump to content
bluebravo

Dynamic Blocks | Rotate Parallel Lines and Maintain Perpendicular Distance

Recommended Posts

bluebravo

Hello!

 

Quick FYI:

(1) I am a brand new forum member, but I have looked up CAD issues on CADTutor various times!

(2) I believe myself to be an intermediate level skilled CAD user

 

Goal:

 

I am trying to create a dynamic block of plywood that can be rotated, lengthened, and thickened. The block would contain two parallel lines and a hatch between them. I think I can achieve the lengthening with linear stretch and the thickening I can probably figure out, but I do need help with the rotation!

 

Please see image for desired result:

desiredresult.jpg

 

I have tried chained rotation actions, but the lines do not remain the same distance apart. Also, when all objects are rotated about the origin, the top line extrudes horizontally past the bottom (origin) which I do not want.

 

I am not sure how wordy to be with my explanation, so I will leave it at this for now. Let me know if I need to provide anything else! :)

Share this post


Link to post
Share on other sites
Ski_Me

I have tried to replicate the actions of the block you described but the one I make behaves as it should with none of the issues you described. Post a drawing with the block in it so we can get a better look at it.

Share this post


Link to post
Share on other sites
Ski_Me

I looked the block over and found that you had 2 rotation actions, 1 for each line. I deleted both actions and parameters and applied just one action and parameter and selected all the objects. I didn't try to figure out the stretch just the rotation. open the block in the block editor and look at what I did.

dynamic block_plywood attempts.dwg

Share this post


Link to post
Share on other sites
bluebravo

I had tried that but it results in the top line sticking out past the bottom one (please see image) which I do not want. So regardless of what angle the lines are rotated I want to top line to start directly above the start of the bottom line, while still maintaining the perpendicular distance apart.

unwanted.PNG

 

Thank you for your time!

Share this post


Link to post
Share on other sites
Ski_Me

If you look both lines maintain the same distance apart and the same length. Which I thought is what you wanted but now that I see what you are trying to do I better understand what you really want. However I'm not sure if this is possible. You want to be able to rotate a block and then trim it to the geometry it's attached to. I've never seen this done I don't even know if a LISP routine can do this. Regardless if you do figure out a way it will not be an automatic thing you will have to preform some sort of function to make it work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×