Author Topic: ** Error: no function definition: VLA-GET-OBJECTID32 **  (Read 12853 times)

0 Members and 1 Guest are viewing this topic.

KuoTze

  • Mosquito
  • Posts: 7
** Error: no function definition: VLA-GET-OBJECTID32 **
« on: April 01, 2014, 08:32:17 AM »
i work in AutoCad 2015 and run "LeeMAC's CountV1-3.lsp" but it error and msg is ** Error: no function definition: VLA-GET-OBJECTID32 **

How can Fix it ......

Sorry i English is not good to say ~~ please forgive ~~  :embarrassed:

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #1 on: April 01, 2014, 08:49:40 AM »
The function is obsolete.
I'm not sure how or why it is being used.

Can you test/try the code using VLA-GET-OBJECTID
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.

KuoTze

  • Mosquito
  • Posts: 7
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #2 on: April 01, 2014, 09:04:13 AM »
 :embarrassed:

i try to fix "vla-get-objetcid32 to vla-get-objetcid"

but can't work and Msg ** Error: ActiveX Server returned the error: unknown name: "SETBLOCKTABLERECORDID32" **

So .... i can't fix it ........
« Last Edit: April 01, 2014, 09:18:11 AM by KuoTze »

ronjonp

  • Needs a day job
  • Posts: 7527
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #3 on: April 01, 2014, 09:18:06 AM »
Change the function to this:


Code: [Select]
(defun _getobjectid (doc obj)
    (if   (and (_is64bit) (= (type vla-get-objectid32) 'subr))
      (vla-get-objectid32 obj)
      (vla-get-objectid obj)
    )
  )

And change this portion of the code:
Code: [Select]
                (if (and (_is64bit)
                    (= (type vla-setblocktablerecordid32) 'subr)
                    )
                  'setblocktablerecordid32
                  'setblocktablerecordid
                )
Welcome to TheSwamp :)
« Last Edit: April 01, 2014, 09:24:28 AM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

KuoTze

  • Mosquito
  • Posts: 7
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #4 on: April 01, 2014, 09:27:26 AM »
 :-) thank ...

i paste your code to lisp it can't work and msg ** Error: ActiveX Server returned the error: unknown name: "SETBLOCKTABLERECORDID32" **

so ......................

Change the function to this:


Code: [Select]
(defun _getobjectid (doc obj)
    (if (and (_is64bit) (= (type vla-get-objectid32) 'subr))
      (vla-get-objectid32 obj)
      (vla-get-objectid obj)
    )
  )


Welcome to TheSwamp :)

KuoTze

  • Mosquito
  • Posts: 7
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #5 on: April 01, 2014, 10:00:55 AM »
thank your code

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(if (and (_is64bit)
                    (= (type vla-setblocktablerecordid32) 'subr)
                    )
                  'setblocktablerecordid32
                  'setblocktablerecordid
                )

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



but ......

now error msg is :

Output [Table/File/Settings] <Exit>:

Specify Point for Table: ; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)

it can't work   :embarrassed:

ronjonp

  • Needs a day job
  • Posts: 7527
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #6 on: April 01, 2014, 11:42:35 AM »
Give this version a try .. seems to be working on my computer. I noted the change in the header.




Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

KuoTze

  • Mosquito
  • Posts: 7
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #7 on: April 01, 2014, 12:32:32 PM »
Thank you so much  ...........

Count1.31-RJP can work

Thank you so much  ...........

 :lmao: :lmao: :lmao:

ronjonp

  • Needs a day job
  • Posts: 7527
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #8 on: April 01, 2014, 12:34:31 PM »
Glad to help  :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #9 on: April 01, 2014, 06:05:26 PM »
Many thanks Ron -
I don't have a 64-bit system on which to test the program, so I am incredibly grateful for your assistance.

Lee

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #10 on: April 01, 2014, 06:10:34 PM »
The function is obsolete.

Hi Kerry,

I wasn't aware that this function had become obsolete in 2015.
Thank you for the information.

Lee

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #11 on: April 01, 2014, 09:04:40 PM »
It was marked Obsolete in the 2014 Help. I can't confirm 2015 yet.
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.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #12 on: April 01, 2014, 09:29:57 PM »
Many thanks Ron -
I don't have a 64-bit system on which to test the program, so I am incredibly grateful for your assistance.

Lee


Anytime Lee :) .. you've helped me a ton.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

ronjonp

  • Needs a day job
  • Posts: 7527
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #13 on: April 01, 2014, 09:31:18 PM »
It was marked Obsolete in the 2014 Help. I can't confirm 2015 yet.


Installed 2015 a week ago and that function is gone.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Hugo

  • Bull Frog
  • Posts: 430
Re: ** Error: no function definition: VLA-GET-OBJECTID32 **
« Reply #14 on: April 02, 2014, 12:38:02 AM »
Hallo Lee

Here I have ever asked is that no longer work in 2015.  :-D

Hier habe ich schon mal gefragt das das nicht mehr funktionieren wird in 2015.


http://www.theswamp.org/index.php?topic=33654.msg513336#msg513336