
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm new to AutoLisp, and I need some help.
I'm trying to write a lisp that looks for a specific block and it would replace it with another block.
The issue I'm having is that the new block is being inserted in the center point of the initial block, with the insertion point of the 2nd block being the bottom left corner.
This causes the inserted block to have an offset. Is there a way to modify the location of the inserted block by X, Y points?
Example:
If the first block's midpoint coordinate is at (10,10) i want to insert the new block at an offset of (3,-2) from (10,10), so the insertion point will be at (13,8)
Part 2
Also if the script finds multiple objects (i'm looking for these objects using their layer)
Is there a way to tell it to select the object with the greater width?
NOTE: I'm trying to make this script to run without any user input.
Your help is greatly appreciate it.
Thanks
Solved! Go to Solution.