Dorian Gray Posted May 3, 2012 Posted May 3, 2012 Can someone tell me what the system variable is for setting to relative path - I have created a tool bar that sets the layer, overlay ucs to world, but can’t find any info on the variable for relative path. The code is: (DEFUN C:XRP() (COMMAND "qsave" "UCS" "World" "-LAYER" "make" "MR_xref" "C" "7" "" "" """xref" "O" "~" "0,0" "1" "1" "0")(princ)) I’d like to set it too relative path but can’t find any info on the system variable. Thanks in advance Quote
MSasu Posted May 3, 2012 Posted May 3, 2012 Please check the functions from this article. Also, please edit your post to add code tags. Thank you! Quote
Dorian Gray Posted May 3, 2012 Author Posted May 3, 2012 that helps but somthing is a miss, when I use that coding the realtive path (Setpathtype 0) = absolute (Setpathtype 1) = absolute (Setpathtype 0) = no path (Setpathtype 1) = absolute should be realtive This lisp would be great if the realtive path worked Any suggestions Cheer Quote
MSasu Posted May 3, 2012 Posted May 3, 2012 Just tested the said routine in AutoCAD 2010 and all path modes are set correctly. I suggest you to test the routine with different modes and check in Registry if values are saved correctly on your workstation: "HKEY_CURRENT_USER\\Software\\Autodesk\\AutoCAD\\R18.0\\ACAD-???\\Profiles\\>\\Dialogs\\XattachDialog" Quote
pBe Posted May 3, 2012 Posted May 3, 2012 Please check the functions from this article. Nice linky MSasu Quote
Dorian Gray Posted May 3, 2012 Author Posted May 3, 2012 I'm using autocad 2012 - does this affect anything How do I check if (HKEY_CURRENT_USER) address Quote
Dorian Gray Posted May 3, 2012 Author Posted May 3, 2012 One last thing That works fine if I'm using the dialogue box however if I want to create a function that sets xref path without using a dialogue box how do I go about do that. If you refer back to the original code (sorry for not placing code tags) this lisp will not allow me to change the relative path because it doesn’t utilise the dialogue box. Have you any suggestions Cheers Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.