Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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"
Posted

I'm using autocad 2012 - does this affect anything

 

How do I check if (HKEY_CURRENT_USER) address

Posted

sorted thanks for your help

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...