Export to .oma for eyeglass frames

Hello!

I am currently designing some frames for eyeglasses. Now I need to export some shapes of glasses as .oma file. With this type of file it is possible to let the glasses cut into the correct shape at the manufacturer of the glasses. Usually the file is created by a machine called “tracer” which you can find at every optician. The machine scans the profile of the frame of the eyeglasses.

Is there any possibility to convert the CAD-shape directly into .oma with Rhino?

I think, the .oma-file includes just many points of the contour as well as height and distance of the center of the eye.

Maybe there´s also a way to create this file with grasshopper. But unfortunatelly I have no skills in Grasshopper to do that. Can anybody help?

As an example I show you the content of an oma-file:

ANS=TRC
REQ=FIL
DO=B
DEV=TRC
JOB=“”
MODEL=
MNAME=
VEN=ITK
OMAV=3.07
_UMSJOB=“”
CIRC=127.04;127.04
HBOX=50.00;50.00
VBOX=30.00;30.00
ZTILT=0.00;0.00
FCRV=0.00;0.00
_TRCSIDE=B
_ACTIVETVER=3.2
_ACTIVETID=0
FTYP=0
ETYP=-1
TRCFMT=1;1024;E;R;P
R=2443;2435;2427;2418;2410;2402;2358;2345
R=2376;2367;2359;2350;2342;2333;2324;2315
R=2306;2297;2289;2280;2271;2262;2253;2245
R=2236;2227;2218;2208;2200;2191;2181;2173
R=2164;2155;2146;2137;2128;2119;2111;2102
R=2093;2084;2075;2066;2057;2048;2039;2031
R=2022;2014;2007;1999;1991;1983;1975;1967
R=1960;1952;1944;1936;1928;1921;1915;1908
R=1901;1894;1887;1881;1874;1867;1860;1853
R=1846;1839;1833;1826;1821;1814;1808;1801
R=1795;1789;1782;1776;1770;1764;1758;1753
R=1748;1744;1739;1734;1729;1723;1719;1714
R=1709;1704;1699;1695;1691;1687;1683;1679
R=1675;1671;1667;1663;1659;1655;1651;1647
R=1643;1639;1636;1632;1629;1626;1623;1619
R=1616;1613;1610;1606;1603;1600;1597;1594
R=1591;1589;1586;1583;1581;1578;1576;1573
R=1571;1568;1565;1563;1561;1558;1556;1554
R=1552;1550;1549;1547;1545;1543;1541;1540
R=1538;1536;1534;1533;1531;1529;1528;1526
R=1525;1523;1522;1521;1519;1518;1516;1515
R=1514;1512;1511;1510;1508;1507;1506;1505
R=1504;1503;1502;1502;1501;1500;1499;1498
R=1497;1497;1496;1495;1494;1494;1493;1492
R=1492;1491;1491;1490;1490;1489;1489;1488
R=1488;1488;1487;1487;1486;1486;1486;1485
R=1485;1485;1484;1484;1484;1483;1483;1483
R=1483;1482;1482;1482;1482;1482;1482;1482
R=1482;1482;1483;1483;1483;1483;1484;1484
R=1485;1485;1485;1486;1486;1486;1487;1487
R=1487;1487;1487;1487;1487;1488;1488;1488
R=1488;1488;1488;1488;1489;1489;1489;1489
R=1490;1490;1491;1493;1493;1494;1496;1497
R=1498;1499;1500;1501;1502;1503;1505;1506
R=1507;1508;1509;1509;1510;1510;1511;1511
R=1512;1512;1513;1513;1514;1514;1515;1515
R=1516;1517;1517;1518;1520;1521;1522;1524
R=1525;1527;1528;1529;1531;1532;1534;1535
R=1537;1538;1540;1541;1543;1544;1546;1548
R=1549;1551;1553;1554;1556;1558;1560;1561
R=1563;1565;1567;1569;1570;1572;1573;1575
R=1577;1578;1580;1582;1583;1585;1587;1588
R=1590;1592;1594;1595;1598;1600;1603;1605
R=1608;1611;1613;1616;1619;1621;1624;1627
R=1630;1633;1635;1638;1641;1644;1647;1650
R=1653;1655;1658;1661;1664;1667;1670;1673
R=1676;1679;1682;1685;1688;1691;1694;1697
R=1701;1704;1707;1710;1713;1716;1719;1722
R=1726;1729;1733;1737;1741;1745;1750;1754
R=1758;1763;1767;1771;1776;1780;1784;1789
R=1794;1799;1804;1810;1815;1820;1825;1831
R=1836;1842;1847;1853;1858;1864;1869;1875
R=1880;1886;1892;1897;1903;1909;1915;1920
R=1926;1932;1938;1944;1951;1957;1963;1971
R=1977;1984;1991;1998;2004;2012;2018;2025
R=2032;2040;2048;2056;2063;2071;2079;2087
R=2094;2102;2110;2118;2125;2133;2141;2149
R=2157;2165;2172;2180;2188;2196;2204;2212
R=2219;2227;2235;2243;2252;2260;2268;2276
R=2284;2292;2300;2308;2315;2324;2332;2340
R=2347;2355;2363;2371;2379;2387;2394;2402
R=2410;2416;2422;2426;2431;2436;2441;2446
R=2450;2455;2459;2464;2469;2472;2474;2477
R=2480;2482;2485;2487;2489;2492;2494;2496
R=2498;2499;2500;2500;2501;2501;2502;2502
R=2502;2502;2503;2503;2502;2499;2496;2493
R=2489;2486;2482;2479;2475;2472;2468;2465
R=2460;2455;2450;2445;2441;2435;2430;2425
R=2420;2415;2410;2405;2399;2393;2388;2382
R=2376;2370;2364;2358;2352;2346;2341;2334
R=2328;2322;2315;2309;2302;2296;2290;2283
R=2277;2270;2264;2257;2251;2245;2238;2231
R=2225;2218;2212;2205;2199;2192;2186;2179
R=2173;2167;2162;2156;2151;2146;2141;2136
R=2131;2126;2120;2115;2110;2105;2100;2094
R=2088;2082;2076;2070;2063;2058;2052;2046
R=2040;2034;2028;2023;2018;2012;2007;2002
R=1997;1992;1987;1982;1976;1971;1966;1961
R=1957;1952;1947;1941;1936;1931;1926;1921
R=1916;1911;1906;1901;1896;1891;1886;1881
R=1876;1871;1866;1861;1856;1851;1845;1840
R=1835;1830;1825;1821;1816;1811;1806;1802
R=1798;1794;1790;1786;1781;1777;1773;1769
R=1765;1761;1758;1754;1750;1746;1741;1736
R=1732;1727;1723;1718;1713;1709;1705;1700
R=1696;1691;1687;1683;1679;1675;1672;1668
R=1665;1661;1658;1655;1652;1649;1645;1642
R=1639;1636;1633;1630;1627;1624;1620;1617
R=1614;1610;1607;1604;1600;1597;1594;1591
R=1588;1585;1581;1578;1575;1572;1570;1567
R=1565;1562;1560;1558;1555;1553;1551;1548
R=1546;1544;1541;1539;1537;1535;1533;1531
R=1529;1527;1526;1524;1522;1520;1519;1517
R=1515;1514;1512;1510;1509;1507;1506;1504
R=1503;1501;1500;1499;1497;1496;1494;1493
R=1492;1491;1489;1488;1487;1486;1485;1484
R=1483;1482;1482;1481;1481;1480;1480;1480
R=1479;1479;1479;1479;1478;1478;1478;1478
R=1478;1477;1477;1477;1477;1477;1477;1477
R=1477;1477;1477;1477;1477;1477;1477;1477
R=1477;1477;1477;1478;1478;1479;1480;1481
R=1481;1482;1483;1484;1485;1486;1486;1487
R=1488;1489;1490;1491;1493;1494;1496;1497
R=1499;1500;1502;1503;1505;1507;1508;1510
R=1512;1513;1515;1517;1519;1521;1523;1525
R=1527;1529;1532;1534;1536;1538;1541;1543
R=1545;1547;1550;1552;1555;1558;1561;1564
R=1567;1571;1574;1577;1580;1583;1587;1590
R=1594;1597;1600;1604;1607;1611;1615;1619
R=1623;1627;1631;1635;1639;1643;1647;1651
R=1655;1660;1664;1669;1674;1679;1684;1689
R=1694;1699;1705;1710;1716;1721;1726;1732
R=1737;1743;1749;1755;1762;1768;1775;1781
R=1788;1794;1801;1807;1814;1821;1828;1835
R=1842;1850;1857;1865;1873;1880;1888;1896
R=1904;1911;1918;1926;1934;1942;1951;1960
R=1969;1979;1988;1997;2006;2016;2025;2035
R=2044;2054;2063;2073;2082;2092;2102;2112
R=2122;2132;2141;2150;2160;2170;2180;2190
R=2200;2210;2221;2231;2242;2251;2262;2273
R=2283;2294;2304;2315;2326;2333;2341;2349
R=2358;2366;2374;2382;2390;2398;2406;2414
R=2422;2429;2435;2440;2446;2452;2458;2464
R=2470;2476;2482;2487;2493;2497;2500;2502
R=2504;2507;2509;2512;2514;2516;2519;2521
R=2523;2523;2522;2520;2519;2517;2515;2514
R=2512;2510;2508;2506;2505;2500;2495;2490
R=2484;2480;2475;2470;2465;2459;2455;2449
TRCFMT=1;1024;E;L;P
R=2498;2496;2494;2492;2489;2487;2485;2482
R=2480;2477;2474;2472;2469;2464;2459;2455
R=2450;2446;2441;2436;2431;2426;2422;2416
R=2410;2402;2394;2387;2379;2371;2363;2355
R=2347;2340;2332;2324;2315;2308;2300;2292
R=2284;2276;2268;2260;2252;2243;2235;2227
R=2219;2212;2204;2196;2188;2180;2172;2165
R=2157;2149;2141;2133;2125;2118;2110;2102
R=2094;2087;2079;2071;2063;2056;2048;2040
R=2032;2025;2018;2012;2004;1998;1991;1984
R=1977;1971;1963;1957;1951;1944;1938;1932
R=1926;1920;1915;1909;1903;1897;1892;1886
R=1880;1875;1869;1864;1858;1853;1847;1842
R=1836;1831;1825;1820;1815;1810;1804;1799
R=1794;1789;1784;1780;1776;1771;1767;1763
R=1758;1754;1750;1745;1741;1737;1733;1729
R=1726;1722;1719;1716;1713;1710;1707;1704
R=1701;1697;1694;1691;1688;1685;1682;1679
R=1676;1673;1670;1667;1664;1661;1658;1655
R=1653;1650;1647;1644;1641;1638;1635;1633
R=1630;1627;1624;1621;1619;1616;1613;1611
R=1608;1605;1603;1600;1598;1595;1594;1592
R=1590;1588;1587;1585;1583;1582;1580;1578
R=1577;1575;1573;1572;1570;1569;1567;1565
R=1563;1561;1560;1558;1556;1554;1553;1551
R=1549;1548;1546;1544;1543;1541;1540;1538
R=1537;1535;1534;1532;1531;1529;1528;1527
R=1525;1524;1522;1521;1520;1518;1517;1517
R=1516;1515;1515;1514;1514;1513;1513;1512
R=1512;1511;1511;1510;1510;1509;1509;1508
R=1507;1506;1505;1503;1502;1501;1500;1499
R=1498;1497;1496;1494;1493;1493;1491;1490
R=1490;1489;1489;1489;1489;1488;1488;1488
R=1488;1488;1488;1488;1487;1487;1487;1487
R=1487;1487;1487;1486;1486;1486;1485;1485
R=1485;1484;1484;1483;1483;1483;1483;1482
R=1482;1482;1482;1482;1482;1482;1482;1482
R=1483;1483;1483;1483;1484;1484;1484;1485
R=1485;1485;1486;1486;1486;1487;1487;1488
R=1488;1488;1489;1489;1490;1490;1491;1491
R=1492;1492;1493;1494;1494;1495;1496;1497
R=1497;1498;1499;1500;1501;1502;1502;1503
R=1504;1505;1506;1507;1508;1510;1511;1512
R=1514;1515;1516;1518;1519;1521;1522;1523
R=1525;1526;1528;1529;1531;1533;1534;1536
R=1538;1540;1541;1543;1545;1547;1549;1550
R=1552;1554;1556;1558;1561;1563;1565;1568
R=1571;1573;1576;1578;1581;1583;1586;1589
R=1591;1594;1597;1600;1603;1606;1610;1613
R=1616;1619;1623;1626;1629;1632;1636;1639
R=1643;1647;1651;1655;1659;1663;1667;1671
R=1675;1679;1683;1687;1691;1695;1699;1704
R=1709;1714;1719;1723;1729;1734;1739;1744
R=1748;1753;1758;1764;1770;1776;1782;1789
R=1795;1801;1808;1814;1821;1826;1833;1839
R=1846;1853;1860;1867;1874;1881;1887;1894
R=1901;1908;1915;1921;1928;1936;1944;1952
R=1960;1967;1975;1983;1991;1999;2007;2014
R=2022;2031;2039;2048;2057;2066;2075;2084
R=2093;2102;2111;2119;2128;2137;2146;2155
R=2164;2173;2181;2191;2200;2208;2218;2227
R=2236;2245;2253;2262;2271;2280;2289;2297
R=2306;2315;2324;2333;2342;2350;2359;2367
R=2376;2345;2358;2402;2410;2418;2427;2435
R=2443;2449;2455;2459;2465;2470;2475;2480
R=2484;2490;2495;2500;2505;2506;2508;2510
R=2512;2514;2515;2517;2519;2520;2522;2523
R=2523;2521;2519;2516;2514;2512;2509;2507
R=2504;2502;2500;2497;2493;2487;2482;2476
R=2470;2464;2458;2452;2446;2440;2435;2429
R=2422;2414;2406;2398;2390;2382;2374;2366
R=2358;2349;2341;2333;2326;2315;2304;2294
R=2283;2273;2262;2251;2242;2231;2221;2210
R=2200;2190;2180;2170;2160;2150;2141;2132
R=2122;2112;2102;2092;2082;2073;2063;2054
R=2044;2035;2025;2016;2006;1997;1988;1979
R=1969;1960;1951;1942;1934;1926;1918;1911
R=1904;1896;1888;1880;1873;1865;1857;1850
R=1842;1835;1828;1821;1814;1807;1801;1794
R=1788;1781;1775;1768;1762;1755;1749;1743
R=1737;1732;1726;1721;1716;1710;1705;1699
R=1694;1689;1684;1679;1674;1669;1664;1660
R=1655;1651;1647;1643;1639;1635;1631;1627
R=1623;1619;1615;1611;1607;1604;1600;1597
R=1594;1590;1587;1583;1580;1577;1574;1571
R=1567;1564;1561;1558;1555;1552;1550;1547
R=1545;1543;1541;1538;1536;1534;1532;1529
R=1527;1525;1523;1521;1519;1517;1515;1513
R=1512;1510;1508;1507;1505;1503;1502;1500
R=1499;1497;1496;1494;1493;1491;1490;1489
R=1488;1487;1486;1486;1485;1484;1483;1482
R=1481;1481;1480;1479;1478;1478;1477;1477
R=1477;1477;1477;1477;1477;1477;1477;1477
R=1477;1477;1477;1477;1477;1477;1477;1477
R=1478;1478;1478;1478;1478;1479;1479;1479
R=1479;1480;1480;1480;1481;1481;1482;1482
R=1483;1484;1485;1486;1487;1488;1489;1491
R=1492;1493;1494;1496;1497;1499;1500;1501
R=1503;1504;1506;1507;1509;1510;1512;1514
R=1515;1517;1519;1520;1522;1524;1526;1527
R=1529;1531;1533;1535;1537;1539;1541;1544
R=1546;1548;1551;1553;1555;1558;1560;1562
R=1565;1567;1570;1572;1575;1578;1581;1585
R=1588;1591;1594;1597;1600;1604;1607;1610
R=1614;1617;1620;1624;1627;1630;1633;1636
R=1639;1642;1645;1649;1652;1655;1658;1661
R=1665;1668;1672;1675;1679;1683;1687;1691
R=1696;1700;1705;1709;1713;1718;1723;1727
R=1732;1736;1741;1746;1750;1754;1758;1761
R=1765;1769;1773;1777;1781;1786;1790;1794
R=1798;1802;1806;1811;1816;1821;1825;1830
R=1835;1840;1845;1851;1856;1861;1866;1871
R=1876;1881;1886;1891;1896;1901;1906;1911
R=1916;1921;1926;1931;1936;1941;1947;1952
R=1957;1961;1966;1971;1976;1982;1987;1992
R=1997;2002;2007;2012;2018;2023;2028;2034
R=2040;2046;2052;2058;2063;2070;2076;2082
R=2088;2094;2100;2105;2110;2115;2120;2126
R=2131;2136;2141;2146;2151;2156;2162;2167
R=2173;2179;2186;2192;2199;2205;2212;2218
R=2225;2231;2238;2245;2251;2257;2264;2270
R=2277;2283;2290;2296;2302;2309;2315;2322
R=2328;2334;2341;2346;2352;2358;2364;2370
R=2376;2382;2388;2393;2399;2405;2410;2415
R=2420;2425;2430;2435;2441;2445;2450;2455
R=2460;2465;2468;2472;2475;2479;2482;2486
R=2489;2493;2496;2499;2502;2503;2503;2502
R=2502;2502;2502;2501;2501;2500;2500;2499
DBL=15.00

Hello - if the ‘R=’ can be somehow understood as 3d points, there is some hope, but I’d need some more information about what that relationship is.

-Pascal

Hello Pascal!

Yes - I’m just figuring out what the “R=” and the other commands mean exactly. I will explain here as soon as I know more.

Thank you for your answer!

Seiml

Hello Seiml,

Curious to know whether have you understood the meaning of all the commands in the OMA file. Even i am keen to know about them

Hello raghothaman,

Unfortunately, I didn’t find out more about the OMA files. I temporarily gave up trying to find a digital solution. At the moment I’m going the cumbersome, analogue way: I cut out my shapes and have them scanned by an optician with their tracer.

If you find a way to export or convert data digitally, I’d be very interested.

A couple of minutes searching reveals that the standard governing the .OMA format* is here: data communication standard 3.13 (thevisioncouncil.org). It runs to 196 pages so creating a compliant exporter is not going to be a trivial task. But the information is there if you want to start programming.

Regards
Jeremy

* Not to be confused with the more widely known Sony music file format of the same name.