XRefs (external references) are used within CAD documents to reference external documents to be loaded within a main document. WebViewer Server by default does not support these XRefs as it needs to know context information about the location of the XRef files.
We do provide an option TRN_CAD_XREF_CONFIG_URL
that will allow you to provide this context information, but there are a few steps that will need to be done in order to use this option.
To use this option, you will need to do the following.
TRN_CAD_XREF_CONFIG_URL
to the created server.The most common way is by providing a header during the load document call, and then matching this header to the correct XRefs.
Now the server will see MyDocIdentifier
when WebViewer Server requests it, it can then return the XRef paths for this document like so:
WebViewer Server would then look in these paths for XRefs.
In the next step you will need to create a server that will do the following:
Paths returned by the server should have the following traits
The code below is a rough example of how you would do this. The specifics of how you implement XRef path selection will be specific to your system.
In docker you should mount volumes at the specific XRef paths like so:
You would then set XRefs to be looked for inside of this xrefFiles directory.
On windows, you only need to provide the correct paths and your XRefs should be found.
A prerequiste to this step would be to setup your server over a local network or the internet to be accessible by WebViewer Server. In this example, the server is hosted on 192.168.1.1
under the path getXrefs
:
If everything was done correctly, XRefs should now be appearing in your documents.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales