|
发表于 2022-7-6 07:46:27
|
显示全部楼层
mestar,
Here is a looping method that I use. Some might frown on it, But its really not bad. I have seen well known programmers use this method before. I create a function for the loop instead of using while allowing prompting of two choices, R or Enter for repeating insertion or E for program Exit.
Give this a try. You will also see the block on insertion.
The block name must be called MyBlock.dwg and must be in the ACAD Search Support Path or you can use findfile and specify the path. I included a line for this if you decide to use it. It is commented out temporary for now. I indicate instructions for this.
See the attached Zip file.
Sorry about that, But I am having trouble posting this code with code brackets.
MyBlock.zip |
|