Ошибка no function definition vlax get acad object

I added the following programming to my Acad2013.lsp file to add Support File Search Paths automatically.

Now I get the following two errors:

no function definition: VLAX-GET-ACAD-OBJECT

; error: no function definition: ACET-REG-PRODKEY

ACAD2013.lsp:

; MODULE_ID ACAD2007_LSP_
;;;    ACAD2013.LSP Version 1.0 for AutoCAD 2013
;;;
;;;  Copyright 2012 Autodesk, Inc.  All rights reserved.
;;;
;;;  Use of this software is subject to the terms of the Autodesk license
;;;  agreement provided at the time of installation or download, or which
;;;  otherwise accompanies this software in either electronic or hard copy form. ;;;
;;;
;;;
;;;    Note:
;;;            This file is normally loaded only once per AutoCAD session.
;;;            If you wish to have LISP code loaded into every document,
;;;            you should add your code to acaddoc.lsp.
;;;
;;;    Globalization Note:  
;;;            We do not support autoloading applications by the native
;;;            language command call (e.g. with the leading underscore
;;;            mechanism.)

(if (not (=  (substr (ver) 1 11) «Visual LISP»)) (load «acad2013doc.lsp»))

;; Silent load.
(princ)

;; This loads CGA custom macro for «Set to current layer» lisp file
(load «s:/acad2007/lisp/layer.lsp»)

;; This loads CGA custom macro for «Set to current layer» lisp file
(load «s:/acad2007/lisp/cgalayr.lsp»)

;; This loads CGA custom lisp files
(load «s:/acad2007/lisp/CGA_custom.lsp»)

;; This loads CGA custom lisp files
(load «s:/acad2007/lisp/door.lsp»)

;; This loads CGA custom macro for Dimension Block Insertion file
(load «s:/acad2007/lisp/cgablockInsert.lsp»)

;; This loads CGA custom macro for Dimension Block Insertion file
(load «s:/acad2007/lisp/imperial-metricblockInsert.lsp»)

;; This loads custom Civil Cannoscales
(load «s:/acad2007/lisp/CS.lsp»)

;; This loads custom GHA Page Setups
(load «s:/acad2007/lisp/GHA Pagesetups.lsp»)

;; This loads custom zoom > xp routine
(load «s:/acad2007/lisp/zoomxp.lsp»)

;; This loads custom Electrical Plan Template
(load «s:/acad2007/lisp/electrical-plan.lsp»)

;; This loads custom dimension routine
(load «s:/acad2007/lisp/dimension.lsp»)

;; This loads custom mvsetup routine
(load «s:/acad2007/lisp/mvsetup.lsp»)

;; This loads custom leader routine
(load «s:/acad2007/lisp/leader.lsp»)

;; This loads custom Roof Framing Template routine
(load «s:/acad2007/lisp/Roof Frame.lsp»)

;; This loads custom Upper Floor Framing Template routine
(load «s:/acad2007/lisp/Upper Frame.lsp»)

;; This loads custom Main Floor Framing Template routine
(load «s:/acad2007/lisp/Main Frame.lsp»)

;; This loads custom GHA Title Block routine
(load «s:/acad2007/lisp/Layout Setup.lsp»)

;; This loads custom Change Caps routine
(load «s:/acad2007/lisp/Chgcase.lsp»)

;; This loads custom GHA Title Block routine
(load «s:/acad2007/lisp/STL.lsp»)

(prompt «nacad2007doc.lsp Loaded…»)

(vla-put-supportpath
  (setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
  (strcat «;S:\Fonts»
          «;»
          (vla-get-supportpath files)
  )
)

(vla-put-supportpath
  (setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
  (strcat «;S:\Acad2007\Hatch_Patterns»
          «;»
          (vla-get-supportpath files)
  )
)

(vla-put-supportpath
  (setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
  (strcat «;S:\Acad2007\Simpson\Menu»
          «;»
          (vla-get-supportpath files)
  )
)

(vla-put-supportpath
  (setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
  (strcat «;S:\Acad2007\Lisp»
          «;»
          (vla-get-supportpath files)
  )
)

(print «Printer setup started.»)
(vl-load-com)
(vlax-for ps (vla-get-plotconfigurations
(vla-get-activedocument (vlax-get-acad-object))
)
(vla-delete ps)
)
(setq expert (getvar «expert»))
(setvar «expert» 2)
(command «._-PSETUPIN»
«S:/ACAD2007/Templates/Sheetsets/Architectural Imperial.dwt»
«*»
)
(setvar «expert» expert)

(print «Printer setup completed.»)

Подобный вопрос с завидной регулярностью появляется на самых разных форумах:

Загружаю лисп, пытаюсь выполнить, а AutoCAD мне в ответ:
no function definition: VLAX-GET-ACAD-OBJECT
И результат нулевой. Что делать?


Все очень просто: в лиспах используется расширение ActiveX, которое в AutoCAD не подгружено. В некоторых версиях (например, 2006) эта подгрузка выполнялась автоматически независимо от желания пользователя; в 2008, 2010 и 2011 это уже надо делать принудительно. Достаточно в самом начале лиспа поставить

И все будет работать.

Надо просто про это не забывать…

Добавлю: сообщение может меняться, но начало всегда одно: не определена функция vl… Решение абсолютно то же самое :)

Перейти к содержимому раздела

Форумы CADUser

Информационный портал для профессионалов в области САПР

Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.

Дерево сообщений Активные темы Темы без ответов

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться

#1 15 октября 2003г. 17:51:05

  • Kosarev
  • Восстановленный участник
  • На форуме с 14 октября 2003г.
  • Сообщений: 28
  • Спасибо: 0

Тема: No function definition: VLAX-GET-ACAD-OBJECT ?

Извините за дилетантство, но в продолжение предыдущей темы хочу спросить, что необходимо подгрузить или установить доступ к чему, чтобы выражения типа
(vla-put-DisplayScreenMenu (vla-get-Display (vla-get-Preferences (vlax-get-acad-object))) :vlax-true)
отрабатывали без
no function definition: VLAX-GET-ACAD-OBJECT.
Желательно учесть, что Ваш оппонент почти ноль в VL.

#2 Ответ от VK 15 октября 2003г. 18:47:36

  • VK
  • Восстановленный участник
  • На форуме с 17 марта 2003г.
  • Сообщений: 1,980
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

Для подгрузки указанных (и других) функций VisualLisp используйте функцию (vl-load-com). Она должна быть выдвана первой. Достаточно один раз на сеанс работы АКАД.

#3 Ответ от Kosarev 16 октября 2003г. 09:04:43

  • Kosarev
  • Восстановленный участник
  • На форуме с 14 октября 2003г.
  • Сообщений: 28
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

Спасибо, VK!
Вполне доходчиво.

#4 Ответ от kos 16 октября 2003г. 09:17:58

  • kos
  • Восстановленный участник
  • На форуме с 6 марта 2002г.
  • Сообщений: 637
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

> Kosarev
Вообще-то в AutoCAD 2000 и более поздних версиях загрузка (vl-load-com) не обязательна — вся эта музыка грузится автоматически. В R14 НУЖНО загружать VL. Но для совместимости лучше грузить в любой версии. Не помешает.
И вообще, для программирования важно какая версия AutoCAD (и соответственно LISP) используется.
______________
Удачи.

#5 Ответ от Апельсинов 16 октября 2003г. 09:27:31

  • Апельсинов
  • Восстановленный участник
  • На форуме с 19 марта 2003г.
  • Сообщений: 83
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

> kos
Встречалась проблема, что в 2002 акаде автоматически «вся эта музыка» не грузилась, возможно что-то было не правильно установлено, возможно что-то просто сглючило. От чего это может зависить?

#6 Ответ от ShaggyDoc 16 октября 2003г. 10:05:06

  • ShaggyDoc
  • Восстановленный участник
  • На форуме с 10 сентября 2001г.
  • Сообщений: 1,761
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

vl-load-com ни разу можно не вызывать только в AutoCAD 2004. Но и вызов ее не повредит, можно оставлять для совместимости программ.
То, о чем писал > kos (2003-10-16 09:17:58) вызвано тем, что какая-то из «полустандартных» программ уже делала такой вызов. vl-load-com загружает vlcom.dll, после чего Visual Lisp начинает понимать все специфичные функции для ActiveX.
Но бывает ситуация, когда и vl-load-com не помогает. Это происходит из-за того, что по каким-то причинам удаляется из реестра информация об axauto15.dll — COM-сервере, который и поддерживает все обращения к Автокаду через интерфейсы. Произойти это может при лечениях и чистках реестра, а также если программист, зарегистрировавший Acad.tlb в палитре компонентов, потом удалит этот пакет.
Для восстановления работоспособности надо сделать

из командной строки (ОС, а не Автокада).

#7 Ответ от leha 16 октября 2003г. 10:13:42

  • leha
  • Восстановленный участник
  • На форуме с 24 июня 2002г.
  • Сообщений: 235
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

Согласен с > Апельсинов (2003-10-16 09:27:31)
В Help’е и 2000, и 2004 сказано одно и то же:
VLISP provides some extensions to the AutoLISP language that are not loaded automatically when you start AutoCAD.

Before you can use any of these functions, you need to load the AutoLISP extensions with the following function call:
(vl-load-com)

И у меня это подтверждается и в 2000, и в 2004. В голом ACAD надо сначала (vl-load-com). И при установке (на сколько помню) ничего такого не спрашивается. Если при загрузке ACAD (vl-load-com) уже выполненно, то это делает какая-то программа. Если нет никаких сторонних программ, возможно, это делает Express.

#8 Ответ от leha 16 октября 2003г. 10:15:34

  • leha
  • Восстановленный участник
  • На форуме с 24 июня 2002г.
  • Сообщений: 235
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

Пока писал, > ShaggyDoc (2003-10-16 10:05:06) уже ответил. Но все-таки повторюсь: в голом 2004 (vl-load-com) все равно нужен.

#9 Ответ от kos 16 октября 2003г. 10:24:04

  • kos
  • Восстановленный участник
  • На форуме с 6 марта 2002г.
  • Сообщений: 637
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

Если нет никаких сторонних программ, возможно, это делает Express.

Самое интересное, что никаких Express’ов у меня не установлено. Правда пользуюсь не голым AutoCAD’ом, а Map’ом. Скорее всего ноги (сиречь com) именно оттуда и произрастают.
______________
Удачи.

#10 Ответ от Дмитрий 19 ноября 2003г. 19:55:52

  • Дмитрий
  • Восстановленный участник
  • На форуме с 17 ноября 2003г.
  • Сообщений: 12
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

Товарищи, ПАМАГИТЕ!!!
Учел все ваши советы, но все равно он (AutoCAD), собака, пишет:
; file «C:\Program Files\AutoCAD 2002\VLLIB.DLL»: 1 зarpyжeннaя фopмa
; file «C:\Program Files\AutoCAD 2002\VLLIB.DLL»: 1 зarpyжeннaя фopмa
; file «C:\Program Files\AutoCAD 2002\VLLIB.DLL»: 1 зarpyжeннaя фopмa
; Пpegynpeжgeнue:C6oй зarpyзku 6u6лuomeku munoв AutoCAD: «Ошибка при загрузке библиотеки»
; Пpegynpeжgeнue:C6oй зarpyзku 6u6лuomeku munoв AutoCAD: «Ошибка при загрузке библиотеки»
; Oшu6ka: no function definition: VLAX-INVOKE-METHOD.
Что делать подскажите!!!

#11 Ответ от VK 19 ноября 2003г. 20:36:02

  • VK
  • Восстановленный участник
  • На форуме с 17 марта 2003г.
  • Сообщений: 1,980
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

> Дмитрий
Когда это пишет, в каком случае?

#12 Ответ от Дмитрий 20 ноября 2003г. 09:29:56

  • Дмитрий
  • Восстановленный участник
  • На форуме с 17 ноября 2003г.
  • Сообщений: 12
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

> VK
Загружаю втупую пример из help’а:
_$ (setq mycircle (vla-addCircle mSpace
      (vlax-3d-point ‘(3.0 3.0 0.0)) 2.0))
#<VLA-OBJECT IAcadCircle 03ad067c>
Преред этим делаю vl-load-com и …

#13 Ответ от allis 26 декабря 2003г. 14:20:48

  • allis
  • Восстановленный участник
  • На форуме с 26 декабря 2003г.
  • Сообщений: 1
  • Спасибо: 0

Re: No function definition: VLAX-GET-ACAD-OBJECT ?

Автокад не может найти своих файлов в Common files просто переставь его.

Сообщения 13

Тему читают:

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться


Добро пожаловать!

Войдите или зарегистрируйтесь сейчас!

Войти


  1. ViruS_worm

    Форумчанин

    Регистрация:
    22 сен 2014
    Сообщения:
    61
    Симпатии:
    6

    здравствуйте. стоит win7 x64+автокад сивил 2016+растер дизигнер
    помогите решить проблему, запускаю програмки с форума (гео-откос и гео_апп) а они не адекватно работают.
    произошло это как всегда неожиданно примерно в такой последовательности:
    все работало -> какое-то время не пользовался -> и на тебе «как отрезало»
    в частности гео-откос выдает: no function definition: vlax-ename->vla-object
    гео_апп не реагирует на кнопки, чертит не полилинии, а отрезки, не вставляет блоки.
    пробовал (vl-load-com) в коммандной строке вводить в ответ ничего
    пробовал (vla-get-activedocument (vlax-get-acad-object)) в ответ #<VLA-OBJECT IAcadDocument 0000000023870cf8>
    пробовал полную переустановку автокада с чистокой реестра и удалением папок ключей описанную здесь
    конечно при полной переустановке операционной системы все болезни лечатся, но как то это кардинально, да и времени тучу потратить
    может кто сталкивался с подобным?

    #1


  2. VovkaMel

    Регистрация:
    24 июн 2015
    Сообщения:
    7
    Симпатии:
    2

    Здравствуйте
    Нашли ответ на вопрос? Столкнулся с такой же ситуацией

    #2


  3. АлексЮстасу

    Форумчанин

    Регистрация:
    28 май 2012
    Сообщения:
    1.776
    Симпатии:
    653
    Адрес:

    Маськва

    Попробуйте прямо автору написать — BearDyugin
    Или в его соответствующие Ресурсы.

    #3


  4. BearDyugin

    Форумчанин

    Регистрация:
    30 ноя 2007
    Сообщения:
    2.702
    Симпатии:
    2.444
    Адрес:

    Сибирь

    С этого он и начал. Но к сожалению я не знаю в чём может быть проблема, периодически(но очень редко) обращаются с подобной проблемой, но даже предположить не могу с чем она связана. Чтобы узнать причину, мне нужно воспроизвести эту проблему на своём ПК, но сделать этого не получится.

    #4


  5. trir

    Форумчанин


  6. VovkaMel

    Регистрация:
    24 июн 2015
    Сообщения:
    7
    Симпатии:
    2

    Сейчас попробую.Спасибо.
    Вчера половину этого перечитал, вопрос так и не решил.Два раза переставлял Cad

    — Сообщения объединены, 15 ноя 2019, Оригинальное время сообщения: 15 ноя 2019

    Подскажите не совсем понятно.В реестре нашел эти строки.Как восстанавливаются пути.Где это делается?Может поможет

    #6


  7. trir

    Форумчанин

    просто поиском найди его на диске

    #7


  8. VovkaMel

    Регистрация:
    24 июн 2015
    Сообщения:
    7
    Симпатии:
    2

    Все получилось.Ура.Но пришлось менять путь в win 64, в win 32 ничего не выходило.
    Спасибо кто помогал

    Благодарность.png

    #8


  9. trir

    Форумчанин

    видимо AutoCAD у тебя х64

    #9


  10. Yaroslavv

    Регистрация:
    3 июл 2019
    Сообщения:
    1
    Симпатии:
    2

    Добрый день, у меня, после удаления Autocad 2021 и установки Civil 3D вылезла аналогичная проблема — ошибка функции VLAX-ENAME->VLA-OBJECT
    И, как следствие, я не смог произвести экспорт координат в файл.
    Собственно помогло изменение реестра как указано в ссылка

    #10


    BearDyugin и Qvinto нравится это.

Поделиться этой страницей

  1. 2009-07-14, 04:05 PM


    #1

    Default error: no function definition: VLAX-GET-ACAD-OBJECT

    Here is probably a new one for you.

    I have AutoCAD 2010 32 and 64 bit, when we run our customizations, on the 64 bit version, everything loads properly.
    If I attempt to run 32 bit, I get this message:

    error: no function definition:
    VLAX-GET-ACAD-OBJECT

    Here is my code:

    Code:

    (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?


  2. 2009-07-14, 06:25 PM


    #2

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Once you run the vl-load-com, your vlax-get-acad-object should turn blue in the vlide. It is starting out black in my 32-bit version. Once I run vl-load-com, it is turning blue and becomes functional.

    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.

    jUSt


  3. 2009-07-14, 06:53 PM


    #3

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Quote Originally Posted by Opie
    View Post

    Once you run the vl-load-com, your vlax-get-acad-object should turn blue in the vlide. It is starting out black in my 32-bit version. Once I run vl-load-com, it is turning blue and becomes functional.

    no dice. It stays black on mine. If I paste the lines in my code above directly to the command line, I still get the error. I did notice some additional info that may be helpful. Here is my command history at the startup of the program:

    Customization file loaded successfully. Customization Group: ACAD
    Customization file loaded successfully. Customization Group: CUSTOM
    Customization file loaded successfully. Customization Group: IMPRESSION
    Customization file loaded successfully. Customization Group: AUTODESKSEEK
    Customization file loaded successfully. Customization Group: EXPRESS
    Regenerating model.

    «0»
    ; warning:AutoCAD type library load failed: «Library not registered»
    ; warning:AutoCAD type library load failed: «Library not registered»

    AutoCAD menu utilities loaded.; error: no function definition:
    VLAX-GET-ACAD-OBJECT

    Command: _RIBBON

    Command: properties

    Command:

    the «0» is a line I have set to print inside my acad.lsp file. I’m guessing that the Library not being registered is something that is occurring within Acad2010doc.lsp. but when I run it manually I dont get these library not registered errors, but the function definition error still doesnt go away.


  4. 2009-07-14, 11:09 PM


    #4

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    If you run (arx) at the command line, is «vl.arx» a member of the returned list? Is vl.arx a valid file in your 32-bit AutoCAD install?


  5. 2009-07-15, 11:28 AM


    #5

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Quote Originally Posted by dgorsman
    View Post

    If you run (arx) at the command line, is «vl.arx» a member of the returned list? Is vl.arx a valid file in your 32-bit AutoCAD install?

    The same arx files are loaded in both the good and «bad» install. How would I determine if it is a valid arx file? I would guess that it would not load if it is no good.

    VL functions are still working (vl-string-left-trim) and such, its just the VLAX and VLA functions that are not recongized

    Last edited by ccowgill; 2009-07-15 at 11:35 AM.


  6. 2009-07-15, 12:02 PM


    #6

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Did you download & install the VBA thingy for 2010? I think the ActiveX stuff only works on the 64bit if you haven’t installed the VBA extensions as well. May be wrong, but I wouldn’t be surprised as VBA is for 32bit & works with the ActiveX stuff.


  7. 2009-07-15, 12:06 PM


    #7

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Quote Originally Posted by irneb
    View Post

    Did you download & install the VBA thingy for 2010? I think the ActiveX stuff only works on the 64bit if you haven’t installed the VBA extensions as well. May be wrong, but I wouldn’t be surprised as VBA is for 32bit & works with the ActiveX stuff.

    but why would the 64 bit work fine and not the 32?


  8. 2009-07-15, 12:13 PM


    #8

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Because the 64 & 32 ARX files should not be the same files. ARX is a binary compiled DLL executable … this means it will be specifically compiled for the OS and Product it runs in.

    Do you have both the 64 & 32 AC installed on the same PC? No sure you can, but it would probably overwrite any «common» ARX’s with the last installed.

    Or maybe that’s why I had the problem last time … I think the ActiveX libraries are only installed with the 64 bit installation. The PC I tested 2010 on was 32 bit … the only solution I got to using VLAX was to install the VBA extension for 2010.


  9. 2009-07-15, 12:19 PM


    #9

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Quote Originally Posted by irneb
    View Post

    Because the 64 & 32 ARX files should not be the same files. ARX is a binary compiled DLL executable … this means it will be specifically compiled for the OS and Product it runs in.

    Do you have both the 64 & 32 AC installed on the same PC? No sure you can, but it would probably overwrite any «common» ARX’s with the last installed.

    Or maybe that’s why I had the problem last time … I think the ActiveX libraries are only installed with the 64 bit installation. The PC I tested 2010 on was 32 bit … the only solution I got to using VLAX was to install the VBA extension for 2010.

    I understand that the arx is compiled specifically for 32 or 64.

    Yes they are both on the same system. As my signature states I am running a dual environment of both 09 and 10. However I am only experiencing this issue in 32bit 2010.

    When I ran the install of 32, it did not install all the proper dll files where they belonged and I had to manually copy them from the cd to the proper locations, i used 64 bit as my template to make sure they were in the proper locations. I followed the exact steps I used to install 32 bit 2009 to install 32 bit 2010. Maybe Autodesk is just making it even more difficult to run 32 on 64.

    Are you saying that you have had this exact issue?


  10. 2009-07-15, 12:42 PM


    #10

    Default Re: error: no function definition: VLAX-GET-ACAD-OBJECT

    Yes, I installed 2010-32bit on a 32bit XP and it did nor run any vlax stuff. Then only after I’ve installed VBA did these run. Some others had similar problems with some code of mine in 2010, which was resolved after they installed the VBA extensions. Check posts #27 & #28 in this thread: http://forums.augi.com/showthread.php?t=78139

    When you say you manually copied the 32bit arx’s did you have to change any registry settings to point AC to the correct folders?


Yes I tried typing (vl-load-com) in the command line then restarting the vlide

….but that does not work. I looked at the posts that Gile had supplied but it does not give a definitive answer.

When I start up I also get the message:

; warning:AutoCAD type library load failed: «Library not registered»

; warning:AutoCAD type library load failed: «Library not registered»

; error: no function definition: VLAX-GET-ACAD-OBJECT

Shaun Huley from Autodesk says:

This is usually the result of a registry not knowing the path to the typelib

and is usually the result of something occurring to the files or registry

problems.

I have also tried to manullly load the vl.arx file but this had no effect.

I have also tried typing in ACADINFO

and at the resulting text file and I get an error with

—————— EXPRESS TOOLS INFORMATION ——————-

ACAD2009DOC.LSP Express Tools load: «ACAD2009DOC.LSP NOT FOUND!»

God knows why its looking for the ACAD2009DOC.lsp when I have never used acad 2009 on this machine!!???

I am reluctant to do a reinstall as results from other posts say this did not always fix the problem.

I have just found out that every other user in our office has the same problem:(

I will keep researching and experimenting……..

If you have an AutoLISP file that does not work or exits like the sample below there might be an easy solution.

Command: (vlax-get-acad-object)
; error: no function definition: VLAX-GET-ACAD-OBJECT

Try running (vl-load-com) or add it to the beginning of the LSP file.

Command: (vl-load-com)

Command: (vlax-get-acad-object)
#<VLA-OBJECT IAcadApplication 00d73d3c>

Now it works as expected without any errors.

What is (vl-load-com) ?

This function loads the extended AutoLISP functions provided with Visual LISP. The Visual LISP extensions implement ActiveX and AutoCAD reactor support through AutoLISP, and also provide ActiveX utility and data conversion functions, dictionary handling functions, and curve measurement functions.

It does not hurt to add (vl-load-com) to your LSP files to make sure it works. If the extensions already are loaded (vl-load-com) does nothing.

Issue

You saw an error containing the text No function definition.

You may have received one of several possible No function definition errors. The exact ones we’ve chronicled are listed in the Solution below.

Cause

A No function definition error is the result of a function within the software that can’t be completed (in other words, it’s not defined). The solution will depend on the function that’s not being defined.

Solution

Step 1: Restart your computer.

Simply restarting can sometimes clear up the error. Try opening CAD after restarting. If you don’t see a No function definition error, you’ve resolved the issue.

Still seeing a No function definition error after restarting your computer? Move on to the specific error message troubleshooting steps below.

Step 2 (if necessary): Troubleshoot your specific No function definition error message.

If restarting your computer didn’t resolve the error, your solution will depend on the exact text within the No function definition error you’re seeing:

• Error: No function definition: WM:COMMAND-WILL-START

This error is the result of custom civil engineering objects that the Canadian firm GHD attaches to its drawings. This practice allows GHD to implement precautions such as preventing users from deleting or moving critical utilities. However, this method of adding this functionality does not follow programming best practices, and essentially makes the file unusable by other firms.

Complete the following steps to clean these custom objects.

1. Open the CAD Options dialog box by typing Options or Op in the Command line and pressing Enter.

2. In the Options dialog box, select the Open and Save Tab. Then set the Demand load ObjectARX apps menu to Command invoke.

3. Open the problematic file.

4. Copy and paste the following text into the Command line, making sure to include all the parentheses:
(dictremove (namedobjdict) «VL-REACTORS»)

5. Press Enter.

6. Immediately run our Nuke tool on the file.

The reactor should now be removed from the file, and you can work with it as you would normally.

Close

• Error: No function definition: vlax-vla-object->ename

• Error: No function definition: vlax-ename->vla-object

• Error: No function definition: VLR-DWG-Reactor

If you received any of these three no function definition errors, your AutoCAD installation is likely configured improperly. The exact cause of these errors is unknown, although they may result from having multiple versions of AutoCAD on your computer.

To resolve the issue:

1. Download the zip file linked below.

Download the file to a location where you can easily find it, such as your desktop.

2. Locate and double-click the downloaded file vlax-ename fix.reg.zip.

3. You’ll now see the Registry Editor warning message pictured to the right. Click Yes.

We are the source of the information referenced in the message, and yes, you can trust us.

4. You’ll now have a file named vlax-ename fix.reg in that same location. Double-click this file.

You may need to run this file as an administrator.

5. Restart CAD.

6. Attempt the same action that generated the error. If you don’t see the error, you’ve resolved the issue.

Still getting the error? Move on to the next step.

7. Check whether you have multiple versions of AutoCAD or F/X CAD installed. If you have an older version installed, follow our steps to uninstall that version. Do not reinstall that older version.

8. Once you’re sure you only have one version of AutoCAD or F/X CAD (the version you want to use) installed, follow our steps to reinstall that version.

For example, if you got the error while trying to use F/X CAD 2018, repair F/X CAD 2018 after removing any older versions.

Problems installing? You may need to disable your antivirus software temporarily while installing AutoCAD or F/X CAD. Don’t forget to enable it once the installer finishes.

AutoCAD includes myriad add-on libraries. If you’re curious, take a look in the folder C:/Program Files/Autocad on your computer. The error may be a result of a problem with one of the following files in that folder: vlreac.dll, vllib.dll, or vlcom.dll.We have been unable to resolve this issue by copying these files over, and these files are not self-registering DLL files, which leaves reinstalling as the only viable solution.

Close

• Error: No function definition: dcl-form-show

This error is the result of a problem with the OpenDCL function. You can easily resolve it by following our steps to reinstall OpenDCL.

Close

• Error: No function definition: (command name)

Examples include:

— Error: No function definition: projectplants

— Error: No function definition: defineworkarea

The exact text of this error message will depend on the command or tool you attempted to use when you received the error. Examples include:

  • Error: No function definition: projectplants: You would have received this error when clicking on a plant.
  • Error: No function definition: defineworkarea: You would have received this error when attempting to open our New Work Area tool.

A similar No function definition error means the file LandFX.vlx was not able to load, but your menu loaded successfully. This issue can occur when:

• The file LandFX.vlx is stored in the LandFX folder on your office server, and the server connection is bad.

If so, ask your IT Admin to troubleshoot your Land F/X installation.

If you are not using our software with an office server, or if your IT admin has determined that your server connection is functioning properly, the issue may be occurring because:

• The file LandFX.vlx is lost, damaged, or missing.

If so, you can resolve the issue by reverting the LandFX.vlx file to the previous version:

1. Locate the file LandFX.vlx in your LandFX folder. Rename this file, giving it the name LandFX.vlx.old

2. Locate the file LandFX.vlx.bak in the same location. Rename this file, giving it the name LandFX.vlx

Close

Понравилась статья? Поделить с друзьями:
  • Ошибка no function definition vlax ename vla object
  • Ошибка no function definition nil
  • Ошибка no entry cfgworlds
  • Ошибка nissan 0110
  • Ошибка net runtime 1023