AutoCAD 2010 :: VBA Code Won't Work On 2013 X64 System
Jul 19, 2013
I am upgrading the AutoCAD 2009 X 32 systems to the 2013 X64, and I have this vab code that won't work on the new system. I try to move the search path that contain the file up to the top and also got all the missing libraries, but the code still won't work.When I run the code it will give me error message like: compile error:
Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic. The code work perfectly without any error on the old system so I sure the code is causing this error.
I just installed AutoCAD Civil 3D 2012 last week from upgrading from 2011. I just noticed that when I set up a new drawing coordinate system for a horizontal datum, I get a message "Coordinate System Code is not Valid". I know the files are loaded under the documents and settings folder, but I don't know why it's not reading them.
The company I work for uses Illinois DOT linework Codes.They had been using Microstation. But the office Im in uses Civil 13. Any linework code set that I need to process field to finish?
I have a iLogic rule for saving drawings (dwg) to a pdf file in a designated folder. Everything worked well until this Monday morning. Now I get the message: Error in rule: Save2PDF, in document: 13006-027 propflens-1.dwg Value cannot be null.
I wrote some code in VB .NET 2010 getting started from Kean Walmsley project to create a new layer. I did it working directly from code and not using a command line as he did.
[URL] ...
The problem is that the same code works if I call it directly inside the application code, but doesn't if I throw it from a push button.
I have WEB standard and Design Standard and cannot get the programs to open.Is it because they are installed on a 64 bit system?Are there some patches or downloads that could help?
I have this vba code that created in 2009 autocad 32 bit environment. I am fixing it so it will work for the 2013 autocad civil 3D 2013 64 bit environment.
The code work fine in the old vision but keep on crushing in the new one . I fixed the references and also move up the search path to the top, but it showing compile errors or runtime errors like the following.
 if you ignore that error and run it agin it will go to the next step and show you another errors. after a few rerun it will give the result.I try fix it with an older vision library of autocad 2009 and 2012 both gives an run time error message.
i install my AutoCAD 2012 into my new computer, but after i install it get only 30 days remaining. then i try to put the activation code to activate and it keep getting that the activation code it not correct. i try to request a new activation code but no reply.
note: before i install my autocad 2012 into new computer i uninstall it in my previous computer.
When I click on search, my computer opens the notepad application and the error message says "the filename, directory name, or volume lable syntax is incorrect." I cant go to the videos or the wiki directly from revit either. None of the resources on the right side of the screen are accessible. I do have the educator version of the software.  I have tried to reinstall from the application, but have not uninstalled and reinstalled completely.Â
I recently switched from LDD to Civil 3D 2010 and have since had problems with the command line recognizing Alt Codes when entering leader text. After the leader command is finalized, I am able to edit the MTEXT which does recognize the alt codes. Â I use alt codes for various symbols and now have to edit leader MTEXT each time in order for the symbols to be recognized. Â Is there a toggle or some other setting in later versions of AutoCAD that would allow recognition of alt codes at the command line?
I have been using a dialog box with checkboxes for creating layers for the past 5 years now with minimal problems. Â I don't know much about VBA code, but when there is a problem, I can usually figure out what is going on, which is generally a typo the causes it to error. Â The code was created by an employee that left the company about 3 months after I started.
After installing acad 2013 and the VBA enabler this code only partially works.  It will create the layer in the drawings, but will not set the color, linetype or the description.  When I click on the checkbox for any of the layer checkboxes I get a "Run-time error '13':  Type mismatch" error.  I click on the "Debug" button which opens VBA, the "This Drawing.Layers.Add" line in the below code is highlighted.
As a troubleshooting effort, I tried retyping the ".Color" line, when I had typed out "m_refg_pipe_n." a drop-down box appears, but "Color" is not an option anymore. Â The only color option in the list is TrueColor, which we do not use. Â In the next line of the below code, "Description" is an option. Â So I am guessing that the ".Color" line of code is the problem.
Private Sub CheckBox101_Click() Dim m_refg_pipe_n As AcadLayer Set m_refg_pipe_n = ThisDrawing.Layers.Add("m-refg-pipe-n") m_refg_pipe_n.Color = acGreen m_refg_pipe_n.Linetype = "Hidden" m_refg_pipe_n.Description = "MN - Refrigerant Piping" End Sub
Is there any possible way to enter a G Code into AutoCAD to end with the result of a 2D drawing of what my CNC has made? I have the code from the machine, and am not sure how to input it into the program to draw the face the CNC has cut out.
I am finding with certain types of fonts, mostly on architectural title sheets, that they get substituted to romans font.When I go to the Fontalt Setting Variable though and enter a period for no selection and then regen, all the 'missing" font regenerates and looks fine.
My question is why is the font not appearing properly in the first place? I must have the font if it is appearing properly.I don't want to have to reset the fontalt variable everytime I want to plot a drawing!
I just notice that in 2012 the EXPERT system variable set to 1 no longer suppresses the display of the "Objects moved to frozen or turned off layer" pop up.
Custom rig to work with the HumanIK system in Maya 2013. Im currently trying to map my custom skeleton and get the mocap data to retarget but the skeleton freaks out when I try to change the source.
I've got a Surface Pro and would like to load PhotoShop Elements 11 on this machine. It's a tablet that uses Windows 8 Pro. No mention of this OS in the required specs.
I can start LR : but it gives immedidately the screen : unexpected error opening catalog, when I choose 'choose a different catalog' : he aks me to select a recent catalog to open, but this doesn't work en I neither can check the integrity of the catalog. Is there any possibility to do a repair of the program without losing my material from before ?  When I search .ircat I can' t find any files. Â
We have six CAD machines in our office (not including several versions of LT), and only one machine "AutoCAD 2013" is having this issue:Â
ATTREQ & ATTMODE keep changing to undesirable values.
We generally use "ATTREQ 0" and "ATTMODE 1" and NEVER change these except "ATTREQ" gets changed in some LISP routines depending on the insert, but "ATTMODE" had to be looked up because we never change it from 1.
I know that there is no reference to ATTMODE anywhere in our customizations.
Does AutoCAD try to manage these system variables? Is there anything else that I can check to stop this?
create a G-code from an AutoCAD desktop 3D model of a 1911 pistal grip saved as a DXF file. I have a CNC 6040 3 axis routing machine. I have tried to load the DXF file as an import but the file is not recognized by the Mach3 software.
I have downloaded a lisp comand for my AutoiCAD program which is supposed to generate a G-code within Autocad but It doesnt recongnized some 3D elements. I am having a dificult time getting the generater to read a "mesh" 3D form to generate a G-code. I hope this doesnt sound all too confusing... the bottom line is I cant seem to get a G-code out of a 3D CADÂ form....way to generate smoothly a G-code from an AutoCAD 3D form?
I have code that works just fine in AutoCad 2010 (just plain ol' AutoCad), but will not run completely in AutoCad Mechanical 2012. The code will draw lines, arcs, circle, plines, etc. as well as insert blocks. The command to insert the block has the entire block path so I don't have to rely on setting that up for everyone.
In AutoCad Mechanical only the blocks show up. No lines, arcs or anything else is drawn. I do not use a command method (like in LiSP) to create those objects, I create them through the block table and block table records.
What do I have to do to get my code to run in AutoCad Mechanical 2012?
I am copying chunks of code from the My First Plugin tutorial and am using the code that opens Inventor to start the form. I have both Inventor 2012 and 2013 installed on my system. I have gone in to the properties and changed the .dll reference file to read out of the bin/PublicAssemblies folder in 2013, however, when I run my Windows Form, it will open Inventor 2012 instead.Â
I have a couple of VB pieces of code that set up the standards of my company. What I want to do create a button in my Workspace -within a tab created by me with the CUI tools- and trigger my VB code.Â
Had a system crash. I had Norton 360 using a slave HD as my automatic backup source. To reinstall windows, master HD was overwritten. I thenfound out Norton 360 didn't save my autocad files to the slave HD. Their definition of "other files" didn't cover dwg files unless you did an extremely detailed setup process, which, was not in the Norton instructions. Anyways, local computer service was able to recover about 60% of the "lost" autocad files.
Of those recovered files, about 60% will not open up. Only get a message "not a valid file" The file details show its an autocad file, its size, and the last date of revison.
I am having trouble getting my text height to change user the 'textsize' system variable.
When I input a new height at the command prompt using 'textsize' Â the text height in the text style dialogue box does not automatically change to match. Also when I use the dtext or mtext command after changing the textsize value, these commands use the value in the text style dialogue box instead.
Main issue is frequent crashes of the AutoCAD software. Sometimes 10-12 time's in a day. Unfortunately their are no error messages, and I have yet to see any pattern in when and how it crashes.
The problems I can see are the workspace, and process memory of my system. The workspace does not load correctly. The Ribbon shows multiples of the every tab at least twice. All tabs show the commands but not the pictures associated with the commands. CUIload shows correct workspaces.Â
Second note is that my system runs the same .dwg file's at 2/3 the processing memory than any other identical systems I run AutoCAD on.
Third, through my digging and attempted solutions I found that the AcSignCore_.dll file was missing.
I have: re-installed 3D twice, updated graphics drivers on my system and run open close save hotfix as well as AutoCAD2010 update 2 for 64 bit system.