Relative Path Changes to Absolute Path in DWT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I am currently creating a new AutoCAD profile that will bring in our paperspace sheets via a macro script in a command in the tool palette that's stored on our network.
The command for bringing in the, A0 sheet, for example is:
^C^R_filedia;0;^C^R_layout;t;"S:/GB/DesignDB/Workspace/Autodesk/AutoCAD/BS_Custom/Templates/DWT_For_LISP_Sheet_Import/BS_A0"
Where 'BS_A0' is 'BS_A0.DWT'.
Inside the DWT is a sheet that is inside the drawing, some blocks and text. There is also an XREF that is deliberately relatively XREFFED:
..\Arch\Template files\Titleblock_Attributes\A0_A1_A3_PROJECT_ATTRIBUTE.dwg
When the DWT is loaded via the command from the tool palette, the XREF changes from relative to absolute (a network path).
The idea is that once the drawing is saved in a correct project folder location and then reopened, the relative path will find that relative XREF thats in the ..\Arch\Template files\Titleblock_Attributes\ folder. This is to prevent repeat work (filling out client/project name/ numbers) for each drawing.
Can anyone let me know why the DWT import via macro changes this from relative to absolute?
Thanks