毕业设计(论文)外文资料翻译.doc
毕业设计论文外文资料翻译 题 目 TGSS-50型水平刮板输送机 -机头段设计 院系名称 专业班级 学生姓名 学 号 指导教师 教师职称 起止日期 地 点 附 件 1.外文资料翻译译文;2.外文原文。 指导教师评语 签名 年 月 日 Endshortcut menu 事件 快捷菜单出现后被击活。 用法 Object.Activate Object Document 对象 对象表达式,其结果为有效的容器对象,此处必须为文档对象(document)。 说明 当模式对话框显示时不会触发任何事件。 参见 方法,属性和事件 BeginShortcutMenuDefault BeginShortcutMenuEdit BeginShortcutMenuGrip BeginShortcutMenuOsnap BeginRightClick Activex和VBA开发指导 “使用事件” Using Programming Languages other than VBA 例程 Private Sub AcadDocument_Activate ’本例演示快捷菜单事件的图形 ’当用户关闭快捷菜单图形时,此事件被击活 ’激活示例程序将鼠标放在快捷菜单活动的区域上,单击右键 ’等待快捷菜单被打开,然后再关闭 MsgBox “您刚才激活了一个图形“ End Sub Layout Switched 事件 用户转换一个不同的排列之后被激活 用法 object.LayoutSwitched Layout Name object Document 对象 对象表达式,其结果为有效的容器对象,此处必须为文档对象(document)。 说明 当模式对话框显示时不会触发任何事件。 参见 方法,属性和事件 WindowChanged WindowMovedOrResized Activex和VBA开发指导 “使用事件” Using Programming Languages other than VBA 例程 Private Sub AcadDocument_LayoutSwitched By Val Layout Name as String ’演示排列转换事件的图形 ’当用户用了不同的排列时被激活 ’激活示例程序打开图形并改变排列 ’例如转换一个图形从模式到排列 ’排列图表的多样性,我们可以选择自己需要的 MsgBox “您刚才激活了一个图形“ End Sub LISPCancelled 事件 当LISP 表达的评估被取消时被激活 用法 object.LISPCancelled object Application 对象, Document 对象 对象表达式,其结果为有效的容器对象,此处必须为应用程序对象(application)或文档对象(document)。 说明 当模式对话框显示时不会触发任何事件。 参见 方法,属性和事件 BeginLISP EndLISP Activex和VBA开发指导 “使用事件” Using Programming Languages other than VBA 例程 Private Sub AcadDocument_LispCancelled ’本例演示LISP取消的图形 LISP表达的评估取消时被激活 ’激活示例程序操作LISP表达和取消LISP的评估在它完成之前 MsgBox “您刚才激活了一个图形“ End Sub Modified 事件 当对象和集合被修改时被激活。 用法 object. Modified Entity object All Drawing objects, Block, Blocks, Dictionary, Dictionaries, DimStyle, DimStyles, Group, Groups, Hyperlink, Hyperlinks, Layer, Layers, Layout, Layouts, Linetype, Linetypes, ModelSpace, PaperSpace, PlotConfiguration, PlotConfigurations, RegisteredApplication, RegisteredApplications, SelectionSet, SelectionSets, TextStyle, TextStyles, UCS, UCSs, View, Views, Viewport, Viewports, XRecord 对象表达式,其结果为有效的容器对象。 说明 当模式对话框显示时不会触发任何事件。 参见 方法,属性和事件 ObjectAdded ObjectErased Activex和VBA开发指导 “使用事件” Using Programming Languages other than VBA 例程 Public with Events Plane as AcadLWPolyline Use with Modified Event Example Sub Example Modified ’在模式状态下本例创造了lightweight polyline 和涉及Polyline的使用在不同的场合建立相互的修改事件 ’在修改事件中本例修改新的对象,激活代码 ’修改对象激活事件 ’提示本事件代码将要被激活 ’在们移动或重新修改背景之前,线不会变为蓝色当本例的信件箱被展现时 MsgBox “您刚才激活了一个图形“ End Sub 14 EndShortcutMenu event Triggered after the shortcut menu appears. See Also | Example Signature object.EndShortcutMenu Shortcut Menu Object Document object an object expression that uates to a valid container object. In this case, the only valid container is a document. Shortcut Menu PopupMenu object; /output from the handler the shortcut menu that has been displayed. Remarks Use this event to per any cleanup work on the shortcut menu. No events will be fired while a modal dialog is being displayed. See Also s, Properties, and Events BeginShortcutMenuDefault BeginShortcutMenuEdit BeginShortcutMenuGrip BeginShortcutMenuOsnap BeginRightClick ActiveX and VBA Developers Guide “Use Events“ Example Private Sub AcadDocument_EndShortcutMenu Shortcut Menu as AutoCAD.IAcadPopupMenu ‘This example intercepts a drawing EndShortcutMenu event. ‘This event is triggered when the user closes a drawing shortcut menu. ‘To trigger this example event Right click the mouse in the working area of a drawing, ‘Wait for the shortcut menu to be displayed and then dismiss the shortcut menu MsgBox “A shortcut menu was just closed“ End Sub LayoutSwitched event Triggered after the user switches to a different layout. See Also | Example Signature object.LayoutSwitched Layout Name Object Document object an object expression that uates to a valid container object. In this case, the only valid container is a document. Layout Name String; to the handler the name of the layout the user has switched to. Remarks No events will be fired while a modal dialog is being displayed. See Also s, Properties, and Events WindowChanged WindowMovedOrResized ActiveX and VBA Developers Guide “Use Events“ Example Private Sub AcadDocument_LayoutSwitched By Val Layout Name as String ‘This example intercepts a drawing Layout Switched event. ‘This event is triggered when the user switches to a different ‘Drawing layout view. ‘To trigger this example event Open a drawing and change its layout view ‘For example Switch the drawing from Model view to Layout1 view ‘Use the “Layout Name“ variable to determine the which layout view we changed to MsgBox “The drawing layout was just changed to “ Layout Name End Sub LISPCancelled event Triggered when the uation of a LISP expression is cancelled. See Also | Example Signature object.LISPCancelled Object Application object, Document object an object expression that uates to a valid container object. In this case, the only valid containers are the application and a document. Remarks No events will be fired while a modal dialog is being displayed. See Also s, Properties, and Events BeginLISP EndLISP ActiveX and VBA Developers Guide “Use Events Example Private Sub AcadDocument_LispCancelled ‘This example intercepts a drawing Lisp Cancelled event. ‘This event is triggered when the uation of a LISP expression is cancelled. ‘To trigger this example event Run a LISP expression and ‘Cancel the LISP uation before it finishes MsgBox “A LISP uation was just cancelled.“ End Sub Modified event Triggered when an object or collection in the drawing has been modified. See Also | Example Signature Object. Modified Entity Object All Drawing objects, Block, Blocks, Dictionary, Dictionaries, DimStyle, DimStyles, Group, Groups, Hyperlink, Hyperlinks, Layer, Layers, Layout, Layouts, Linetype, Linetypes, ModelSpace, PaperSpace, PlotConfiguration, PlotConfigurations, RegisteredApplication, RegisteredApplications, SelectionSet, SelectionSets, TextStyle, TextStyles, UCS, UCSs, View, Views, Viewport, Viewports, XRecord An object expression that uates to a valid container object. Entity A Drawing Object The object in the drawing that is modified can be any one of the drawing objects. Remarks This event will be triggered whenever the object is modified. Modification includes whenever the value of a property is set, even if the new value is equal to the current value. When coding in VBA, you must provide an event handler for all objects enabled for the Modified event. If you do not provide a handler, VBA may terminate unexpectedly. No events will be fired while a modal dialog is being displayed. See Also s, Properties, and Events ObjectAdded ObjectErased ActiveX and VBA Developers Guide “Use Events“ Example Public with Events Plane as AcadLWPolyline Use with Modified Event Example Sub Example Modified ‘This example creates a lightweight plotline in model space and ‘References the Plotline using the public variable Plane which ‘Is set up to intercept Modified events. ‘This example then modifies the new object, triggering the code ‘In the Modified event. Dim points 0 To 9 As Double ‘Define the 2D plotline points Points 0 1 points 1 1 Points 2 1 points 3 2 Points 4 2 points 5 2 Points 6 3 points 7 2 Points 8 4 points 9 4 ‘Create a lightweight Plotline object in model space ‘* Note We are returning the new Plotline object into a Module ‘Level variable. This allows us to intercept events associated ‘With that particular object. Set Plane ThisDrawing.ModelSpace.AddLightWeightPolyline points ThisDrawing.Application.ZoomAll ‘Modify object to trigger event. ‘* Note The event code for the Plotline modification will be triggered ‘Before we move forward and refresh the view, so the line will not ‘Appear blue when the event message box is displayed. Dim color As AcadAcCmColor Set color AcadApplication.GetInterfaceObject “AutoCAD.AcCmColor.16“ Call color.SetRGB 80, 100, and 244 PLine.TrueColor color ThisDrawing.Regen acAllViewports End Sub Private Sub PLine_Modified ByVal pObject As AutoCAD.IAcadObject ‘This example intercepts an objects Modified event. ‘This event is triggered when an object supporting this event is modified. ‘To trigger this code Modify an object connected to this event ‘* Note By connected, we mean the object set up to intercept events using ‘The VBA with Events statement ‘Use the “object“ variable to determine which object was modified Skybox “You just modified an object with an ID of “ pObject.ObjectID End Sub