Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using system variable to xref path

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
m_simonettoBLR3F
204 Views, 4 Replies

Using system variable to xref path

Hi all,

I've a problem with xref in AutoCAD. We basically have the main .dwg file on our server and the xref files in a shared OneDrive folder. Every time someone opens it AutoCAD doesn't find the reference because it search in C:\Users\User\etc even if the path is set to relative. It's possible to use a system variable inside the path to give make AutoCAD automatically fill the user part of the path so that the error is not present anymore?

I've tried with %USERPROFILE% etc but AutoCAD complain that the path isn't correct.

 

Any chance to solve it?

Tags (1)
4 REPLIES 4
Message 2 of 5

@m_simonettoBLR3F ,

 


@m_simonettoBLR3F wrote:

... xref files in a shared OneDrive folder

... AutoCAD doesn't find the reference

... even if the path is set to relative.


Seems you have tried the suggestion from these links, but read the variables mentioned within:

 

Another suggestion would be the ones mentioned here:

 

 

ValentinWSP_0-1697213056134.png

 

Related topic:



Please select the "Accept as Solution" button if my post solves your issue or answers your question.


Emilio Valentin
Message 3 of 5

You can use projectname system variable to setup different paths per user.

https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-9C5FB777-337C-433A-9562-F395BF77186D

As long as the dwg has the projectname set, then each user under AutoCAD Options > Files > Project Files Search Path can be set with a unique folder structure per that user.

So for example, using your company name as project name in each dwg set projectname to CompanyNameFolder. Then each user under Project Files Search Path would setup their own path for CompanyNameFolder like: C:\Users\Paul\AppData\Roaming\AutoDWG

paullimapa_0-1697220509504.png

Now as each user opens the drawing, their Options setup will search in whatever folder that's been specified based on projectname.

You can also read another example on this implementation here:

https://forums.autodesk.com/t5/autocad-forum/understanding-projectname/m-p/7042960#M876586

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 4 of 5

Thanks a lot, works very well!

Message 5 of 5

Glad to have helped…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Autodesk Design & Make Report