Jump to content

Recommended Posts

Posted

I am not in any way great with lisp routine programming and or Reactors.

 

My issue:

I want all xrefs to be changed to relative paths upon close of drawing.

 

 

I have a lisp routine that will change all paths to relative but when I insert this reactor below into acad2007doc.lsp I get the following error..

 

; error: Exception occurred: 0xC0000005 (Access Violation)

 

 

here is the reactor:

(defun AtEndCommand (calling-reactor b)
(if (= (nth 0 b) "CLOSE")
 (my lisp routine)
)
)

(defun loadTheReactor ()
(vl-load-com)
(if *FileOnClose* (vlr-remove *FileOnClose*))
(setq *FileOnClose*
(vlr-command-reactor nil '((:vlr-commandEnded . AtEndCommand)))
)
)
(loadTheReactor)

Any help would be greatly appreciated

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...