Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Relative constraints on dxf/dwg imports or copied sketches in general (Blocks in SW)

XanoXano Member Posts: 3
I need to emulate the relative constraints from SW called blocks, until the feature (hopefully becomes available)

What I do now results in an unconstrained sketch. If I update anything that moves my "positioning point" the relative positioning between the copied/imported sketch elements and the "positioning point" gets broken

I have a dwg with a somewhat complex geometry that I wish to extrude in a parts studio, positioned relative to other parts.

1. I am importing the dwg to a sketch,
2. Convert/dimension a point relative to other parts in my sketch (positioning point). 
3. Use transform with mate connectors to get the correct relative placement within the sketch.

I need the imported elements to move with the positioning point. (i don't really understand, why any of the imported elements move with the "positioning point" but some do - see the red circle).

The overall result is that the part studio I use for context, breaks with many updates on dimensions.





Comments

  • steve_shubinsteve_shubin Member Posts: 1,096 ✭✭✭✭
    edited November 2020
    @Xano

    First off, if you post a link to your document and provide details on exactly what it is that you were trying to do, that could possibly help some here in the forum to give you some guidance

    I’ve never used Solidworks. But I did look at a video regarding the blocks you mentioned

    In essence, it looks like you’re able to group sketch elements, then scale, then use fills or hatches within the lines

    So with Onshape, as long as there’s only one dimension on a sketch, you can change that one dimension, and the entire sketch will scale accordingly. 

    I’ve imported DWG’s into Onshape. I’ve scaled them up and down a bunch of times. Had no problems

    After many updates in the dimensions, if all you end up with is the vertical line and arc being out of place, then probably the easiest thing for you do is just move those back into place and do your extrude

    BUT,

    Your statement — The overall result is that the part studio I use for context, breaks WITH MANY UPDATES ON DIMENSIONS.

    I’m thinking to myself, If it were me that was making some part, where the dimensions are going to be changing MANY TIMES (UPDATES), where the sketch for the part references some other sketch or part, well I’d take the time to fully constrain all lines and arcs using numeric input &/or constrain by employing the coincident or use constraints to tie elements of the sketch to other sketches or parts

    Looking at the image of the DWG posted, you could break it down to 16 identical parts, provided you make some modification in the center section of the DWG

     



  • matthew_stacymatthew_stacy Member Posts: 487 PRO
    @Xano, there are a couple of related threads currently active in the forum.  All are focused on the same basic question, "How the heck do I constrain imported sketch geometry?"

    In your case, presumably you will never edit or revise the geometry because it's a standard extruded aluminum T-slot from 8020, Misumi, or some other vendor.  You just want to constrain the sketch geometry so that it doesn't get corrupted.  Starting with the DWG inserted into your sketch use the TRANSFORM tool to move the entire profile to the origin.  Then BOX SELECT the entire profile and apply the FIX constraint.  Depending on the geometry this will constrain most (possibly all if you are particularly lucky) of the sketch.  You may have to constrain a some sketch elements manually. 

    However, I recommend a different approach.  Download a solid model (Parasolids, STEP, SLDPRT, etc) rather than a DWG/DXF profile. 
    1. Import that solid into Onshape
    2. Sketch on the end face of the solid
    3. USE (project) the entire end face of the imported solid
    Typically that should suffice and the resulting sketch will be fully constrained.  I also like to hang a few driven dimensions on the profile for reference.  Here is an example:  https://cad.onshape.com/documents/567ebc8fcb4104cba426af99/w/ee0b16814fbbea5aae2d3a0d/e/84f6a89115e8fae2513c356b

    Also check out the BEAM and BEAM PROFILE GENERATOR feature scripts if you have not already done so.  Extruded aluminum T-slot is a perfect candidate for those tools.  @Neil@NeilCooke made a very helpful tutorial video on that topic.






Sign In or Register to comment.