Author Topic: Copies of a Block with same Insertion Point?  (Read 881 times)

0 Members and 1 Guest are viewing this topic.

Brick_top

  • Bull Frog
  • Posts: 218
Copies of a Block with same Insertion Point?
« on: October 23, 2012, 05:33:18 AM »
Hi there I have a drawing with a block inserted and I have made several copies of that inserted block.

If I use (entget (car (entsel))) on any of them I get the same Insertion Point of the block that was inserted first.

How do I get the relative "insertion point" (I suppose it should not be called that) to each block?

thanks
« Last Edit: October 23, 2012, 05:45:55 AM by Brick_top »

Tharwat

  • Swamp Rat
  • Posts: 684
  • Hypersensitive
Re: Copies of a Block with same Insertion Point?
« Reply #1 on: October 23, 2012, 05:49:19 AM »
I don't know how you do retrieve the insertion point but anyway try this simple code and tell me what you would receive .

Code - Auto/Visual Lisp: [Select]
  1. (if (setq s (car (entsel "\n Select a Block :")))
  2.   (princ (cdr (assoc 10 (entget s))))
  3.   )

Brick_top

  • Bull Frog
  • Posts: 218
Re: Copies of a Block with same Insertion Point?
« Reply #2 on: October 23, 2012, 07:02:30 AM »
Oh man what a screw up!!

I was copying the block only in the Y direction and when checking the coordinates I only looked at the X coordinate so those were equal.

so the copies all have different "insertion points" as I wanted them to.


So I'm really sorry for taking your time and everyone that read this

Please disregard this thread!
« Last Edit: October 23, 2012, 07:06:31 AM by Brick_top »