Jump to content

Recommended Posts

Posted

(defun FilCreate (Dir Ext / Name ent)
 (setq Name (vlax-get-property (vla-get-activedocument (vlax-get-acad-object))  "Name"))
 (setq Name (strcat Dir "\\" (substr Name 1 (- (strlen Name) 4)) "." Ext))
 (if(not(findfile Name))
   (progn
     (open Name)
     (close Name)
   )
 )
 (princ Name)
)

When i try to use the above code i recieve either too many or too few arguements depending on if i pass one or two parameters

 

EDIT::

 

Never mind folks stupidity was the source of the problem

 

I've edited the code

 

Thanks

Ollie

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