• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

launch the command and recover data

  • Thread starter Thread starter yag
  • Start date Start date

yag

Guest
Hello I would like to know how I can do to launch the find command from code
and recover the results?
 
I think you can't, I looked for the .find method but it doesn't exist.
creates a loop of all entities and filter what you look for, I think it's the same thing as the find command.

bye
 
I think you can't, I looked for the .find method but it doesn't exist.
creates a loop of all entities and filter what you look for, I think it's the same thing as the find command.

bye


sto provando questo ma non va

dim filtertype(0) as integer
dim filterdata(0) as variant

dim sset as acadselectionset
dim element as acadtext

on error resume next
' delete the selection set if it exists
if not isnull(thisdrawing.selectionsets.item("element")) then
set sset = thisdrawing.selectionsets.item("element")
sset.delete
end if


set sset = thisdrawing.selectionsets.add("element")


filtertype(0) = 0
filterdata(0) = "text"

sset.select acselectionsetall, , filtertype, filterdata


for each element in sset
msgbox (element.textstring)
next element
 
devi prima controllare che element sia un testo, quindi:
dim enttext as acadtext
...
if element.objectname= "acdbtext" then
set enttext = element
msgbox enttext.textstring
end if
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top