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: 142 ✭✭

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: 953 ✭✭✭

    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: 142 ✭✭

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

  • MDesignMDesign Member Posts: 953 ✭✭✭

    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: 142 ✭✭

    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.

Sign In or Register to comment.