cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

DTD/schema change

LynnHales
1-Newbie

DTD/schema change

Okay, I learned the other day that the 'clear_stylesheets' will clear loaded
style sheet files from the memory. Now I am playing with schema changes.
I've made some fairly major changes and put the updated schema into a new
folder.

What I need now is figure out how to change my test file from using the old
schema. I have removed the system identifier and the schemaLocation
information from the file, but Epic still insists on using the original
schema rather than saying it cannot find a DTD/schema.

I could copy files around so the new files are in the current path, but then
I will confuse myself (and I don't need help doing that anymore) as to which
is which.

Any help would be greatly appreciated.


Thanks

Lynn
3 REPLIES 3

I ususally delete the .wcf file or get a new machine 😉 this stuff gets
cached in the user profile.

..dan

> Okay, I learned the other day that the 'clear_stylesheets' will clear
> loaded
> style sheet files from the memory. Now I am playing with schema changes.
> I've made some fairly major changes and put the updated schema into a new
> folder.
>
> What I need now is figure out how to change my test file from using the
> old
> schema. I have removed the system identifier and the schemaLocation
> information from the file, but Epic still insists on using the original
> schema rather than saying it cannot find a DTD/schema.
>
> I could copy files around so the new files are in the current path, but
> then
> I will confuse myself (and I don't need help doing that anymore) as to
> which
> is which.
>
> Any help would be greatly appreciated.
>
>
> Thanks
>
> Lynn
>
lfraley
6-Contributor
(To:LynnHales)

In your AppData folder (hidden folder in your user's directory
structure), there's an .aptcache folder that you can delete (dig
down). Usually deleting that will clear the cache.

LIz

Or, enter clean_cache on the command line.



[cid:image001.png@01CDAC8A.A2AB6BE0]
That way it empties the cache no matter where it is. The APTCACHE environment variable may point to a different directory. For example, on my machine APTCACHE points to C:\TEMP\.aptcache.


Also, this is an excerpt from [doctype]\instance.acl:
############################################
# set doctypecachesize=0; (turned OFF)
#
set doctypecachesize=2;
#
# The default cache size is 20, which is the
# number of document type and stylesheet
# pairs retained in the cache. If the cache
# size is exceeded, the oldest document type
# and stylesheet pair is removed from the
# cache. You can set the cache to a value
# between 0 and 50. Setting the cache size
# to 0 clears and disables the cache, causing
# a document's document type and stylesheet
# to be loaded every time you open a document.
# It is set to 2 because I think loading
# unneeded data into memory seems to result
# in degraded performance. Also, no one seems
# to need more than "this document and the
# last one". Why waste resources?
############################################



HTH

-Andy



\ / Andy Esslinger LM Aero - Tech Order Data

______-/\-______ (817) 279-0442 1 Lockheed Blvd, MZ 4285

\_\/_/ (817) 777-3047 Fort Worth, TX 76108-3916




Top Tags