If I open the file manullay,autocad will ask me to select fonts for some styles,then all text will display. but if I use Application.DocumentManager.Open(filePath) to open the file,autocad does not ask me to select font for any styles, thus all the texts use those styles will not display. What more worse is if you had saved the file, those missing texts will never come back.
First sorry, I have no answer (at the moment) for your problem, just make some noise around the positive options you get with that problem
1) option to avoid popups?
there are so much people out there looking for how to avoid these popups while opening drawings
Now we have found such a way?
2) remove SHX-file-references from drawing?
>> What more worse is if you had saved the file, those missing texts will never come back.
That is what I can't beleive, because if AutoCAD misses some TTF or SHX it uses replacement fonts ... but that does not change the STYLE-definition, just the display. So I'm wondering what happens on your pc.
I tried (with default "open") to open a drawing that misses a SHX, canceled the dialog that asks me for showing the position of the SHX, saved the drawing, opened it once more and now I see the correct visualization of the text.
If it does not ask for missing SHX the next load-time (and I interpret your words in that way) it would be a chance to get SHX-references prurged.
BUT let me ask one question to that: if you opened then your drawing and look to the STYLE-list ==> what fonts are now used instead?
- alfred -
Thanks for your reply.Yes, you are not give the answer,but you give me clues to figure it out.
When I using this methord to open file,I have never seen the font selecting dialog. so maybe it's the right way to avoid the dialog.
About your question. I am curious too, but I will do somthing to reproduce it and try to find the right reason out.
Access a broad range of knowledge to help get the most out of your products and services.