Aligning sketch items on a construction line

Aligning sketch items on a construction line

Anonymous
Not applicable
3,057 Views
16 Replies
Message 1 of 17

Aligning sketch items on a construction line

Anonymous
Not applicable

Hi,

 

I'm having a problem with trying to align several sketch items along a construction line. I'm setting these items up and trying to align the edges, and then will dimension the other sketch items off each other to get everything lined up perfectly. I tried a colinear constraint on these sketch items but it didn't seem to work. Would appreciate any recommendations any of you would have. Also, if you have ideas about how to do this better or more efficiently I would be all ears. Screencast below to give you more of an idea of what' I'm talking about.

 

https://knowledge.autodesk.com/community/screencast/a05f3d7c-84f8-4fb4-909d-09df7bcdd356

0 Likes
Accepted solutions (3)
3,058 Views
16 Replies
Replies (16)
Message 2 of 17

MoshiurRashid
Advisor
Advisor

Hi

 

Thanks for posting. Without a view or image sketch, we cant help you out. Please attach the f3d here with a picture about how you want to align them.

File> export> f3d

Moshiur Rashid
Autodesk Certified Instructor
ACP | CSWE
https://www.autodesk.com/expert-elite/overview

LINKEDIN | FACEBOOK

0 Likes
Message 3 of 17

laughingcreek
Mentor
Mentor

I would probably just do 1 sketch of each shape, extrude, and pattern additional bodies (or components) out the way I wanted it laid out.

but it is hard to know what your issue is with out the model.  you probably have a constraint somewhere that's not letting things move.

0 Likes
Message 4 of 17

g-andresen
Consultant
Consultant
Accepted solution

Hi,

1. Align only works for bodies, not for sketch elements

 

2. Constraints are your tool in sketches > they need an active sketch to be used.

 

günther

0 Likes
Message 5 of 17

jeff_strater
Community Manager
Community Manager

@Anonymous - Colinear should work, as long as all the items are in the same sketch, and both items are lines.  If you share your design we can take a look.  However, a couple of comments:

 

  • colinear (or any sketch constraint) will only affect the two lines being constrained.  Unless you have your "shapes" well-constrained/dimensioned within themselves, then a constraint or dimension may distort your shape
  • you could, as suggested here, define each shape as a sketch inside of its own component, and use Joints or Align to align them - this is one way around the problem above, but takes more work

 


Jeff Strater
Engineering Director
0 Likes
Message 6 of 17

Anonymous
Not applicable

Hi,

 

Thanks for your response. I have attached a copy of the file here to help you see what I'm trying to do. Thanks for your recommendations.

0 Likes
Message 7 of 17

Anonymous
Not applicable

Jeff, I will try that. Thank you.

0 Likes
Message 8 of 17

jeff_strater
Community Manager
Community Manager

in the screencast below, I show how to go about using the first method.  The basic idea is to dimension/constrain one of the shapes so that it is fully self-constrained.  To test that, I usually just pick up and drag one of the lines.  That shows you whether it is constrained, and also gives clues about what is unconstrained.  A trick is that you can hit ESC to abort the drag.  So, drag, ESC, add some dimensions, drag again, etc.  Once it moves nicely, then colinear should work OK.

 


Jeff Strater
Engineering Director
0 Likes
Message 9 of 17

jeff_strater
Community Manager
Community Manager
Accepted solution

this is weird.  I thought I posted this before.  Maybe the spam filter grabbed it.  See the screencast below for some tips on how to constrain each sketch shape.  The idea is you try to drag it, see what happens, use ESC to cancel the drag, add more dimensions, etc.  Once it is self-constrained, you can use colinear to constrain it to something else

 


Jeff Strater
Engineering Director
0 Likes
Message 10 of 17

Anonymous
Not applicable

Great! Thank you very much. 😃

0 Likes
Message 11 of 17

Anonymous
Not applicable

Hi Jeff,

 

Thank you for your help. I'm having trouble replicating what you show on your screen cast. I seemed to have fully constrained/dimensioned my drawing as you have but it is not aligning as yours did in your video. i have included a screencast showing you what I mean.  Take a look and let me know what you think I did wrong.

0 Likes
Message 12 of 17

jeff_strater
Community Manager
Community Manager

sorry for the delay, @Anonymous .  It looks like your screencast didn't make it into the post.  Sometimes posting screencasts is finicky.  If nothing else, just paste a link to it here.  It's probably something simple, it would be good to figure out what is different with your design.

 


Jeff Strater
Engineering Director
0 Likes
Message 13 of 17

Anonymous
Not applicable

Hi Jeff,

 

Sorry for the delayed response. I ended up finding a workaround, but in the interest of resolving this for others who might have the problem I wanted to follow-up. Here is a link to the screencast, hopefully it works. Let me know what you think I'm doing wrong. Appreciate the help.

 

https://autode.sk/2wRoqpP

 

0 Likes
Message 14 of 17

jeff_strater
Community Manager
Community Manager
Accepted solution

Thanks, @Anonymous - that looks like a solver bug to me.  As you showed, that upper section is fully self-constrained, so the colinear constraint should work to position that section with the line.  If you have that version of the design available, I'd like to see it.  I can try reproducing it from the original design as well.

 

The only thing I can suggest until I can see the design is to maybe Fix the construction line, to kind of kick the solver into one solution over another.  Also wonder whether the first  colinear constraint might be affecting the second, but that seems unlikely.

 


Jeff Strater
Engineering Director
Message 15 of 17

jeff_strater
Community Manager
Community Manager

I think I am starting to understand the problem somewhat.  I tried to reproduce your dimensioning scheme today, from a still shot of the video:

Screen Shot 2020-04-06 at 1.24.26 PM.png

 

sorry, hit "Post" too early.  Anyway, I was trying to reproduce this set of dimensions in the earlier version of the model.  And, I was unable to do so.   I got it to this point:

Screen Shot 2020-04-06 at 3.26.12 PM.png

and was unable to add the circled dimensions, without over-constraining the sketch, so they get added as driven dimensions.

 

I noticed a few strange things in your design:

Screen Shot 2020-04-06 at 3.23.52 PM copy.png

 

There are a couple of dimensions that exist on the same geometry, one driven, one driving.  I don't think that is a problem, but I also don't think that I can say for certain that it is NOT a problem, either.  I also noticed that the angle dimensions indicated were different from each other.  Not sure if that was intentional, but given how symmetric this section is, I was surprised that those angles are different.

 

So, what I think is happening is not that the colinear constraint is failing, but that the dimension system in this block of stuff is already in not good shape, and the colinear constraint just reveals it.  My recommendation would be to delete a bunch of these dimensions, and try to re-dimension the geometry again, and see if you can get a minimal set of dimensions.  I'll try to do that now, and see what I can come up with.


Jeff Strater
Engineering Director
0 Likes
Message 16 of 17

jeff_strater
Community Manager
Community Manager

this is the minimal set of dimensions I could come up with that is in line with your scheme, but works with the colinear constraint to a fixed vertical line:

Screen Shot 2020-04-06 at 3.52.23 PM.png

 

There are plenty of dimensioning approaches that would also work.  The next step I did was to relate the various duplicate values to each other using an equation:

Screen Shot 2020-04-06 at 3.52.23 PM.png

 

This should make it a bit more stable - make sure that these values don't diverge from each other.

 


Jeff Strater
Engineering Director
0 Likes
Message 17 of 17

Anonymous
Not applicable

Hi Jeff,

 

Yes, I think you are exactly right. This was probably the most complicated piece I had tried designing up until this point and i realized after a while that my first stab at dimensioning it was pretty sloppy. I ended up completely drawing it again and dimensionning it again using the tips you suggested and once I did that it was much easier. Appreciate the help.

0 Likes