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

lock insert on defined points

Good morning.
I used the lisp and it's fantastic. I have a problem, though. If the block has attributes, it doesn't see them. If I explode, then they appear, does anyone know the motivation?
 
Good morning, I am new to the forum and also a beginner in the use of autocad 2016 lt.
I would need a suggestion from you on an operation that is partly described above.
I need to replace points with blocks that have about 7 attributes each...not only... these attributes should go fishing from a project excel.
Do you think it is possible to do all this with autocad lt or it takes the full version?
Can anyone help me through the process?
Thank you!
Of course using lisp and/or vba the process would be much faster, but since these are not available, in my opinion you could follow a more complex but effective way, create a script, with the help of excel (concatenating the texts of the cells), which inserts all the blocks you need on autocad complete with attributes, perhaps on a dedicated layer.
type script

_insert pippo 100,100 1 1 0 101
201
301
_insert pippo 200,100 1 1 0 102
202
302

where you have in order: command - block name - coordinates x y input - scale x - scale y - rotation and below attributes.
then with the grips and snaps manually move each block into its right location, if you can recover the coordinates corresponding to the points even better, in any case avoid typing all attributes.
 
Hi.
I understand your conceptual response, but I don't know how to put it into practice. I don't have so much familiarity with scripts. How should I create it? how do I make the various information? Is there a space?
 
Hi.
I understand your conceptual response, but I don't know how to put it into practice. I don't have so much familiarity with scripts. How should I create it? how do I make the various information? Is there a space?
the script is a text file that executes the instructions exactly in sequence, where you need to change the extension from "txt" to "scr".
exact you have to separate the information with a space, autocad equals it to a sending, while at the end of each attribute field it really serves sending (character ascii "10") because in the attribute text you may have separation spaces.
concatenating in excel all information with the necessary spaces and sends (each row ==> a block), it is sufficient to copy the concatenation column and paste it on a notepad file. attention could appear of the apics, which should be eliminated by replacing them with nothing from the replace command of notepad. once saved the file launch from autocad "run script" under tools, and if written correctly it must work.
 
Hi.
I did research and managed to write it. I have a problem that I can't by-pass and despite looking for no answer. I guess it's trivial, but in the examples I'm looking for, I can't find anything. I figured out how to create it and it works perfectly. Now, since it's a lot of lines, I wanted to predispose them in excel, chaining everything. These are blocks with attributes, each attribute, if I have not understood badly must be preceded by sending. how do I insert the sending in the concatenation formula?
a heartfelt thanks to all
 
Hi.
I did research and managed to write it. I have a problem that I can't by-pass and despite looking for no answer. I guess it's trivial, but in the examples I'm looking for, I can't find anything. I figured out how to create it and it works perfectly. Now, since it's a lot of lines, I wanted to predispose them in excel, chaining everything. These are blocks with attributes, each attribute, if I have not understood badly must be preceded by sending. how do I insert the sending in the concatenation formula?
a heartfelt thanks to all
Hi.
the sending must follow the attribute, do not precede it. in the concatenation cell you have to write =char(10)
I use excel in English.
 

Forum statistics

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

Members online

No members online now.
ciao
Back
Top