.NET

Reply
Active Contributor
sdphg
Posts: 28
Registered: ‎05-21-2008
Message 1 of 3 (336 Views)

when use Application.DocumentManager.Open(filePath) to open file,text missing

336 Views, 2 Replies
01-05-2012 07:03 PM

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.

Any suggestions?

*Expert Elite*
Alfred.NESWADBA
Posts: 9,070
Registered: ‎06-29-2007
Message 2 of 3 (329 Views)

Re: when use Application.DocumentManager.Open(filePath) to open file,text missin

01-05-2012 11:40 PM in reply to: sdphg

Hi,

 

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 :smileywink:

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 -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Active Contributor
sdphg
Posts: 28
Registered: ‎05-21-2008
Message 3 of 3 (292 Views)

Re: when use Application.DocumentManager.Open(filePath) to open file,text missin

01-19-2012 05:56 AM in reply to: Alfred.NESWADBA

Hi,

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.:robottongue:

About your question. I am curious too, but I will do somthing to reproduce it and try to find the right reason out.

anyway,thanks again.

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.