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.

Options

Scaling an imported image

ProApeProApe Member Posts: 144 ✭✭

Hi,


I imported an image and found out that it is extremely easy to scale it to the correct dimension by placing a line over a line of known length in the image and entering the desired length and the image is scaled. I was very surprised at first.
Then I wanted to scale another image, but it doesn't work there: if a known line measures 26mm and I place a line of 26mm on it, the image is not scaled, but the line is drawn at 26mm and is either too short or too long and the dimensions of the image stay untouched.
What determines whether this method works or not?

Kind regards

ProApe

Comments

  • MDesignMDesign Member Posts: 955 ✭✭✭

    This is a known pro tip not sure who gets the credit. but you can't have any other dimensions or contraints in the sketch. create a seperate sketch for each image you want to use.

  • ProApeProApe Member Posts: 144 ✭✭

    I have imported it not only in a separate sketch but also in another Part Studio.

  • MDesignMDesign Member Posts: 955 ✭✭✭

    Can you post a link to the doc and more eyes can take a look to see if they see and issue.

  • ProApeProApe Member Posts: 144 ✭✭

    I have solved the matter differently, but give up this drawing anyway because it contains gears that are too complicated for me, but never mind, it's about the method: a line is placed on a line of known length in the picture, the two are placed in relation to each other and scaled by the result.
    e.g. a fictitious example: on the image there is a line of 56mm; if I place a line on it, it measures only 34mm; I divide 56 by 34 and get the factor (1.64705) by which the image must be enlarged, which I do with the transform tool.

    I was able to scale the image 4 (Part Studio 2) by putting a line on an existing and giving it the desired length, but that doesn't work with the image 8 (Part Studio 3).

    These are parts of a wall clock, but I don't want to construct one; it's all about training in Onshape.

    https://cad.onshape.com/documents/38ae6f7b11fd232d93cd7d1d/w/d800dbcc392a900cd2c8cdc1/e/67e151bcfa480dca932accfc?renderMode=0&uiState=687eb9e6096a2e5b18851390

  • eric_pestyeric_pesty Member Posts: 2,263 PRO

    I prefer to use the "image" FeatureScript as it provides better control.

    https://cad.onshape.com/documents/f7a45d78c374497d37c1d2cb/v/e55cc4b62eaac7ef75039ab2/e/557019cd8b843cc475681faf?jumpToIndex=1782

    I find it tends to be messy to try and add sketch elements in the same sketch as the picture so the fact the image end up in it's own feature isn't a drawback for me.

  • MDesignMDesign Member Posts: 955 ✭✭✭
    animate.gif

    scaling image 8 in part studio 3 works fine like any other image. you missed the detail that there can be no other dimensions or constraints as there were 2 dimensions on the circle preventing scaling with the line..

  • ProApeProApe Member Posts: 144 ✭✭
    edited 7:30AM

    #MDesign:"…you missed the detail that there can be no other dimensions or constraints as there were 2 dimensions on the circle preventing scaling with the line.."

    Logically this can't work if you've already drawn a dimensioned line (I can't figure out if it makes a difference whether the length is displayed or not; I assume that the line has its defined length whether it is displayed or not, so the scaling should not work even without the length displayed, but this would be in contradiction with what you demonstrate in your illustration where there is already, apart the line by which you scale, a circle and a construction line, so I don't really understand it), but I initially only drew a line based on which I wanted to scale, but nothing else happened except that my line was longer than the one in the image, whose dimensions did not change.
    The other method of scaling the factor that expresses the difference between the dimensions also works well, the more accurate you are, the better.

    #Eric_pesty: "I prefer to use the "image" FeatureScript as it provides better control."

    I don't understand how that works. When I open your link in a tab, what I see depends on whether I am logged in or not which is quite mysterious and confusing to me.

  • MDesignMDesign Member Posts: 955 ✭✭✭

    Logically 'no other' means nothing else besides that one dimension. Literally only one dimension can be present to get the scale to work.🤷‍♂️

Sign In or Register to comment.