Article | 60002123 |
Type | Wish |
Product | Engine |
Version | 6027 |
Date Added | 1/14/2014 12:00:00 AM |
Fixed | (1/14/2014 12:00:00 AM) |
Submitted by | Matt |
Summary
Is it possible to have an action like getUserEntity that finishes with the first click even if the user doesn't click on an entity and have the point he clicked ?
Solution
In 6028 version two new methods are exported, getUserEntityOneClick and getUserEntityWithStringValuesOneClick.
getUserEntityOneClick(out vdFigure retfig, out gPoint retpt, vdDocument.LockLayerMethodEnum locklayerMethod, bool OneClick):
If OneClick is false it will repeatedely ask the user for a Entity until the user click on an entity or cancels the action, just like getUserEntity function works.
If OneClick is true asks the user to click on an entity and the command finishes with the first click returning Success whether the user clicked on an entity or in empty space. In this case the function returns a null retfig vdfigure ans the point clicked.
getUserEntityWithStringValuesOneClick(out vdFigure retfig, out gPoint retpt, vdDocument.LockLayerMethodEnum locklayerMethod, bool OneClick):
If OneClick is false it will repeatedely ask the user for a Entity until the user click on an entity or cancels the action, just like getUserEntityWithStringValues function works.
If OneClick is true asks the user to click on an entity and the command finishes with the first click returning an empty stringwhether the user clicked on an entity or in empty space. In this case the function returns a null retfig vdfigure ans the point clicked.