乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 115|回复: 8

[综合讨论] changing xref "path type"

[复制链接]

14

主题

29

帖子

16

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
74
发表于 2022-7-8 13:03:13 | 显示全部楼层 |阅读模式
I have an existing drawing with muliple external references.  Once I save the drawing to a different directory, the xrefs need to be repathed to their original directory.  Is it possible for AutoCAD to change the existing drawing such the path of the external references are relative?  I find it very tedious to repath each and every external reference to their original directory.
回复

使用道具 举报

4

主题

28

帖子

27

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-8 13:16:09 | 显示全部楼层
Interesting question,
cant wait to see the answer. We have the same problem when we archive files. Always asumed repathing is the only way to do it. If there would be an other way it would save me tons of time >
回复

使用道具 举报

0

主题

252

帖子

290

银币

限制会员

铜币
-8
发表于 2022-7-8 13:25:21 | 显示全部楼层
Do you have any programming experience?  There are at least 2 options.
 
1-Use E-Transmit and strip the paths.
2-Use code of some sort to repath or strip the paths.  I prefer stripping the paths b/c then you can use them in any folder
回复

使用道具 举报

0

主题

252

帖子

290

银币

限制会员

铜币
-8
发表于 2022-7-8 13:26:20 | 显示全部楼层
I use option 2, which I could share if you want. You will have to tweak it a little, as my pathing is different than yours
回复

使用道具 举报

4

主题

28

帖子

27

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-8 13:36:11 | 显示全部楼层
Would this method work for files that needs repathing even though the "Found at" path has changed as well?
E.g. when we archive the project the whole project folder (with projectfile and Xref) goes from "Current Files" to "Archived Files".
回复

使用道具 举报

0

主题

252

帖子

290

银币

限制会员

铜币
-8
发表于 2022-7-8 13:42:08 | 显示全部楼层
short answer, yes.  The saved path is always tried, and if it isn't found, Autocad starts searching, starting with the current directory.  After that, its your support file search path and Project Search paths.
回复

使用道具 举报

0

主题

252

帖子

290

银币

限制会员

铜币
-8
发表于 2022-7-8 13:52:08 | 显示全部楼层
what is your directory structure look lilke?  current files\xrefs to archived files\xrefs or are all the files in 1 folder?
回复

使用道具 举报

14

主题

29

帖子

16

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
74
发表于 2022-7-8 13:59:48 | 显示全部楼层
Another method I discovered was to use AutoCAD's reference manager.  You can add all your drawings which need repathing and point them to the correct directory.
回复

使用道具 举报

4

主题

28

帖子

27

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-8 14:03:32 | 显示全部楼层
yes johnengineer, we use the xrefmanager atm to repath all the xrefs but it takes a while to do so since most of our drawings have more than 1xref.
I searched the internet and found a lisp that would change the absolute path of the xrefs to a relative path but it doesnt quite do what i need.
I posted it in the LISP catagory and i am hoping that on of the pros can help me solve the problem there.
maybe you could take a look at it there CmdrDuh
 
hope that was ok to post it there and it answers your questions to help me
thanks again in advance
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-3 18:15 , Processed in 0.483273 second(s), 70 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表