Author Topic: error: no function definition: VLAX-GET-ACAD-OBJECT  (Read 8270 times)

0 Members and 1 Guest are viewing this topic.

Chris

  • Swamp Rat
  • Posts: 548
error: no function definition: VLAX-GET-ACAD-OBJECT
« on: July 14, 2009, 03:12:10 PM »
Here is probably a new one for you.

I have AutoCAD 2010 32 and 64 bit, when I run my customizations, on the 64 bit version, everything loads properly.
If I attempt to run 32 bit, I get this message:
Quote
error: no function definition:
VLAX-GET-ACAD-OBJECT
Here is a portion of my code:
Code: [Select]

(vl-load-com)
(setq acadObject (vlax-get-acad-object))

Is there a separate arx file that AutoCAD should be loading that allows the visual lisp commands to function? Even in VLIDE, the function isnt blue, it shows as black.

I'm confused, any suggestions?
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #1 on: July 14, 2009, 03:22:01 PM »
I had this similar thing...

I just manually typed (vl-load-com) at the command line, and hit enter - then all was fine from then on. So I just chucked (vl-load-com) in my ACADDOC, but yes, when it first happened to me, I was stumped.

Chris

  • Swamp Rat
  • Posts: 548
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #2 on: July 14, 2009, 03:44:03 PM »
I did what you described and it still isnt working
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #3 on: July 14, 2009, 04:09:07 PM »
OK, that is weird then...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #4 on: July 14, 2009, 04:19:20 PM »

Quote
... Even in VLIDE, the function isnt blue, it shows as black.

does it show as protected (blue) after you run the (vl-load-com) function ??

works for me in 2010

///kdub
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Chris

  • Swamp Rat
  • Posts: 548
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #5 on: July 14, 2009, 04:22:42 PM »
no
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #6 on: July 14, 2009, 04:24:19 PM »

best guess then : you have a faulty install ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Chris

  • Swamp Rat
  • Posts: 548
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #7 on: July 14, 2009, 04:26:13 PM »
I'm also getting some error that a library isnt being registered.  The error appears on my command line after acad.lsp is run, and before my acaddoc.lsp fires up.  Not really sure what isnt being registered, I ran my acad2010doc.lsp file manually and got no error messages, and still nothing worked.

on the faulty install:
I would guess that because half the dll files and such wernt copied to the directory, but I compared it to another installation and manually copied stuff over from the installation disk.  maybe it is a registry entry, because I have the identical files in all required folders as an installation that works properly.
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10

cadgene

  • Guest
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #8 on: January 19, 2011, 11:13:01 PM »
I have the same problem! :-( it is driving me crazy. It works on a 32 bit PC but not on a 64 bit. I tried everything.

Chris

  • Swamp Rat
  • Posts: 548
Re: error: no function definition: VLAX-GET-ACAD-OBJECT
« Reply #9 on: January 20, 2011, 07:36:37 AM »
my solution, install 64 bit AutoCAD on 64 bit windows, the workaround that has been posted on the Internet, doesnt seem to work for 2010 and above.  (unless someone has come up with a new way of getting around it.)
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10