Error No Function Definition Vlax-ename - Vla-object
wont autoload or load VLAX-ENAME-VLA-OBJECT « previous next » Print Pages: [1] 2 All | Go Down Author Topic: Lisp wont autoload or load VLAX-ENAME-VLA-OBJECT (Read 4616 times) 0 Members and 1 Guest are viewing this topic. hyposmurf Water Moccasin Posts: 2058 Lisp wont autoload or load VLAX-ENAME-VLA-OBJECT « on: May 24, 2007, 05:53:14 am » Hello everyone,been a while since my head has surfaced on here.Been meaning to sign on but find I have very little spare time and the spare time.Anyway on to my post.I have CAD2K8 installed on my PC now upgraded through subscription.As all installations I have found there are bugs/problems.Never had a clean trouble free install.One of the problems I have is that my autoload files do not autoload if I go to type the command I get this error:VLAX-ENAME-VLA-OBJECT The lisp does then not work.This is a intermittant fault, I have done three complete re-installs now.I have also found that if I manually load this lisp I get the same error.This is annoying in that I cant use certain everyday lisps, plus my autolog lisp for my timesheet aint working.Any ideas? Logged CAD2k7 & 2K4 User Kerry Mesozoic relic Seagull Posts: 11653 class keyThumper by no means a complete reference. Error Message Possible Cause malformed list on input The code is missing one or more right parentheses. extra right paren on input The code has too many right parentheses. malformed string on input The code contains a string which is missing a string delimiter ( " ). too many arguments A function has been evaluated with too many parameters. too few arguments A function has been evaluated with too few required parameters. Function cancelled The user has pressed the Esc key whilst running an AutoLISP function. quit / exit abort Either the (exit) or (quit) AutoLISP functions have been evaluated. Application ERROR: Console break The user has pressed the Esc key whilst the https://www.theswamp.org/index.php?topic=16683.0 program is evaluating the grread function without bit 3 (8) set in the allkeys parameter. bad argument type: numberp: Forums Programming AutoLISP lisp not working on some machines If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing http://forums.augi.com/showthread.php?122199-lisp-not-working-on-some-machines messages, select the forum that you want to visit from the selection below. Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 20 Thread: lisp not working on some machines Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 2010-08-06,03:23 PM #1 rstiles View Profile View Forum Posts I could stop if I wanted to Join Date 2003-11 Posts 258 lisp not working on some machines i error no have a lisp that has been working great for me and others in my office i put it on a new guys system and it gives me this error " Select attribute to fill: ; error: no function definition: VLAX-ENAME->VLA-OBJECT " i loaded my profile on his machine and it worked i shut Autocad down and reopened it and it gave me the same error even on my profile. i opened the drawing on my machine and it works fine. it is error no function definitely his machine I'm getting frustrated. any ideas why this error would come up here is the section of code that contains the vla-object Code: (setq p1 (getpoint "\n Select first point")) ;Get first point of Spline (while p1 ;Start loop (setq p2 (getpoint "\n Select second point (or ESC) ")) ;Get Second Point of Spline (setq d1 (/ (distance p1 p2) 12)) ;Get distance between points (setq d1f (rtos d1 2 0)) ;Format distance (setq Sel (nentsel "\n Select attribute to fill: ")) ;Select correct attrib to alter (= (cdr (assoc 0 (entget (car Sel)))) "ATTRIB") ;Locate Attrib in set (setq AttObj (vlax-ename->vla-object (car Sel))) ;Prepare form insertion (vla-put-TextString AttObj (strcat d1f)) ;Insert new attrib value Last edited by Opie; 2010-08-06 at 08:03 PM. Reason: [code] tags added Reply With Quote 2010-08-06,03:39 PM #2 rstiles View Profile View Forum Posts I could stop if I wanted to Join Date 2003-11 Posts 258 Re: lisp not working on some machines i can attach the whole lisp if required Reply With Quote 2010-08-06,04:02 PM #3 alanjt View Profile View Forum Posts AUGI Addict Join Date 2008-02 Posts 1,138 Re: lisp not working on some machines What you've posted, while completely without any error checking, should work fine. FYI, the following line does nothing. Code: (= (cdr (assoc 0 (entget (car Sel)))) "ATTRIB") Civil 3D 2011|2012 ~ Windohz 7 Dropbox Reply With Quote 2010-08-06,04:04 PM #4 dgorsman View Profile View Forum Posts AUGI Addict Join Date 2015-12
(defun c:90()
(rotatess 90)
(princ)
)
(defun c:fl()
(rotatess 180)
(princ)
)
(defun c:-90()
(rotatess 270)
(princ)
)
(defun c:270()
(rotatess 270)
(princ)
)
;; the following works line this
;; you enter rss
(defun c:rss(/ ang)