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

keep in memory list items inserted for reprocessing

  • Thread starter Thread starter Dr.Lube
  • Start date Start date

Dr.Lube

Guest
Hello.
I would have two questions (which are very similar).

I would have the need to remember the list of objects that I insert (they are blocks) so that I can call them back later.
the top would be able to recall them once closed and reopen autocad. to do this I thought to save on my usual support file (a *.xlsm) the name of the entity to be able to recall later.
Code:
(vlax-put-property cells 'item riga colonna (entlast))
dove:
Code:
(entlast)
<nome 7ffff9b7cc0="" entità:=""></nome>
but I get this error:
Code:
; error: the lisp value has no connection with variant with this type: <nome 7ffff9b7cc0="" entità:=""></nome>
the other question concerns a caterpillar of objects that I go to draw automatically (of the circles).
for these to put them in excel would be impossible as they are hundreds, connected to the same object (I would go to occupy hundreds of columns at the same row, as long as I can insert the object into excel what as mentioned above I can not do).
I try to explain what I want to do in detail:1) I go to insert my block with its properties.
-> save in memory.
2) I carry out the calculation for my block, or are drawn circles around the block
-> save these circles in memory
3) I call my block from my interface for any changes (without going entsel then)
4) then recall all objects associated with that block, change the diameter, the layer, etc.

I looked at the arrays, but I read that it is more intuitive to work with the lists. .

I entrust myself to the people for some suggestions!

Thank you.
dennis
 
to keep "in memory" of selections I use this method:

From command line I write:

(setq pippo (ssget) -> sending

at this point select the objects I need and confirm with sending.

objects will now be in the variable "pippo"

I can continue with other variables....

when I decide for example to delete the objects in "pippo", I just have to write (always from command line):

delete -> sending

... he asks me the objects to be deleted, I answer!pippo (i.e. the variable preceded by exclamation point).

That's all!
 
hi x11start, thanks for the answer.
what I meant, however, is to save the data and then reload them to a later start of autocad (in fact all the internal variables "muoiono" and it is not possible to recall them).
Thank you.
 
the vl-propagate function keeps the variables stored in the same autocad session, so also opening another design, just do not close autocad.
 
to save data in the dwg and have them available in subsequent autocad sessions you can use dictionaries and xrecords, I prefer the first.
 
hi gp. I was a little absent in the "last" days.
I wanted to take over the matter so that I could complete my little programme.
At the moment I dump the data in the cord and I go pretty well.
the problem is that sometimes one does not get to do the distinct (or forget to insert it because he wants to resume the project the next day) and loses all the work (it has to redefine the cords from head).

Can you give me some tips on the dictionaries you were talking about? (or xrecords)

Thanks :)
 
Okay, reading a word a day I managed to finish reading in 2 months :d
apart from the jokes I would need a tip.. I realized how to create a dictioner and what it is. I figured out how to connect a xrecord. I didn't realize how to put us in a list.

I have 13 lists of items to save, edit, delete.
1. list of heights
2. list of widths
3. list of positions
4. .
. .

each type of cord has its set of 13 values:
1. (20 30 perimeter .. )
2. (20 25 forometry ..)
. .

thank you and good August!
dennis
 

Forum statistics

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

Members online

No members online now.
Back
Top