Ошибка automation отсутствует описание

Visual LISP, AutoLISP and General Customization


Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.


Showing results for 


Show  only 

|


Search instead for 

Did you mean: 


  • Back to forum


  • Previous

  • Next

*Rakesh Rao

265 Views, 9 Replies

‎02-09-2004

01:06 AM

error: Automation Error. Description was not provided.


Hello,

I am stumped on this error. Can anyone explain why it occurs?

error: Automation Error. Description was not provided.

Regards
Rakesh

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter


  • Back to forum


  • Previous

  • Next

9 REPLIES 9

*John Uhden

‎02-09-2004

06:56 PM

Rakesh:
That could mean anything for which a specific catch-all-error-message wasn’t
provided. How about narrowing down the possibilities by wrapping each one in a
catch-all? Better yet, do a dump on the questionable object to see what may not
be available. My guess is that you might be trying to access something like a
Land Desktop project without the application being present. A lot of the the
LDT ActiveX properties and methods return such non-descriptive error messages if
the needed application is either not loaded or not initialized.

Posting code can help us to help you too.


John Uhden, Cadlantic

http://www.cadlantic.com
Sea Girt, NJ

«Rakesh Rao» wrote in message
news:40274D8D.6090006@4d-technologies.com…
>
>
> Hello,
>
>
> I am stumped on this error. Can anyone explain why it occurs?
>
> error: Automation Error. Description was not provided.
>
>
> Regards
> Rakesh
>
> —
>
> AutoCAD customization for Engineering/Mapping/GIS
> Get GeoTools @ http://www.4d-technologies.com/geotools
> Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
> FREE downloads : http://www.4d-technologies.com/techcenter
>
>

*Tony Tanzillo

‎02-09-2004

07:35 PM

Rakesh — Visual LISP sometimes fails to obtain the specific
error message that an ActiveX server returns (and sometimes
the ActiveX server fails to provide specific error messages),
so this particular error message is Visual LISP’s way of saying
that it either can’t obtain the exact error message, or that
no specifc error message was provided by the ActiveX server.

I’m afraid that you will need to indicate what object/method
or property you’re attempting to access in order to determine
what may be causing the problem.

John’s suggestion will not work, since it has nothing to do
with (vl-catch-all-xxxxx), as error is in the ActiveX server
you’re using, not in LISP code.


AcadXTabs: MDI Document Tabs for AutoCAD
http://www.acadxtabs.com

Copyright (c)2004 Tony Tanzillo
Unauthorized reproduction expressly prohibited.

«Rakesh Rao»

wrote in message news:40274D8D.6090006@4d-technologies.com…
>
>
> Hello,
>
>
> I am stumped on this error. Can anyone explain why it occurs?
>
> error: Automation Error. Description was not provided.
>
>
> Regards
> Rakesh
>
> —
>
> AutoCAD customization for Engineering/Mapping/GIS
> Get GeoTools @ http://www.4d-technologies.com/geotools
> Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
> FREE downloads : http://www.4d-technologies.com/techcenter
>
>

*Rakesh Rao

‎02-10-2004

04:47 AM

Hello Tony and John,

Here is the sample code from AutoCAD Map 2002. I hope this will help you.

Please note that this error occurs in a drawing that is not the current
drawing. I open a number of drawings in MDI (Multiple Document
Interface) mode using the «Open» method of the AutoCAD application and
this error shows up when it processes one of the open documents.

(setq
cRecords (vlax-invoke-method odTable «GetODRecords»)
retVal (vlax-invoke-method cRecords «Init» oname :vlax-false
:vlax-false)
)

(if retVal
(progn
(setq cRecord (vlax-invoke-method cRecords «Record»)) ))

The above line («Record» method call) throws up this error shown below:

error: Automation Error. Description was not provided.

Any help is appreciated.

Regards
Rakesh

Rakesh Rao wrote:
>
>
> Hello,
>
>
> I am stumped on this error. Can anyone explain why it occurs?
>
> error: Automation Error. Description was not provided.
>
>
> Regards
> Rakesh
>

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter

*Rakesh Rao

‎02-10-2004

05:01 AM

Hi Tony and John,

Thank you for your answers. I am posting a portion of the code below.
The trouble is that this error shows up in another (non-current) drawing
and not the current one. I am using the ActiveX functions to open many
drawings in the MDI mode and this error shows up in one of the open
drawings when I attempt to process it.

I tried the same thing using (vl-catch-all… exception handling
functions and the same error shows up.

(setq
cRecords (vlax-invoke-method odTable «GetODRecords»)
retVal (vlax-invoke-method cRecords «Init» oname :vlax-false
:vlax-false)
)

(if retVal
(progn
(setq cRecord (vlax-invoke-method cRecords «Record»)) ))

The above line («Record» method call) throws up this error shown below:

error: Automation Error. Description was not provided.

Any help is appreciated.

Rakesh Rao wrote:
>
>
> Hello,
>
>
> I am stumped on this error. Can anyone explain why it occurs?
>
> error: Automation Error. Description was not provided.
>
>
> Regards
> Rakesh
>

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter

*Tony Tanzillo

‎02-10-2004

06:31 AM

Rakesh — The Record method is failing, but I can’t tell you
why (that can be for any number of reasons).

Have you tried checking the IsDone property of the ODRecords
object before you try to call Record, to see if there are any
records in the collection?


AcadXTabs: MDI Document Tabs for AutoCAD
http://www.acadxtabs.com

Copyright (c)2004 Tony Tanzillo
Unauthorized reproduction expressly prohibited.

«Rakesh Rao»

wrote in message news:4028D623.6030004@4d-technologies.com…
>
> Hi Tony and John,
>
> Thank you for your answers. I am posting a portion of the code below.
> The trouble is that this error shows up in another (non-current) drawing
> and not the current one. I am using the ActiveX functions to open many
> drawings in the MDI mode and this error shows up in one of the open
> drawings when I attempt to process it.
>
> I tried the same thing using (vl-catch-all… exception handling
> functions and the same error shows up.
>
>
>
> (setq
> cRecords (vlax-invoke-method odTable «GetODRecords»)
> retVal (vlax-invoke-method cRecords «Init» oname :vlax-false
> :vlax-false)
> )
>
> (if retVal
> (progn
> (setq cRecord (vlax-invoke-method cRecords «Record»)) ))
>
>
> The above line («Record» method call) throws up this error shown below:
>
> error: Automation Error. Description was not provided.
>
> Any help is appreciated.
>
> Rakesh Rao wrote:
> >
> >
> > Hello,
> >
> >
> > I am stumped on this error. Can anyone explain why it occurs?
> >
> > error: Automation Error. Description was not provided.
> >
> >
> > Regards
> > Rakesh
> >
>
>
> —
>
> AutoCAD customization for Engineering/Mapping/GIS
> Get GeoTools @ http://www.4d-technologies.com/geotools
> Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
> FREE downloads : http://www.4d-technologies.com/techcenter
>
>

*John Uhden

‎02-10-2004

07:57 PM

Sorry, Rakesh. I’ve never used the Map ActiveX server, but only the ADE*
functions. Never meant to imply that (vl-catch-all…) would solve your problem
but rather might help to define the problem in case you weren’t sure what call
returned the error. At this point, since you’ve combined two calls into one
(setq), I think you ought run them separately and dump each object if in fact
they returned, including the odtable and oname objects you haven’t disclosed.


John Uhden, Cadlantic

http://www.cadlantic.com
Sea Girt, NJ

«Rakesh Rao» wrote in message
news:4028D623.6030004@4d-technologies.com…
>
> Hi Tony and John,
>
> Thank you for your answers. I am posting a portion of the code below.
> The trouble is that this error shows up in another (non-current) drawing
> and not the current one. I am using the ActiveX functions to open many
> drawings in the MDI mode and this error shows up in one of the open
> drawings when I attempt to process it.
>
> I tried the same thing using (vl-catch-all… exception handling
> functions and the same error shows up.
>
>
>
> (setq
> cRecords (vlax-invoke-method odTable «GetODRecords»)
> retVal (vlax-invoke-method cRecords «Init» oname :vlax-false
> :vlax-false)
> )
>
> (if retVal
> (progn
> (setq cRecord (vlax-invoke-method cRecords «Record»)) ))
>
>
> The above line («Record» method call) throws up this error shown below:
>
> error: Automation Error. Description was not provided.
>
> Any help is appreciated.
>
> Rakesh Rao wrote:
> >
> >
> > Hello,
> >
> >
> > I am stumped on this error. Can anyone explain why it occurs?
> >
> > error: Automation Error. Description was not provided.
> >
> >
> > Regards
> > Rakesh
> >
>
>
> —
>
> AutoCAD customization for Engineering/Mapping/GIS
> Get GeoTools @ http://www.4d-technologies.com/geotools
> Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
> FREE downloads : http://www.4d-technologies.com/techcenter
>
>

*Tony Tanzillo

‎02-10-2004

09:53 PM

Just a word of advice. Using (vl-catch-*) functions
to find the LISP or ActiveX method call that’s failng
isn’t the easiest way to go.

Just replace your default error handler with
this one:

(defun *error* (msg)
(vl-bt)
(princ (strcat «\nError: » msg))
(princ)
)


AcadXTabs: MDI Document Tabs for AutoCAD
http://www.acadxtabs.com

Copyright (c)2004 Tony Tanzillo
Unauthorized reproduction expressly prohibited.

«Rakesh Rao»

wrote in message news:4028D623.6030004@4d-technologies.com…
>
> Hi Tony and John,
>
> Thank you for your answers. I am posting a portion of the code below.
> The trouble is that this error shows up in another (non-current) drawing
> and not the current one. I am using the ActiveX functions to open many
> drawings in the MDI mode and this error shows up in one of the open
> drawings when I attempt to process it.
>
> I tried the same thing using (vl-catch-all… exception handling
> functions and the same error shows up.
>
>
>
> (setq
> cRecords (vlax-invoke-method odTable «GetODRecords»)
> retVal (vlax-invoke-method cRecords «Init» oname :vlax-false
> :vlax-false)
> )
>
> (if retVal
> (progn
> (setq cRecord (vlax-invoke-method cRecords «Record»)) ))
>
>
> The above line («Record» method call) throws up this error shown below:
>
> error: Automation Error. Description was not provided.
>
> Any help is appreciated.
>
> Rakesh Rao wrote:
> >
> >
> > Hello,
> >
> >
> > I am stumped on this error. Can anyone explain why it occurs?
> >
> > error: Automation Error. Description was not provided.
> >
> >
> > Regards
> > Rakesh
> >
>
>
> —
>
> AutoCAD customization for Engineering/Mapping/GIS
> Get GeoTools @ http://www.4d-technologies.com/geotools
> Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
> FREE downloads : http://www.4d-technologies.com/techcenter
>
>

*Tony Tanzillo

‎02-10-2004

09:55 PM

«John Uhden»

wrote in message news:4029a777$1_1@newsprd01…

> Never meant to imply that (vl-catch-all…) would solve
> your problem but rather might help to define the problem
> in case you weren’t sure what call returned the error.

Not sure how vl-catch-* helps in that regards.

It seems to me that it would be
a lot easier to just do this:

(defun *error* (msg) (vl-bt) (princ))


AcadXTabs: MDI Document Tabs for AutoCAD
http://www.acadxtabs.com

Copyright (c)2004 Tony Tanzillo
Unauthorized reproduction expressly prohibited.

*John Uhden

‎02-11-2004

03:21 AM

Have to agree that’s easier. Don’t know how helpful the report is. I was
thinking along the lines of dumping the object that was causing the problem, but
you could do that without (vl-catch…).


John Uhden, Cadlantic

http://www.cadlantic.com
Sea Girt, NJ

«Tony Tanzillo» wrote in message
news:4029c34f_3@newsprd01…
> «John Uhden» wrote in message
news:4029a777$1_1@newsprd01…
>
> > Never meant to imply that (vl-catch-all…) would solve
> > your problem but rather might help to define the problem
> > in case you weren’t sure what call returned the error.
>
> Not sure how vl-catch-* helps in that regards.
>
> It seems to me that it would be
> a lot easier to just do this:
>
> (defun *error* (msg) (vl-bt) (princ))
>
> —
> AcadXTabs: MDI Document Tabs for AutoCAD
> http://www.acadxtabs.com
>
> Copyright (c)2004 Tony Tanzillo
> Unauthorized reproduction expressly prohibited.
>
>


  • Back to forum


  • Previous

  • Next

Issue

You saw an Automation Error message when using one of our plugins with AutoCAD or F/X CAD.

Several different Automation Error messages are possible. Here are the Automation Error messages we’ve seen so far:

  • Error: ‘Automation Error. Description was not provided.’ – when placing or sizing irrigation heads
  • Error: ‘Automation Error. Invalid argument … in SetBitmap’ – when placing or sizing irrigation heads
  • Error: ‘Automation Error: Problem in loading application’ – when opening one of the Land F/X tools
  • Error: ‘Automation Error: No database’ – can occur when opening CAD or attempting to use one of our tools
  • Error connecting to LandFX database: Automation Error – when attempting to use one of our tools
  • Error: ‘Automation Error: Error decrypting data’ – when editing a detail
  • Automation Error. Null object ID – when working with block or detail files, such as updating details
  • Error: ‘Automation Error: On locked layer’ – when placing a schedule or block
  • Error: ‘Automation Error: Access is denied’ (possibly accompanied by a 404 File not found error) – when placing a block or updating Land F/X
  • Error: ‘Automation Error: An invalid character was found in text content’
  • Error: ‘Automation Error: The system cannot locate the resource specified’
  • Error connecting to LandFX database: Automation Error. connect failed – having recently installed the C3D Object Enabler and attempting to open a DWG file
  • Automation error. Invalid class
  • Automation error. AcRxClassName is not in the system registry
  • Automation Error when attempting to send us a technical support ticket
  • Error connecting to LandFX database: Automation Error. Provider cannot be found. It may not be properly installed

Cause

A core architecture within Windows operating systems is the ability to call other programs for common tasks. In regards to this error, this process is called «automation.»

An error in the automation process can mean anything from a legitimate cause (a common library was unable to open a file) to a bug (the variable name for the task was misspelled, or mistakenly released).

The important thing to note is that the fact that the error is an «Automation Error» really doesn’t mean much of anything on its own. For all practical purposes, that phrase is irrelevant, and the «actual» error message is the text that follows the text «Automation Error.»

We’ve adjusted all Automation Error messages so each message now includes the source of the error, which is commonly the most important component of the error – especially when these messages are accompanied by the text No description provided.

Note that in some cases, an alert box comes up and just includes an error message to the effect of Error connecting to landfx.com, but the Command line will contain more information, such as Automation Error: no description provided.rn [MSXML.HTTP], for example.

In some cases, the cause of the error will be fairly obvious in the error message, such as: Automation Error: Permission denied [Scripting.FileSystemObject.Folder.Delete]. Even in that case, however, the information in square brackets helps to clarify exactly what the error text applies to. In this particular case, the error will have popped up when the user attempts to delete a folder. «Permission denied» indicates that the user doesn’t have permission to delete the requested folder.

Solution

Below is a list of each calling object we’ve added to Automation Error messages. If one of these calling objects is included in the error message you’re seeing, use the relevant link below to find the solution.

If the error message you are seeing does not include one of these calling ojects, or you tried resolving the calling object you saw in the message but you’re still seeing the error, see our list of specific Automation Error messages and their solutions.

List of calling objects:

  • MSXML.HTTP
  • Scripting.FileSystemObject.Folder.Delete (when attempting to delete a folder)
  • ADODB.Stream.SaveToZip (when an attempt to create a zip file fails)
  • Shell.Application.Zip.CopyHere (when attempting to copy files into zip file)
  • GetArea
  • GetArea.Boundary.Rebuild
  • AutoCAD.AcCmColor
  • InsertBlock (when attempting to insert a block)
  • Excel.Application (when attempting to export a schedule or other item to MS Excel)
  • OpenDCL.Load
  • ObjectDBX.AxDbDocument.Open
  • LayerState.Read.0 (attempting to read the first line of a layer state file)
  • LayerState.Read.1 (attempting to read subsequent lines of a layer state file)
  • VLA.Open

• MSXML.HTTP

Cause: This message affects a basic Internet object, commonly called Ajax, and indicates a problem with the way Land F/X communicates with Cloud Data. If you see an Automation Error message and this text in the Command line, it means either:

  • The user’s Internet connection is down, or
  • A firewall or permissions are preventing the Internet call

Solution: Check your Internet connection, then determine whether a firewall or folder permissions are in fact preventing Land F/X from communicating with Cloud Data. If so, troubleshoot and address these issues.

• Scripting.FileSystemObject.Folder.Delete (when attempting to delete a folder)

Cause: The user doesn’t have permissions to delete the folder, or the folder is not empty.

Solution: Ensure that you have (or the user has) proper permissions for the folder and that the folder is not empty.

• ADODB.Stream.SaveToZip (when an attempt to create a zip file fails)

Cause: This error is typically the result of an expired trial installation of a zip program such as WinZip, 7-Zip, WinRar, etc.

Solution: Look for and delete any trial installations of this type of app.

• Shell.Application.Zip.CopyHere (when attempting to copy files into zip file)

Cause & Solution: Currently unknown

At present, we are unsure what might cause this error, but it’s still helpful to narrow the issue down. Our best guess in this case is that something like one of the files that were attempted to be copied is open or locked in some fashion.

• GetArea

Cause: The system is unable to query the area of an AutoCAD entity such as a hatch or a closed polyline or spline.

Solution: Select hatches and/or enclosed objects in your drawing and note the contents of the Area entry in the Properties panel. The object causing the error will not have an area listed.

Redraw any enclosed regions of this nature that lack an Area entry in the Properties panel.

• GetArea.Boundary.Rebuild

Cause: The system has attempted unsuccessfully to rebuild the boundary of a hatch with no area.

Solution: Delete the problematic hatch and place it on a valid boundary.

• AutoCAD.AcCmColor

Cause: The system has attempted unsuccessfully to assign a Truecolor to a hatch.

Solution: Follow our instructions to uninstall and reinstall CAD.

• InsertBlock (when attempting to insert a block)

Cause: This error is occurring because the block file is missing or inaccessible, or is unable to be inserted for reasons such as a corrupt file or the wrong CAD version.

Solution: Verify that you are able to find or access the block’s source file. If you can’t find or access the file, add the file to the correct location. If the block you’re trying to insert or place is one of our blocks (such as a plant or irrigation symbol), you can try to delete the subfolder within the LandFX folder where the source file is located (taking cafe to back up any custom block files you currently have in that folder), then place the block again. The source file should download automatically. If the file was corrupt, the newly downloaded one should be functional.

If your LandFX folder is in a location you cannot access, you’ll need to make that location accessible from your computer by either mapping a letter drive to that location or giving yourself the proper permissions to the LandFX folder on either your computer (Single-User installations) or your network (Multi-User installations).

Is the block source file in the correct location and you’re able to access it? Or are you still seeing the error after addressing the location and accessibility issues? It’s time to troubleshoot your version of CAD. You may be using the wrong version, or your installation may have become corrupt. At this point, it’s best to send us a technical support ticket so our team can investigate the issue further.

• Excel.Application (when attempting to export a schedule or other item to MS Excel)

Cause: This error most commonly means your Excel license has expired.

Solution: Ensure that your Excel license is up to date.

• OpenDCL.Load

Cause: This error pops up when the system attempts unsuccessfully to load the OpenDCL project from the Landfx.VLX file. In this case, the VLX file has been damaged, typically from running an update.

Solution: Follow our steps to revert to the previous version of Land F/X, then run the update again.

• ObjectDBX.AxDbDocument.Open

Cause: An automated method of opening a DWG file used by our fxREF tool, for example, has failed because of any of the typical reasons that your version of CAD may not be able to open this type of file. The file may be corrupt or of a file type that your version is unable to open, for example.

Solution: Troubleshoot and address any issues with the file type of the file you’re attempting to open when using fxREF or another tool. You may need to clean the file or ensure its file type is compatible with your version of CAD.

• LayerState.Read.0 (attempting to read the first line of a layer state file)

Cause: This error message is most likely occurring because you have (or the user has) improper permissions for the file, or because the file is corrupted.

Solution: You may need to obtain the proper permissions for the file, or determine whether or not the file is corrupted.

• LayerState.Read.1 (attempting to read subsequent lines of a layer state file)

Cause: The file is undoubtedly corrupt.

Solution: Troubleshoot corruption in the file.

• VLA.Open

Cause: A simple method to open a file has failed because of any of the typical reasons that your version of CAD may not be able to open this type of file. The file may be corrupt or of a file type that your version is unable to open, for example.

Solution: Troubleshoot and address any issues with the file type of the file you’re attempting to open when using fxREF or another tool. You may need to clean the file or ensure its file type is compatible with your version of CAD.

List of specific Automation Error messages and their solutions:

If the error message you saw did not include one of the calling objects listed above, or if you attempted the solution for the calling object you saw but you’re still seeing the error message, see the solution to your particular Automation Error message below.

  • Error: ‘Automation Error. Description was not provided.’ (when placing or sizing irrigation heads)
  • Error: ‘Automation Error. Invalid argument … in SetBitmap’ (when placing or sizing irrigation heads)
  • Error: ‘Automation Error: Problem in loading application’ (when opening one of our tools)
  • Error: ‘Automation Error: No database’ (when opening CAD or attempting to use one of our tools)
  • Error connecting to LandFX database: Automation Error (when attempting to use one of our tools)
  • Error: ‘Automation Error: Error decrypting data’ (when editing a detail)
  • Automation Error. Null object ID (when working with block or detail files, such as updating details)
  • Error: ‘Automation Error: On locked layer’ – when placing a schedule or block
  • Error: ‘Automation Error: Access is denied’ (possibly accompanied by a 404 File not found error) – when placing a block
  • Error: ‘Automation Error: An invalid character was found in text content’
  • Error: ‘Automation Error: The system cannot locate the resource specified’
  • Error connecting to LandFX database: Automation Error. connect failed – having recently installed the C3D Object Enabler and attempting to open a DWG file
  • Automation error: Invalid class
  • Automation Error. AcRxClassName is not in the system registry
  • Error connecting to LandFX database: Automation Error. Provider cannot be found. It may not be properly installed
  • Automation Error when attempting to send us a technical support ticket

• Error: ‘Automation Error. Description was not provided.’

• Error: ‘Automation Error. Invalid argument … in SetBitmap’

You may have received one of these Automation Error messages when placing or sizing irrigation heads.

With either of these functions, the system attempts to set the legacy toolbar image to the radius of the spray head selected. If you receive an Automation Error when doing this, it’s because you are using an extremely old version of one of our toolbars. As a result, the common Windows library for dealing with toolbars is unable to load the revised bitmap image.

If you’ve received either of these Automation Error messages, please follow our steps to download and run the latest Land F/X Workstation installer.

We also recommend that you start using our ribbons rather than the toolbars.

• Error: ‘Automation Error: Problem in loading application’

• Error: ‘Automation Error: No database’

You may see one of these errors when opening one of our tools or when opening AutoCAD or F/X CAD.

A Problem in loading application error means that the library itself cannot be loaded. A No database error means that there’s no object database at all. Either way, the only solution is to reinstall AutoCAD or F/X CAD.

• Error connecting to LandFX database: Automation Error

You might see this error when attempting to use one of our tools. The cause will depend on whether your office has Local Data or Cloud Data, although in either case you’ll need to send us a technical support ticket.

Don’t know whether your office has Local or Cloud Data? Ask your IT administrator.

  • If your office has Local Data and you saw this error, you are likely experiencing a problem with your MySQL database server.
  • If you have Cloud Data, you may also see the following error message: Access denied for user ‘ODBC’@‘XXX.XX.XX.XXX’ (where XXX.XX.XX.XXX represents your Internet IP address). In this case, your install.xml file has been mistakenly switched to Local Data.

In either case, please send us a technical support ticket that includes:

  • The fact that you received the error message Error connecting to LandFX database: Automation Error
  • A screenshot of the error (if possible).
  • A description of the action you attempted within AutoCAD right before you saw the error (i.e., which of our tools you attempted to use).
  • The type of data your office is supposed to be using (Cloud or Local). If you’re on Cloud, please inform us whether you received the ‘ODBC’@ error mentioned above.

• Error: ‘Automation Error: Error decrypting data’

You may have received this error when editing a detail. The error is an indication that the system is unable to open the detail you are trying to edit. Possible reasons include:

  • The detail file could already be open. Another user in your office might have it open, or you might even have it open in another window.
  • Your account might not have permissions to open the detail file.
  • The detail could be saved in a later version of AutoCAD from what you have (for instance, if an AutoCAD 2018 user has saved the detail and you don’t have 2018).
  • The detail could be damaged or require an Audit

1. Open the File menu in AutoCAD and select Open. Then select the detail file you’re trying to edit.

2. You should now receive a clearer error message, which you can then troubleshoot. You will most likely received one of the following two error messages:

  • That file is open by (name of person in your office)
  • Error opening file, DWG must be recovered (or a similar error)

Seeing a different error at this point? If so, use the search box at the top of this page to search for the exact text of that error message on our website. Odds are, we already have a solution for it!

• That file is open by (name of person in your office)

If you receive this message, you’ll know the CAD user named in the error message has the detail open. If so, that person will need to close the detail file before you can edit it.

• Error opening file, DWG must be recovered (or a similar error)

If you see this message, you’ll need to recover the detail file.

Run the RECOVER command by either:

  • Typing RECOVER in the Command line and pressing Enter, or …
  • Selecting Drawing Utilities from the AutoCAD File menu and then selecting Recover… from the menu that opens (as pictured to the right).

You should now be able to open and edit the detail successfully.

Select Drawing Utilities and Recover

• Automation Error. Null object ID

This error can occur when you’re trying to work with a block or detail file, such as updating a detail.

1. Try to open the block or detail file causing the error. (If you’re using our software on a Mac using Parallels, try to open the file on the Windows side.)

2. This error can be caused by drawing corruption. Follow our drawing cleanup steps on both the file causing the issue and the drawing where you tried to use it.

3. Verify that the block or detail causing the error isn’t saved in a newer DWG version. For example, the error can result from an older CAD version trying to use a block saved in a newer file type. If the file is saved in a newer version, save it into a version that is compatible with the CAD version you’re using.

• Error: ‘Automation Error: On locked layer’

You might receive this error when attempting to place a schedule or block. If so, the current layer is locked.

If you receive this error, open the Layer Properties Manager and follow our steps to unlock the current layer.

You should now be able to place the block or schedule without seeing the error.

• Error: ‘Automation Error: access is denied’ – possibly accompanied by a 404 File not found error

Did your get this error when attempting to update our software? If so, your security software (such as Symantec or Norton) may be preventing files on your computer from updating. Try disabling your security software temporarily while updating. Once the updates have gone through, you can re-enable your security software.

You might see the Automation Error: Access denied message, and possibly a 404 File not found error, when placing blocks. The error occurs because the blocks are failing to download due to a connection error. The blocks can be problematic in several possible ways. Examples include:

  • Outdated Land F/X symbol blocks without the letter prefix in their file names (which we added to our default blocks a few years ago)
  • Blocks in incorrect locations

The file names of the problematic blocks should be listed just before or after the error message in the Command line. Take note of these file names.

First, try deleting the block’s source file from the folder LandFX/Blocks. Then try to place the same object again. You may need to re-assign the symbol to the block before you can place it.

Still getting the error? You may need to create the slide (SLD) files manually in the directory that contains the blocks you attempted to download. Doing so will prevent the drawing from trying to download those files every time, which will prevent the Automation Error.

• Error: ‘Automation Error: An invalid character was found in text context’

This error is the result of illegal characters in your drawing or schedule.

You’ll need to do a bit of digging to figure out which entity has an illegal character in its name. Here’s an example:

Near the top of the Command line, you might see something like the following:

  • [3.164] (sys-error «Automation Error. An invalid character was found in text content.rn»)
  • :ERROR-BREAK.159 nil
  • [4.156] (intelligent-invoke # TEXT 4 «037»)
  • [5.148] (vlax-put-property # TEXT «037”)

The key text to look for here is:

  • The error message itself, and
  • The number within quotation marks following #TEXT

Essentially, look for the Automation Error text, then look for # TEXT after it. Take note of the charactes within the quotation marks right after # TEXT (in our example: «037»).

To find the item with the illegal character, you’ll need to do a search for all items related to this value in the Command line. This search will identify which items you need to check for the illegal characters. We recommend that you:

  • Copy the whole command line and paste that text into a text file or word processing document, and then …
  • Use the FIND command (CTRL+F on a Windows keyboard, or Command+F on a Mac keyboard) in the text file or word processing document to search for the value that came up in your Command line.

The screenshot to the right shows an example of text you might see in the Command line when encountering this error, as copied and pasted into a text file. We’ve used three boxes to mark the clues to the problematic item.

To find the item causing the error:

1. Verify the error message and value for the object that’s causing it (middle box).

2. Search for the value you’ve identified in the Command line (top box).

3. Record the name of the item (such as a block or hatch) associated with that value (bottom box).

How to find the item causing the error

In this example, we’ve searched for 037 and found that the problematic item is the tree Acer saccharum. We know this because the name of the symbol assigned to that tree is followed by an empty set of quotation marks (the attribute value), then by a set of quotes containing the value we’ve searched for, which is followed directly by another number.

If the issue is resulting from a plant in your drawing, for example, the issue commonly results from editing a plant and mistakenly adding an illegal character to the Remarks or Notes field. Note that the problem is with the data in the active Land F/X project – not with the symbol block – despite the fact that the illegal character appears in the name of the block in the Command line.

In this case, we’d edit the plant and check for and remove illegal characters in the text boxes in the Plant Info dialog box, such as the Remarks field (most commonly) or even the name fields.

In this example, the illegal character, which appears to be 037, was actually a hidden character code, which happened to be in the user’s plant remarks. In this case, you should be able to select that character (it might look like a block-like black question mark, or even just a space), and delete it.

You might also encounter this error if you’re using one of our old default Preference Sets. Specifically, the problem would lie with Schematic Irrigation categories. If so, you’ll see characters that resemble the «Wingding» font in the Command line.

The main idea is to figure out which entity has the illegal character in its name, and to remove that illegal character. If you are unable to determine which entity includes the illegal character, the next step may unfortunately be to abandon the current Land F/X project. Although that option isn’t ideal, it may be necessary at this point, since that project is essentially corrupt and is preventing you from working in your drawing. If you’re using project templates, you may be able to simply create a new project based on a template and then assign it to this drawing. If you really can’t find the illegal character, and you are able to re-create the data in the current project (such as your plant palette), it may very well be time to leave the current project behind.

• Error: ‘Automation Error: The system cannot locate the resource specified’

You might also see the following error message: Unable to connect to FXDatabase on this computer. Database connection confirmed to be running yet connection refused.

If you see this Automation Error message, a physical or software firewall is preventing CAD from functioning correctly.

1. Close CAD.

2. Follow our instructions to add AutoCAD or F/X CAD as an exception.

3. Reopen CAD and repeat the action that resulted in the error.

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

4. Create a new AutoCAD or F/X CAD profile, or open a different existing profile. Then attempt the action that resulted in the error.

  • Don’t see the error now? The issue was linked to the profile you were using when you saw the error. You’ll need to keep using this new (or existing) profile moving forward. If necessary, you can customize this profile with your preferred settings.
  • Still seeing the error in the new (or existing) profile? Move on to the next step.

5. Follow our steps to tether Land F/X using your phone.

  • Don’t see the error now? The problem is with your network rather than with anything related to Land F/X. Ask your IT administrator to troubleshoot your network.
  • Still seeing the error? It’s time to send us a technical support ticket describing the error. Remember to send us the exact text of the error message and let us know that you’ve tried all these steps.

• Error connecting to LandFX database: Automation Error. connect failed

You might see this error message if you’ve recently installed the C3D Object Enabler and are attempting to open a DWG file.

This error occurs because Autodesk has begun using SQLite for the C3D Object Enabler, which interferes with the version of SQLite we deployed with Single-User Local Data installations.

Error connecting to LandFX database

We’ve changed the version of SQLite deployed in new installations to be compatible with the C3D Object Enabler. You can correct this issue by downloading and running the latest Land F/X Workstation installer. The installer will load the updated version and resolve the error.

Still seeing the error after running the latest F/X Workstation installer?

If you’ve already run the latest F/X Workstation installer and are continuing to see this error, you may be on a domain (you would have had to press Ctrl + Alt + Delete to sign on) and the user who is currently logged in does not have Modify permissions for the Land F/X database file.

To correct this error, the user will need to be granted Modify permissions to the following directory and all its contents: C:ProgramDataLandFX

Need help? Follow our steps for changing permissions on the directory listed above, taking care to select the Modify box under Allow.

Your drive letter may not match our example. If you’re unsure, contact your systems administrator. Also note that a user account on a domain may not be able to modify anything without being made an owner first, so it’s generally best to involve your systems administrator at this point. How to make a user an owner of a directory

• Automation error: Invalid class

This error is caused by the software failing to make a connection to your MySQL server. We attempted to make a test connection to your MySQL server, but the ping service on that system has most likely been disabled. In general, this issue will only occur in domain environments that are managed by an IT representative.

To address this issue, have your IT administrator follow our MySQL errors and troubleshooting steps.

•  AcRxClassName is not in the system registry

You may have seen this error when trying to place a schedule. Here’s the solution.

• Error connecting to LandFX database: Automation Error. Provider cannot be found. It may not be properly installed

You might have seen this error message when trying to use Local Data with an M1 Mac, which is currently not supported due to the unavailability of ODBC connectors for ARM architecture.

To address this issue, follow our steps to select Cloud Data (step 4 of our Switch to Cloud Data steps). The software will not function in a Local Data configuration, so the other steps in that article cannot be completed on the machine where you saw this error.

If you (or the user you are assisting) had a Local Data installation on a previous machine and need to migrate your project data to Cloud, you’ll need to complete our entire process of switching to Cloud Data on that other machine. Otherwise you can restore from backups:

  • Back Up and Restore Projects, Templates, and Preference Sets
  • Import Project Data from .lfx or auto_projdata.lfx or Backup File

• Automation Error when attempting to send us a technical support ticket

If you saw an Automation Error message when attempting to use our Support tool to send us a file in a technical support ticket, or if the tool is simply not working, check whether you have zip file software installed on your computer – specifically, WinZip.

We’ve seen this issue occur on computers that have an expired trial of Winzip installed. If so, try removing it or purchasing it.

You can also try making a zip file of your drawing and Land F/X project data manually, and emailing the zip file to us at support@landfx.com.

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

Форумы CADUser

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

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

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

Страницы 1

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

#1 13 марта 2009г. 13:33:28

  • rozine04
  • Участник
  • На форуме с 13 марта 2009г.
  • Сообщений: 2
  • Спасибо: 0

Тема: vla-select для определения ячейки в таблице

Подскажите пожалуйста в чем ошибка. Пытаюсь определить ячейку в таблице с помощью функции vla-select. Пример взял из книги Полещука.

  (setq Object (vlax-ename->vla-object (car (entsel))))
     (vla-select Object   ;Таблица                
              vlax-3D-point (getpoint))   ;Точка определяющая ячейку
              (vlax-3D-point ‘(0.0 0.0 1))   ;Вектор поиска (не понял что это такое)
              0   ;Ориентация (не понял что это такое)
              20   ;Ширина прицела (Должна ли она быть больше ширины ячейки или нет?)
              5   ;Высота прицела (Должна ли она быть больше высоты ячейки или нет?)
              :vlax-true ‘row ‘col
   )

В результате вылетает ошибка: Ошибка Automation. Отсутствует описание.

#2 Ответ от fixo 13 марта 2009г. 13:51:11

  • fixo
  • fixo
  • Активный участник
  • Откуда: СПб
  • На форуме с 7 февраля 2009г.
  • Сообщений: 869
  • Спасибо: 41

Re: vla-select для определения ячейки в таблице

Попробуй

;; Begin code here
;; Written by Lee Ambrosius
;; Date: 3/24/04 
;; Checks for tables in current view to match up with HitTest
;; This avoids the need for the user to select the table first.

;; Program is provided AS-IS with no expressed written warranty
;; This example demonstrates a couple of the new Table ActiveX properties
;; HitTest, GetCellType, GetText and SetText

(defun c:selTableCell ( / vector table pick row col cellValueOrg)
  (vl-load-com)
 (setq vHeight (getvar "viewsize"))
 (setq vWidth (* (/ (nth 0 (getvar "screensize")) (nth 1 (getvar "screensize"))) vHeight))

 (setq lwrLeft (list (- (nth 0 (getvar "viewctr")) (/ vWidth 2)) (- (nth 1 (getvar "viewctr")) (/ vHeight 2)) 0))
 (setq uprRight (list (+ (nth 0 (getvar "viewctr")) (/ vWidth 2)) (+ (nth 1 (getvar "viewctr")) (/ vHeight 2)) 0))

 (setq vector (vlax-make-safearray vlax-vbDouble '(0 . 2)))
 (vlax-safearray-fill vector '(1 1 1))
 (setq vector (vlax-make-variant vector))

 (prompt "\nSelect Cell to edit: ")
 (setq pick (vlax-3d-point (getpoint)))

 (if (/= pick nil)
   (progn
     (if (setq SS_TABLES (ssget "C" lwrleft uprright (list (cons 0 "ACAD_TABLE"))))
       (progn
         (setq cnt 0 eMax (sslength SS_TABLES))

         (while (> eMax cnt) 

           (setq table (vlax-ename->vla-object (ssname SS_TABLES cnt)))

           ;; Return values for what cell was picked in
           (setq row 0 col 0)

           ;; Check to see if a valid cell was picked
           (if (= (vla-hittest table pick vector 'row 'col) :vlax-true)
             (progn
               ;; Check to see what the Cell Type is (Text or Block)
               (if (= (vlax-invoke-method table 'GetCellType row col) acTextCell)
                 (progn
                   ;; Let's get the value out
                   (setq cellValueOrg (vlax-invoke-method table 'GetText row col))

                   ;; Change the current value
                   (vlax-invoke-method table 'SetText row col "Revised Text")
                   (vlax-invoke-method table 'Update)
                   (alert "Cell text was changed")

                   ;; Restore the original value
                   (vlax-invoke-method table 'SetText row col cellValueOrg)
                   (vlax-invoke-method table 'Update)
                   (alert "Cell text was changed back to the original value.")
                   (setq cnt eMax)
                  )
                )
              )
            )
            (setq cnt (1+ cnt))
          )
        )
      )
    )
  )
 (princ)
)
;; End Code here

~’J’~

#3 Ответ от rozine04 13 марта 2009г. 14:10:58

  • rozine04
  • Участник
  • На форуме с 13 марта 2009г.
  • Сообщений: 2
  • Спасибо: 0

Re: vla-select для определения ячейки в таблице

Спасибо за помощь. Все намного проще решается функцией vla-hittest.

#4 Ответ от Modis 18 марта 2009г. 08:53:36

  • Modis
  • Modis
  • Активный участник
  • Откуда: Липецк
  • На форуме с 17 февраля 2008г.
  • Сообщений: 892
  • Спасибо: 14

Re: vla-select для определения ячейки в таблице

В книге Полещука ошибка (ну или опечатка). Ориентация как и вектор поиска должна задавться трехмерной точкой. В примере из книги надо вместо 0 писать (vlax-3d-point ‘(0.0 0.0 1.0)). Работает как часы

#5 Ответ от Н.Н.Полещук 22 марта 2009г. 15:17:21

  • Н.Н.Полещук
  • Н.Н.Полещук
  • Активный участник
  • Откуда: Санкт-Петербург
  • На форуме с 15 октября 2002г.
  • Сообщений: 209
  • Спасибо: 9

Re: vla-select для определения ячейки в таблице

Александр Пекшев пишет:

В книге Полещука ошибка (ну или опечатка).

Александр Пекшев,
Согласен. Добавил в список опечаток.

Сообщения 5

Тему читают: 1 гость

Страницы 1

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

I see, but the error is not like «Invalid extents».

Error is «; error: Automation Error. Description was not provided.»

Meaning of this, the error is responsed different from the error of Autodesk’s example. Why? Thank you!

This is a report from Command line:

Command: c

CIRCLE Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:

Specify radius of circle or [Diameter]:

Command: (defun init-motivate ()

(_> (vl-load-com)

(_> (setq mspace

((_> (vla-get-modelspace

(((_> (vla-get-activedocument (vlax-get-acad-object))

(((_> )

((_> )

(_> (vla-addray mspace (vlax-3d-point 0 0 0) (vlax-3d-point 1 1 0))

(_> )

INIT-MOTIVATE

Command: ‘_.zoom _e

Command: (defun bnddrop (/ bbox)

(_> (setq bbox (vla-getboundingbox

(((_> (vla-item mspace (- 1 (vla-get-count mspace)))

(((_> ‘ll

(((_> ‘ur

(((_> )

((_> )

(_> (list «Do something with bounding box.» bbox)

(_> )

BNDDROP

Command: (INIT-MOTIVATE)

#

Command: (BNDDROP)

; error: Automation Error. Description was not provided.

  1. 2007-04-04, 03:27 PM


    #1

    rick.so is offline


    Member


    Default Error: Automation Error. Description was not provided

    Hi All,

    I was wondering if anyone has seen this before; I am trying to put a selected object behind all objects in the drawing by doing the following;

    Code:

    (setq doc (vla-get-activedocument (vlax-get-acad-object)))
    (setq space (vla-get-activelayout doc))
    (setq extdict (vla-getextensiondictionary (vla-get-block space)))
    (if (vl-catch-all-error-p
    (setq sorttbl (vl-catch-all-apply 'vla-Item (list extdict "ACAD_SORTENTS"))))
    (setq sorttbl (vla-AddObject extdict "ACAD_SORTENTS" "AcDbSortentsTable")));if
    (setq ent (vlax-ename->vla-object (ssname selectedObj 0)))
    (vlax-invoke sorttbl 'movetobottom (list ent))

    ………

    It works as long as I launch AutoCAD first and then open the drawing! If I double click on the drawing in Explorer (or any other programs that use the dwg file association…) the program will give me the following error : «; error: Automation Error. Description was not provided.»

    I am totally lost!! Any help will be very much appreciated!!!
    Thanks!
    -Rick-

    Last edited by Opie; 2007-05-02 at 09:59 PM.

    Reason: [CODE] tags added


  2. 2007-04-04, 04:11 PM


    #2

    Default Re: Error: Automation Error. Description was not provided

    Try to load (vl-load-com)

    : ) Happy Computing !

    kennet


  3. 2007-04-04, 04:43 PM


    #3

    rick.so is offline


    Member


    Unhappy Re: Error: Automation Error. Description was not provided

    I did! Like I said it works when I launch AutoCAd first and open up a drawing but it won’t work if I call up the drawing by double clicking on Explorer (DDE)!

    I have also tried to launch AutoCAD from Start->Run->»C:Program Files\AutoCAD 2006\acad.exe» (open the drawing after) and it works. But if I do Start->Run->»C:ProgramFiles\AutoCAD 2006\acad.exe c:test.dwg», it gave me that error!

    Last edited by rick.so; 2007-04-05 at 11:16 AM.


  4. 2007-04-17, 06:53 PM


    #4

    rick.so is offline


    Member


    Default Re: Error: Automation Error. Description was not provided

    Anyone??? Anything that can point us to the right direction will be really appreciated!!

    -Rick-


  5. 2007-04-17, 08:52 PM


    #5

    Default Re: Error: Automation Error. Description was not provided

    Quote Originally Posted by rick.so

    Anyone??? Anything that can point us to the right direction will be really appreciated!!

    -Rick-

    hope that will be the right direction..

    Code:

    (vl-load-com)
    (setq	adoc (vla-get-activedocument
    	       (vlax-get-acad-object)
    	     )
      )
      (if (and
    	(= (getvar "tilemode") 0)
    	(= (getvar "cvport") 1)
          )
        (setq acsp (vla-get-paperspace adoc))
        (setq acsp (vla-get-modelspace adoc))
      )		       
    (setq selectedObj (ssget "+.:S:E:N" (list (cons 0 "HATCH"))));<-- change to your suit
    (setq extdict (vla-getextensiondictionary acsp));<--fixed
    (if (vl-catch-all-error-p
    (setq sorttbl (vl-catch-all-apply 'vla-Item (list extdict "ACAD_SORTENTS"))))
    (setq sorttbl (vla-AddObject extdict "ACAD_SORTENTS" "AcDbSortentsTable")));if
    (setq ent (vlax-ename->vla-object (ssname selectedObj 0)))
    (vlax-invoke sorttbl 'MoveToBottom (list ent))
    ;These methods was working for me too
    ;(vlax-invoke sorttbl 'MoveToTop (list ent))
    ;(vlax-invoke sorttbl 'MoveBelow (list ent))
    ;(vlax-invoke sorttbl 'MoveAbove (list ent))


  6. 2007-04-17, 09:14 PM


    #6

    Default Re: Error: Automation Error. Description was not provided

    Quote Originally Posted by rick.so

    Anyone??? Anything that can point us to the right direction will be really appreciated!!
    -Rick-

    Don’t double-click a DWG in Explorer?

    How is this code being run? At startup?

    I just opened a 2008 drawing by dbl-clicking in Explorer, pasting your code and it appears to work just fine. So more information is needed, like maybe the entire routine that this code snip is from, and the version of Acad.

    Last edited by Jeff_M; 2007-04-17 at 09:26 PM.


  7. 2007-05-02, 11:39 AM


    #7

    rick.so is offline


    Member


    Default Re: Error: Automation Error. Description was not provided

    Thank You All for your suggestions!

    It turns out that the code is fine and AutoCAD 2006 is running ok as well. The reason that there is an error when we launch any drawings through DDE (double clicking on Explorer)is because we have a 3rd party software that integrated into AutoCAD and somehow it has mess up the ARX libraries (don’t know which one yet, still working on it). If I uninstall the 3rd party software, I have no problem running the code (DDE or not).

    Once again, thank you all for all your help and suggestions.

    BTW, the code was design to run as a reactor function for the plot command.

    Happy coding!

    -Rick-


Понравилась статья? Поделить с друзьями:
  • Ошибка b1000 00 опель астра h
  • Ошибка automatic wiping active
  • Ошибка b096a шевроле круз
  • Ошибка autoit error line 25408
  • Ошибка b0958 опель