TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: whdjr on January 26, 2005, 09:01:34 AM

Title: Whacked out insertion points
Post by: whdjr on January 26, 2005, 09:01:34 AM
I have a routine that searches a dwg for every instance of a block and inserts another block at the insertion points of the first set of blocks, then they match up attributes.  If the ucs is not set to world why does the tool insert the second set of blocks to another location not at the insertion point of the first set of blocks?  Is there a way using trans to fix this?  or maybe some other way?
Title: Whacked out insertion points
Post by: SMadsen on January 26, 2005, 09:32:31 AM
The ins point of an INSERT is always given in WCS. Having the point in, say, insp you could do this:
(trans insp 0 1)

or you could do this:
(trans insp ent 1)

where ent is the ename of the insert.
Title: Whacked out insertion points
Post by: whdjr on January 26, 2005, 09:53:54 AM
Thanks, I'll try that and see if that fixes my problem.
Title: Whacked out insertion points
Post by: whdjr on January 26, 2005, 11:06:06 AM
Stig,

Works great man.:D

Thanks,