Software Companions Support Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Jeon

Registered:
Posts: 5
Reply with quote  #1 

hello..


Gerber files are two other points.

I want to know the distance in mm.

gerber file format is RS-274X

it is your exsample VB6 source


Private Sub Scviewer_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim wx As Long
Dim wy As Long
x = x * 0.5
y = y * 0.5
Call Scviewer.ScreenToWorld(x, y, wx, wy)

Coordinates = Str(wx) + "," + Str(wy)
End Sub


Please..  help me..
thanks.

softcomp

Administrator
Registered:
Posts: 242
Reply with quote  #2 
Hi,

This will convert from screen units to mm for Gerber (rs274d and rs274x):

Dim wx As Long
Dim wy As Long
Call Scviewer.ScreenToWorld(x, y, wx, wy)

Dim xmm as Double
Dim ymm as Double
xmm = wx / 10000.0 * 25.4
ymm = wy / 10000.0 * 25.4

For Gerber format the internal DPI is 10000.

Support

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.