说明:双击或选中下面任意单词,将显示该词的音标、读音、翻译等;选中中文或多个词,将显示翻译。
您的位置:首页 -> 词典 -> 编程
1)  Programming [英]['prəʊɡræmɪŋ]  [美]['progræmɪŋ]
编程
1.
NC Machining Processes and Programming of the Fitting Parts with Complex Surfaces;
复杂曲面配合件的数控加工工艺分析与编程
2.
Modularization of programming in cement plant;
水泥厂应用编程的模块化
3.
Advanced Programming Method of Post Processing File of MasterCAM and Its Application;
MasterCAM后置处理文件的高级编程方法及其应用
2)  Program [英]['prəʊɡræm]  [美]['progræm]
编程
1.
Program Methods of Machining Screw Thread in SINUMERIK Numerical-Controlled System;
SINUMERIK数控系统加工螺纹的编程方法
2.
The application of the PLC programmable controllers for the controlling system of heat treatment furnace;
PLC可编程控制器在热处理炉控制系统中的应用
3)  Programme [英]['prəʊɡræm]  [美]['progræm]
编程
1.
The Application of Cimatron in the Non-circle Contour NC Turning Programme;
Cimatron在非圆轮廓数控车削编程中的应用
2.
Clearing the Engineering Calculation Blind Spot——fastway to Master Programme Calculator;
扫清工程计算盲点——可编程计算器速成
3.
The article took the spot facing work for example to introduce the simplify programme method under the FANUC-O system, and pointed out some practice problem in the process of simplifying programme for reference.
介绍了在FANUC-0系统下,以孔加工为例简化编程的方法,并指出了在简化编程过程中应注意的实际问题,以供借鉴。
4)  programing ['prəuɡræmiŋ]
编程
1.
Rapid composition and input of codes of parts for DF_4D passenger locomotives using AutoLISP programing;
利用AutoLISP编程实现东风_4D型客运机车零件代码的快速编制及录入
2.
This paper introduces the application of controller FX 2-48MR to the farnace making CO and a sucessful experience of programing by state elements.
介绍FX2 - 48MR 可编程工业控制器在煤气发生炉上的应用。
3.
This article presents a way of programing to visit and to process FoxPro Data-Base in VB environment, using the art of programing to solve the problem of the inadequacy in supporting some exterior-Data-Base of VB.
介绍一种在VB环境中编程对FoxPro数据库的访问与处理的方法,探讨利用编程技巧来解决VB对这些外来数据库支持的不足的问题。
5)  program design
编程
1.
Through analyzing of the actual program design examples,this paper states that increasing the actual chances and practicing weak linkages are important to improve the quality of NC practice operation.
在高职数控实训教学中,通过编程实例分析,说明增加实战机会、从实战中积累加工经验对提高数控车工实训质量的重要性,强调实训中应针对学生薄弱环节加强训练。
6)  compilation programming
汇编编程
补充资料:Autocad VBA初级教程 (第三课 编程基础二)
 

有一位叫自然9172的网友提出了下面的问题:
绘制三维多段线时X、Y值在屏幕上用鼠标选取,Z值用键盘输入
本课将讲解这个问题。


为了简化程序,这里用多条直线来代替多段线。以下是源码:
Sub myl()
Dim p1 As Variant '申明端点坐标
Dim p2 As Variant
p1 = ThisDrawing.Utility.GetPoint(, "输入点:") '获取点坐标
z = ThisDrawing.Utility.GetReal("Z坐标:") '用户输入Z坐标值
p1(2) = z '将Z坐标值赋予点坐标中
On Error GoTo Err_Control '出错陷井
Do '开始循环
  p2 = ThisDrawing.Utility.GetPoint(p1, vbCr & "输入下一点:") '获取下一个点的坐标
  z = ThisDrawing.Utility.GetReal("Z坐标:") '用户输入Z坐标值
  p2(2) = z '将Z坐标值赋予点坐标中
  Call ThisDrawing.ModelSpace.AddLine(p1, p2) '画直线
  p1 = p2 '将第二点的端点保存为下一条直线的第一个端点坐标
Loop
Err_Control:
End Sub


先谈一下本程序的设计思路:
1、获取第一点坐标
2、输入第一点Z坐标
3、获取第二点坐标
4、输入第二点Z坐标
5、以第一、二点为端点,画直线
6、下一条线的第一点=这条线的第二点
7、回到第3步进行循环
如果用户没有输入坐标或Z值,则程序结束。


首先看以下两条语句:
p1 = ThisDrawing.Utility.GetPoint(, "输入点:") ‘获取点坐标
……
p2 = ThisDrawing.Utility.GetPoint(p1, vbCr & "输入下一点:") '获取下一个点的坐标
这两条语句的作用是由用户输入点用鼠标选取点坐标,并把坐标值赋给p1、p2两个变量。ThisDrawing.Utility.GetPoint()在ACAD中这是最常用的方法之一,它需要两个参数,在逗号前面的参数应该是一个点坐标,它的作用是在屏幕上画一条线,前一个端点位于点坐标位置,后一个端点跟随鼠标移动,逗号之前可以什么都不填,这时没有线条会跟随鼠标移动,但逗号必须保留。
逗号后面使用一串字符,程序在命令行显示这串字符,这不难理解。
VbCr通常代表一个回车符,而在这个语句中,它的作用是在命令行不显示“命令:”
&的作用是连接字符。举例:
“爱我中华 ”&”抵制日货 ”&”从我做起”


z = ThisDrawing.Utility.GetReal("Z坐标:") '用户输入Z坐标值
由用户输入一个实数


On Error GoTo Err_Control '出错陷井
……
Err_Control:
On Error是出错陷井语句,在程序出错时将执行On Error 后面的语句
GoTo Err_contorl 是程序跳转语句,它的作用是在程序中寻找Err_control:,并执行这一行后面的语句,本例中Err_Control:后就是结束宏,所以只要出现错误,程序中止。


说明:补充资料仅用于学习参考,请勿用于其它任何用途。
参考词条