1 of 1 people found this helpful
should be able to accomplish what you need by using the Query Method. Recommend looking at the documentation for more information but you can tell it to query your text items and then you would iterate through the objects and look for the item you need.
Yes, this is what I was figuring. The key for me was to search the annotation layer and also to check to make sure that the type actually is text (text.type = 2). Because that query was also coming up with circle objects and getlocation() was failing.
For each text in Application.ActiveView.Query(VDTL_ANNOTATION,VD_ALL)
if text.type = 2 then
loc(0) = text.getlocation().X
loc(1) = text.getlocation().Y
if loc(0) = x and loc(1) = y then
text.selected = true
Nowadays, could we edit the procedure in Flotherm for the second research?
if ok,how to do it as your suggestion?