Hello All,
I am having an issue with a lisp routine.
The routine inserts our company title block onto the open drawing.
The issue I am having is when I insert the title block and run the title block update it changes the text justification and font on all the text.
The justification is clearly switching to bottom left but the properties still say center, same as the imported drawing.
Here's the kicker, if I run the lisp and close the drawing before running the title block update and reopen it, then run the title block update it all comes out as expected.
With this I am not sure the title block lisp is the issue.
Any in site anyone might have would be greatly appreciated.
attached is the lisp routine for reference
Thanks
Dennis
I don't see anything unusual in the lisp function. Do you run this on a blank new drawing? If not can you upload a drawing that I could try this on. Also, can you upload the title block dwg file? So I can try and reproduce it, include the steps you use to run the title block update. If you are using .WDT file for that can you also upload a copy of that? Maybe once I can try it using your files I will see what is happening.
Regards,
Pat
Here is a sample project
I have noticed the LSP will work if you delete the title block and then run the LSP without purging inbetween.
here are the steps to failure!!!
open dwg 001
delete title block
purge drawing
run LSP
Update title block (at this point it shows nothign in the title block need to close drawing and reopen to see text changed to left justified)
steps to sucess
Open dwg 001
delete title block
run LSP
update title block
or
open dwg 001
delete title block
run LSP
close and reopen dwg 001
update title block
I know the easy answer is not to purge drawing but that is a common custom here!!!
thats what we are running with now but it would be nice to know what is happening.
Thanks for your help
This one is a puzzle. There is no problem if you do everything on a new drawing. It all works fine including your lisp file and the Title Block Update.
But if it is done on your existing drawing then the problem appears. And it isn't your lisp function because even if I insert the block myself using the INSERT command the problem is still there when I run the Title Block Update. So I can't say for sure if the issue is the Title Block function or even your title block drawing but something on the existing drawing combined with the Title Block Update function is causing it.
Blocks and attributes are somewhat out of my area of expertise so I am going to ask someone else to look at it. Maybe I am just missing something obvious. So if I get any answers I will get back to you.
Sorry I couldn't solve it right away.
Regards,
Pat
Thanks Pat,
Im far from an expert but I didn't see an issue with the LSP or drawing.
let me know what you find out.
Thanks Again
It seems to have something to do with the text style but since this is out of my area of expertise I am not sure exactly what. If you don't purge the drawing of the Italic text style then the Title Block Update works fine.
I will send this on to someone else but it might be awhile before we hear anything.
Some things to try would be to use different text styles to see if it makes any difference. Maybe define the text styles within the lisp function prior to inserting the block.
Let me know if any of that works.
Sorry I wasn't more help,
Pat