Article | 41023357 |
Type | HowTo |
Product | Engine |
Version | 4.1.6.1028 |
Date Added | 12/31/2003 |
Submitted by | Takis Panagiotopoulos |
Keywords |
Option Explicit Private Sub Command1_Click() vdraw.CommandAction.View3D "SHADE" 'HIDE,RENDER etc (PLAN WORLD) End Sub Private Sub Command2_Click() vdraw.CommandAction.View3D "VISW" 'VINE etc (NONE PLAN WORLD) End Sub Private Sub Form_Load() vdraw.ActiveDocument.Open App.Path + "/vectordraw.dwg" End Sub Private Sub vdraw_MouseDown(Button As Integer, Shift As Integer, x As Double, y As Double) Dim ent As vdFigure If Button = 1 Then Set ent = vdraw.ActiveDocument.Get3dEntityFromPOINT(vdraw.CursorPos) If Not ent Is Nothing Then If ent.Type = "VD3DFACE" Then MsgBox "3d face selected" End If End If End If End Sub