Tweaking the Settings
Now we have added the component into Eagle3d we need to tweak and fine-tune the settings.
- Now render your PCB, more than likely a couple of problems will show up. The first is your component is very small. so we need to tweak the scaling from within the component file we recreated in the previous steps.
> Jeremy wrote:
> Hey. I read over your tutorial on making Eagle3d components in Google
> Sketchup, and I wanted to thank you for saving me a considerable
> amount of time. I also found something you might have missed. Sketchup
> records units in mm
> (millimeters) but when su2pov plugin is run, it converts all the mm
> into inches (1mm -> .03937 inch). The problem is that Eagle3D
> interprets the numbers in the .inc files as in mm. So the best way to
> fix the problem is to scale up your drawing in Sketchup by 25.4 times
> (thus counteracting the plugin’s unit conversion).
- To scale the component scroll down to near the end of the file where you should see something like this
- tweak the settings that have numbers in them, the following worked for me
- Now the component should be close to the right size, but the offset is off.
- We now need to get the correct offsets, which is a bit ht and miss, but I found the following works best.
- Locate the component in the generated POV file (step 8 above)
- Change the translate values just after the macro name as shown below, the hit and miss comes in by taking a guess in what direction and value to use.
- We are heading in the right direction, so keep changing until it all lines up on that axis.
- looks like we are right on here, onto the next axis
- to change the next axis offset we need to modify the last value in the translate function
- Just about there
- finally looks right
- Now we have found the values we need to put them in the 3dusepac.dat file or else the next time we run the ulp script we will loose these settings
- In the line we added added to the 3dusrpac.dat file we need to add the values we have just fount to positions 15 and 1 7 as shown below.
- If this file is changed we need to re-run the ulp script to re-generate the POV file, then check that your values are there and renders correctly.
- The same process can be followed if the component is not rotated correctly. such as shown below
- change this value in the POV file to tweak the rotation side of things. change the value show below (-180) in this example the value that works for me is 90 once again this value must be updated in the 3dusrpac.dat file in position 14.
- Remember to re-run the ULP script to regenerate the POV file.Happy component creating !!!!!