70000731 Is it possible to use getUserEntityOneClick in the wrapper object

Article 70000731
Type Wish
Product Engine
Version 7006
Date Added 2/22/2016 12:00:00 AM
Fixed 7.7007.0.8 (2/22/2016 12:00:00 AM)
Submitted by Joao Agusto Metrica

Summary

Is it possible to use getUserEntityOneClick in the wrapper object

Solution

Added in 7.7007.0.8

In VB6 you can use it like:

Dim fig5 As VDrawI5.vdFigure
Dim doc As VectorDraw_Professional.vdDocument
Dim fig6 As VectorDraw_Professional.vdFigure
Dim gpt As VectorDraw_Geometry.gPoint
Dim statCode As VectorDraw_Actions.StatusCode
Set gpt = New VectorDraw_Geometry.gPoint
Set doc = VDraw1.ActiveDocument.WrapperObject

    statCode = doc.ActionUtility.getUserEntityOneClick(fig6, gpt, LockLayerMethodEnum_Basic, True)
    If (fig6 Is Nothing) Then
        MsgBox "No ENTITY clicked at point: " + gpt.ToString
    Else
        Dim obj6 As VectorDraw_Professional.vdObject
        Set obj6 = fig6
        Set fig5 = VDraw1.ActiveDocument.GetFromHandle(obj6.Handle.ToStringValue)
        MsgBox fig5.Type + " " + fig5.Handle + " clicked"
    End If

Send comments on this topic.