The loaded file is a .dll written in Visual Basic.NET using Visual Studio 2010.
NETLOAD Cannot load assembly. Error details: System.BadImageFormatException: Could not load file or assembly 'file:///C:Documents and SettingsdanMy DocumentsVisual Studio 10ProjectsClassLibrary1ClassLibrary1objx86ReleaseClassLibrary1.dll' or
one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I have a project related to connect autocad and visual studio(VB.Net). Example: I open my file autocad and then use command type call run visual studio.
As said before... I don't call the _ARC command... but for the arc Command the right click menu is not shown also...What can I do, to get the normal behavior of the right click?
"Could not load file or assembly 'acmgd, Version=17.0.54.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
This is the error i recieve, i've already referenced the dll from local installed folder, and made local copy as false. but also i recieve this error...
I have this section call out which I modify from default autocad library but the problem I have is that when I scale it to factor of 48 (1/4"=1" drawing) my text is supposed to be 4.5 in and is 4.62. Likewise for scale factor of 96 is 9.24 in as supposed to 9.0 in. HOW GET THE RIGHT TEXT SIZE?
I use multiple layouts to produce build drawings and I use the name of the layout tab to identify the sheet on the shop floor.
I currently use a field in the titleblock that calls the system variable ctab, the problem is that whenever you update the fields, they all change to the name of the current tab, not the name of their own tab (by default, when you open the drawing, they all say Model).
I resort to building all of the layouts and converting that field to text prior to printing.
I'm trying to create a routine that enables the user to change the iProperties on an assembly through Apprentice. I had a sample file that was working last week but when I ran it again I suddenly have a runtime error -2147467259 (80004005). Here is the sample below:
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long Private Type OPENFILENAME lStructSize As Long hwndOwner As Long [code]....
I am using Inventor 2012, service pack 1 is installed as is hotfix DL17804781.
When opening certain Catia files, I get a Runtime Error. After I click ok, Inventor closes without the ability to send a crash report. I never had this issue using Inventor 2011, so I am not sure if it is new to 2012 or if I have something else going on.
I build a program to "*.dll" by Visual Basic 6.0+AutoCad2006,when it runs in Cad VBA Environment,if it gets error,I try to get start again,It shows message:"Rutime Error 429:ActiveX Component Can't Create Object",and then message "440:Automation error".But sometimes,it works all right.Thats troubled me for a long time,I can't find a reason, so can't improve my program.
I randomly get a Microsoft Visual C++ Runtime Library error when working in Inventor. It points to Inventor.exe and says "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." I have a Quadro video card, Win XP, plenty of RAM, no other programs running in the background.
Currently I've got code that is failing when I try to run StartTransaction() using the TransactionManager. I keep getting a InvalidProgramException.
Is this due to me not actually having AutoCAD installed on my development box? I do have references to AcDbMgd and AcMgd loaded in my project if that makes a difference.
I am currently in the process of re-writing my VBA in .net.In VBA I successfully used AcadDocument_BeginClose which called lisp functions.It would be nice to have all code in the same environment I need to transition my changes.
Therefore I need to call lisp from .net.My function works well when run withing the cad files session but does not appear to call the lisp when called after the BeginDocumentClose.
Is it possible to call a lisp function after the BeginDocumentClose event?
I have been trying for weeks and still cat get it to work. I am trying to make my drag out leader to look like a pline with a width of 0 on one side and a width of 4 on the other for civil 3d 2012. See attached .
Is it possible to get a Limit/Fit tolerance included in a Hole Note call out, such as H7 etc?
Currently, when I am dimensioning Counter Bore holes, I have to use a general dimension for CBore dia incuding the Limit/Fit tolerance and manually add the hole dia (or visa versa). This means I have to manually update any changes to hole dia.
I want my custom property to defined as item #. That Item # then is represented in the balloon.
reasoning is that then engineers wont have to check drawings anymore for the guess work involved in matching the part balloon to each individual part in the assembly being called out.
I can then focus on creating a BOM that shows the different item#'s and the user can quickly go through it.
In the inventor drawing, while showing hole callouts for TAP, it is coming along with thread pitch (Ex: M12 x 1.5). But I dont want to show the pitch. How to call out only TAP size(Ex:- M12) without editing the dimension.
I try to start msaccess in runtime mode, but an .accdr will not start.this is the code try to use, without /runtime in the code the .mdb and .accdb works great
I am facing problem with SaveAs API which is when called to save the top drawing of one or above level structure we don’t receive call back for “SaveComplete” event. When we call SaveAs API, it is expected to receive first call back for BeginSave event and then SaveComplete event. But we don’t receive the call back for SaveComplete event.Below is the scenario:
Create a drawing say, “TopDrawing” and attach another drawing (as xRef) say “ChildDrawing” to the “TopDrawing”.
Save the drawings.Now modify the “ChildDrawing”.After this we are using following SaveAs API for the “TopDrawing”.
Observations: After using this API we receive call back for “BeginSave” event. But we are not receiving call back for “SaveComplete” event.Due to this we are not able to save the TopDrawing after the modification of its reference. This issue is observed in more than one level structures also.This is observed with AutoCAD2010,11,12 and 13.
Expected Results:
We should receive call back to SaveComplete following to the call back for BeginSave event in order to save the structure correctly. What needs to be done if I want to get result as I am expecting after using SaveAS API.Also provide me the information about the libraries which are used for SaveAs function.
Normally When I start interface and tagging items (drawings) and writting in to Database, everything is working fine. However my interface is idle for morethan 15 mins, after that if I start the process (Searching items, Creating Items, Writting Items into DB) then immediately I got the Error "Automation Error System call failed". I did lot of R & D on my code, but I am unable to find the issue, may be Objects are emptied or i don't know.
Problamatic Code is given below.
dim strAutoCadVersion as string
strAutoCadVersion = Left(AcadApplication.Version, 2) is giving Automation Error when the interface has been idle for 10 mins.