当前位置:网站首页>Rationaldmis2022 advanced programming macro program

Rationaldmis2022 advanced programming macro program

2022-07-07 11:49:00 Mountain stream fruit

 Insert picture description here

FNAME = OBTAIN/F(@FORMNAME), 1
SELECT/FNAME
CASE/'PLANE'
    T(TFLAT_FORM) = TOL/FLAT, TOLFORM
	OUTPUT/FA(FORMNAME), TA(TFLAT_FORM)
	FORMDATA=value/TA(TFLAT_FORM),ACT
	IF/(FORMDATA .GT. TOLFORM)
	tempchar=assign/concat(' Current flatness is : ',str(FORMDATA),'>',str(TOLFORM),' Flatness out of tolerance warning !')
	TEXT/OPER,tempchar
	endif
ENDCAS	
CASE/'CIRCLE'
    T(TFLAT_FORM) = TOL/CIRLTY, TOLFORM
	OUTPUT/FA(FORMNAME), TA(TFLAT_FORM)
	FORMDATA=value/TA(TFLAT_FORM),ACT
	IF/(FORMDATA .GT. TOLFORM)
	tempchar=assign/concat(' The current vector circularity is : ',str(FORMDATA),'>',str(TOLFORM),' Sagittal circularity out of tolerance warning !')
	TEXT/OPER,tempchar
	endif	
ENDCAS
CASE/'ARC'
    T(TFLAT_FORM) = TOL/CIRLTY, TOLFORM
	OUTPUT/FA(FORMNAME), TA(TFLAT_FORM)
	FORMDATA=value/TA(TFLAT_FORM),ACT
	IF/(FORMDATA .GT. TOLFORM)
	tempchar=assign/concat(' The current vector circularity is : ',str(FORMDATA),'>',str(TOLFORM),' Sagittal circularity out of tolerance warning !')
	TEXT/OPER,tempchar
	endif	
ENDCAS
CASE/'SPHERE'
    T(TFLAT_FORM) = TOL/CIRLTY, TOLFORM
	OUTPUT/FA(FORMNAME), TA(TFLAT_FORM)
	FORMDATA=value/TA(TFLAT_FORM),ACT
	IF/(FORMDATA .GT. TOLFORM)
	tempchar=assign/concat(' The current vector circularity is : ',str(FORMDATA),'>',str(TOLFORM),' Sagittal circularity out of tolerance warning !')
	TEXT/OPER,tempchar
	endif	
ENDCAS


	DFTCAS

	ENDSEL
endmac



CALL/M(FORM),(PLN3),0.01



 Insert picture description here
 Insert picture description here

原网站

版权声明
本文为[Mountain stream fruit]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070906212050.html