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

base point blocchi

  • Thread starter Thread starter ale
  • Start date Start date

ale

Guest
utilising autocad 2009, I realized a circumference and through the block command I transformed the block circumference with "base point" in the center.
I inserted the block into some vertices of a polyline, and I would need to transform all the "basic point" fixed at the time of the creation of the block in coordinates x=0, y=0.
Is it possible to do that?
 
...and I would have the need to transform all the "base point" fixed at the time of the creation of the block into coordinates x=0, y=0.
Is it possible to do that?
What do you mean to turn the base points of the block into coordinates?
 
rereading what I wrote I realized I was misinterpreted.

to create a block(circumference) I need to assign coordinates on "block > creates > definition of a block > base point" from x=0, y=0 to x= circumference center, y=centre circumference.
the block is then distributed on the top of the polylinea.
later, completed the positioning, all the blocks (circumferences) are renamed with another name (01, 02, 03, ....) and at this point to each single block (circumference) I have to change the point that before was x=circumference, y=circumference in x=0, y=0.


all this should be part of a routine in vba, but not having knowledge so deep I have broken the procedure, in vba + classic method.

Thanks, bye.
(I apologize for the delay in the answer, but only in the evening I can connect to the forum)
 
bhè un asolution c'è.....
instead of rename the blocks, why not create new 01 02 03 (with 00) after placing 00 ?

so the 00 will always have as insertion point its center, while 01 02 03 will have x0 y0.

this is much easier to generate with vba
 
thanks shape for your suggestion. I tried and actually this is the solution.

in realizing the routines I needed, I met a strange mistake, which in summary I try to sum up with an example.

I drew a square, with block 00 at the center of the square. I then entered the block in the 4 corners and changed the name 01,02,03,04.
with a vba routine I entered the blocks.
are not placed exactly on the corners of the square, ?? , while using the “insert block” command of autocad the insertion is correct.

Can you explain this anomaly?
attach the .dwg file and .dvb
 

Attachments

thanks shape for your suggestion. I tried and actually this is the solution.

in realizing the routines I needed, I met a strange mistake, which in summary I try to sum up with an example.

I drew a square, with block 00 at the center of the square. I then entered the block in the 4 corners and changed the name 01,02,03,04.
with a vba routine I entered the blocks.
are not placed exactly on the corners of the square, ?? , while using the “insert block” command of autocad the insertion is correct.

Can you explain this anomaly?
attach the .dwg file and .dvb
the problem is that the blocks are inserted with rotation 1 and therefore seem to you out.. .

change the insertion with this thisdrawing.sendcommand "._-insert" & vbcr & objblock.name & vbcr & "0,0" & vbcr & 1 & vbcr & 0 & vbcr

you can have too many parameters in the _-insert command
 

Forum statistics

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

Members online

No members online now.
Back
Top