Image sizing

shawn_franklin
shawn_franklin Member Posts: 2 EDU

I can’t get in shape to resize my picture based on dimensioning something within it. Trying to do the dimension as soon as I import the image but no go. All the tutorials out there show making a line and dimension it then the image will resize but my line goes to the new dimension but the image doesn’t grow with it. What am I doing wrong? Thanks

Answers

  • jelte_steur_info
    jelte_steur_info Member Posts: 683 PRO

    It'll only work if the line is constrained to the image box. This can be achieved in a relative fashion using variables, but it's not very intuitive or easy in my experience.

    You could also try this:
    https://forum.onshape.com/discussion/20339/image-new-custom-feature

  • MDesign
    MDesign Member Posts: 1,472 PRO
    animate.gif

    Once you see it/do it. it doesn't get much easier. No constraints necessary in fact discouraged probably, ha. You can constrain say a corner of the image then scale it, but you can't locate it with dimensions and then scale it. Scaling must be done first with a single dimension.

    Developers note: this is an example of why I dislike the transform tool with a passion for scaling there is no easy method to scale geometry without taking measurements and doing the math to get the scale factor that the tool needs for imput..

  • MDesign
    MDesign Member Posts: 1,472 PRO

    If you have any other dimensions or dimension-ally constrained geometry in the sketch it doesn't work.

  • vanowm
    vanowm Member Posts: 139 ✭✭
    edited June 2025

    In my experience the image size can be changed by drawing a line inside the image and add dimension constrain to it. It only works on first dimension.

    I could be wrong but if the image was added later in the drawing, when other dimensions present it won't work without constraining the line to the image boundaries.

    [EDIT]

    and that's exactly what @MDesign said and I can't delete my comment…