Hi guys,
First post on here but I have been using the site for a long time, gaining great knowledge from all the posters on here.
Im a CAD user but dont really have much experience in AutoLISP or programming, apart from being to modify work done by others and tailor it to my needs and then run it in CAD.
Basically, I have been asked by work to try and speed a process up that we currently have. Heres the scenario below, if anyone could help that would be great. Im not really expecting someone to write the routine/script but really just want feedback to see if its in the realms of possibilty.
We have several thousand drawings on file, which we need to replace the blocks in each file with new ones (news one have 8x attributes, where as the old ones have none).
Im after a tool that will make swapping a block for another a simple/simpler task.
A batch swap would of been the answer but the insertion points of the blocks are all different, along with angle of rotation.
This is how envisage the tool working:
When in the drawing (i understand this will have to be done for each drawing)
Run the tool
Click on the block to be replaced
The routine looks up the name of the existing block and selects the block it needs to be replaced with (could this be done with an excel sheet?)
The user is then asked to choose a revised insertion point for the existing block (all new blocks have an insertion point in the bottom left corner, so the user would pick the bottom left corner of the existing block), this ensures the position of the block is exactly the same as the one to be inserted
The block is replaced with the new one in the same position
Rinse and repeat!
Now i know i have will have to consider rotation in there somewhere, as many of the blocks are at different angles but i would presume some how the angle of the existing block could be worked out and then applied when inserting the new one.
In terms of the excel sheet, im thinking that somehow it could be made that if block A is clicked it knows that is to be replaced with block A rev 2; and if block B is clicked it knows that is to be replaced with block B Rev 2.
If anymore info is needed or oyu want me to explain, please dont hesitate to ask.
Thanks in advance,
Mark