提示:
工装,检具类零件一般都有数模,该数模坐标系一般为车身坐标系。
建立坐标系,可以使用三点啮合生成坐标系,多点拟合坐标系,生成坐标。
基准有:三给基准圆孔,三个基准球,四个基准圆孔,四个基准球,三个(四个)基准方块。
构建坐标系方法:
拾取基准圆孔看其理论矢量信息和位置,以及直径。
RE:
一般在工装,检具类零件基准孔周围都有该基准孔的铭牌,上面有该基准孔的理论数据!
检查该数据是否与从数模上抓取的一致,若不一致以铭牌数据为准,进行修改!
对于 RationalDMIS工装,检具类零件验收复测,需要根据铭牌输入理论值!
如果CAD数模为零件数模,在CAD模型上无基准孔,此时需要按照工装(检具)铭牌输入理论值。
DMISMN/'Created by [山涧果子] on 星期四, 五月 25, 2017', 4.0
UNITS/MM, ANGDEC
WKPLAN/XYPLAN
PRCOMP/ON
TECOMP/ON
FLY/1.000000
MODE/PROG, MAN
SNSET/APPRCH, 2.000000
SNSET/RETRCT, 2.000000
SNSET/DEPTH, 0.000000
SNSET/SEARCH, 10.000000
SNSET/CLRSRF, 10.000000
RECALL/D(MCS)
SNSLCT/S(ROOTSN1)
GEOALG/CIRCLE, LSTSQR
GEOALG/ARC, LSTSQR
GEOALG/PLANE, LSTSQR
$$
$$
MODE/MAN
DECL/COMMON,INTGR,TB_XYZ
DECL/COMMON,DOUBLE,TB_1_X,TB_1_Y,TB_1_Z,TB_2_X,TB_2_Y,TB_2_Z,TB_3_X,TB_3_Y,TB_3_Z
TB_XYZ = PROMPT/TITLE,'请输入3个基准孔,理论坐标值!',TEXT,'基准圆孔 1#',TEXT,$
'X',EDIT,TB_1_X,TEXT,'Y',EDIT,TB_1_Y,TEXT,'Z',EDIT,TB_1_Z,TEXT,$
'基准圆孔 2#',TEXT,'X',EDIT,TB_2_X,TEXT,'Y',EDIT,TB_2_Y,TEXT,'Z',EDIT,$
TB_2_Z,TEXT,'基准圆孔 3#',TEXT,'X',EDIT,TB_3_X,TEXT,'Y',EDIT,TB_3_Y,TEXT,$
'Z',EDIT,TB_3_Z
F(CIR1) = FEAT/CIRCLE,INNER,CART, TB_1_X,TB_1_Y,TB_1_Z, 0,0,1, 10
$$ Empty VECBLD Block
RMEAS/CIRCLE, F(CIR1), 4, VECBLD, 2.000000, 3
ENDMES
F(CIR2) = FEAT/CIRCLE,INNER,CART, TB_2_X,TB_2_Y,TB_2_Z, 0.000000,0.000000,$
1.000000, 10.000000
$$ Empty VECBLD Block
RMEAS/CIRCLE, F(CIR2), 4, VECBLD, 2.000000, 3
ENDMES
F(CIR3) = FEAT/CIRCLE,INNER,CART, TB_3_X,TB_3_Y,TB_3_Z, 0.000000,0.000000,$
1.000000, 10.000000
$$ Empty VECBLD Block
RMEAS/CIRCLE, F(CIR3), 4, VECBLD, 2.000000, 3
ENDMES
F(CIR1) = FEAT/CIRCLE,INNER,CART, 2600.000000, 750.000000, 422.000000,$
0.000000, 0.000000, 1.000000, 10.000000
F(CIR2) = FEAT/CIRCLE,INNER,CART, 3400.000000, 750.000000, 422.000000,$
0.000000, 0.000000, 1.000000, 10.000000
F(CIR3) = FEAT/CIRCLE,INNER,CART, 2600.000000, -50.000000, 422.000000,$
0.000000, 0.000000, 1.000000, 10.000000
DMESW/COMAND,'3PtsCRDBestfitAveErr/OFF'
D(CRD1) = LOCATE/FA(CIR1), FA(CIR2), FA(CIR3)
$$ Set.CAD2PCS.CADM_1
$$ Set.CADViewCenter.CADM_1
DMISMN/'Created by [山涧果子] on 星期日, 九月 17, 2017', 4.0
UNITS/MM, ANGDEC
WKPLAN/XYPLAN
PRCOMP/ON
TECOMP/ON
FLY/1.000000
MODE/PROG, MAN
SNSET/APPRCH, 2.000000
SNSET/RETRCT, 2.000000
SNSET/DEPTH, 0.000000
SNSET/SEARCH, 10.000000
SNSET/CLRSRF, 30.000000
RECALL/D(MCS)
SNSLCT/S(LENOVO)
GEOALG/CIRCLE, LSTSQR
GEOALG/ARC, LSTSQR
GEOALG/PLANE, LSTSQR
$$
$$
MODE/MAN
F(CIR1) = FEAT/CIRCLE,INNER,CART, 1750.000000, -560.000000, 1400.000000,$
0.000000, -1.000000, 0.000000, 10.000000
$$ Empty VECBLD Block
RMEAS/CIRCLE, F(CIR1), 4, VECBLD, 3.000000, 3
ENDMES
F(CIR2) = FEAT/CIRCLE,INNER,CART, 350.000000, -560.000000, 1400.000000,$
0.000000, -1.000000, 0.000000, 10.000000
$$ Empty VECBLD Block
RMEAS/CIRCLE, F(CIR2), 4, VECBLD, 3.000000, 3
ENDMES
F(CIR3) = FEAT/CIRCLE,INNER,CART, 1750.000000, -560.000000, 700.000000,$
0.000000, -1.000000, 0.000000, 10.000000
$$ Empty VECBLD Block
RMEAS/CIRCLE, F(CIR3), 4, VECBLD, 3.000000, 3
ENDMES
DMESW/COMAND,'D(CRD1) = LOCATE/XYZDIR, XYZAXI, FA(CIR1), XYZAXI, FA(CIR2),$
XYZAXI, FA(CIR3), XYZAXI'