Retrieve the text of the URL contained in the annotation at the view coordinate specified.
oReturn = GetURLAt( InputObj, View, X, Y ); |
Returns the URL text, empty if there is no URl at the specified position.
Parameter | Type | Description |
---|---|---|
InputObj | String |
List of annotations. Default Value: Currently selected objects |
View | Number | The ID of the view to query. This ID correspond to the one given in the Tool SDK tool context. |
X | Number | The X view coordinate to query. |
Y | Number | The Y view coordinate to query. |
Application.NewScene("", False) annot = Application.GetPrim("AnnotationObject", "annot") annot.message = "hello, http://www.autodesk.com , I'm %s" % annot.Name Application.Desktop.RedrawUI() Application.Refresh() Application.Desktop.RedrawUI() url = Application.GetURLAt("annot", 0, 620, 270) Application.LogMessage(url) # INFO : http://www.autodesk.com |