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

insert the same block into a drawing group

  • Thread starter Thread starter belmar
  • Start date Start date

belmar

Guest
Good morning
I would like to submit this problem to you, I have a contract developed in autocad where I need to insert a block (customer logo)
at a precise point of design.
How can I automate this procedure?
I need to insert as I mentioned earlier the logo at a design point that varies according to the size and scale design, so I need to recognize the format to get the insertion position and then scale the block according to the scale itself.
I hope I've been exhaustive and you can help me.
thanks in advance.
 
is the format a block? Names? are in mm, cm, m?
Maybe you'd attach a prototype design at least you'd understand how to proceed, so you'd risk talking to vanvera.
 
You're right.
I attach 4 examples with an exact location where the logo_cli.
this point may vary to the varying of the drawing scale because it is our habit to leave the graphics in scale
1:1 and enlarge the scale value formats (e.g. if the main scale drawing is 1:2 the symbol the 2-fold port of call). always mm measuring unit.
the examples I have put into you are all 1:1 scale
 

Attachments

the file in lisp searches for the formats a3, a2, a1, a0, calculates the coordinates of the logo, inserts the block "logo_cli_test" that you will have to update with the name of your block, just edit logo.lsp even with a text editor.
logo.lsp files and block dwg need to stay in a search path of autocad.
the zip file contains already preset script.xls, you just select the files to process and create the script.
greetings
 

Attachments

I ran your lisp and it works properly are the files I gave you of example.
Unfortunately I realized that at a series of drawings they changed the name of the format from:
a3 ---- frame-3
a2 ---- frame-2
a1 ---- frame-1
a0 ---- frame-0
I tried to correct your lisp by replacing in
(cons 2 "a*"))) -------------- (cons 2 "frame-*")))

and where the name of the old block was indicated I replaced the new but nothing happens.
I'll tie your lisp with my corrections. You could tell me where I'm wrong.


Thanks again and excuse me for the trouble
 

Attachments

Last edited:

Forum statistics

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

Members online

No members online now.
Back
Top