Hi,
I have been working on creating a Windows application (in C#) to open some drawings in both AutoCAD and AutoCAD electrical.
As of now, I am able to open the last used AutoCAD application
like if I have opened and closed AutoCAD, the windows application will open AutoCAD
If I have opened and closed AutoCAD electrical, the windows application will open AutoCAD Electrical
i understand that you want to start autocad from a winform - that is the first line in your post. you said "I am using the Marshal method and create instance method to try and open both". show your code for that.
However, I wish you provided more information on why you need to start multiple AutoCAD (and its verticals) instances from a stand-alone desktop EXE. If the solution is meant for user working in front of computer, I can hardly see it is user friendly: running 2 app for a job task (the win form app plus one automated ACAD instance) is bad enough in most cases; running 3 or more? I'd consider it is disaster. I'd avoid this kind of solution at all cost.
1. Start 2 instance of AutoCAD: vanilla AutoCAD2020 and C3D 2021. They are started with Process.Start() with proper arguments, which include switch "/product", so that the Acad instance is started as the desired Acad vertical.
2. Use ROT (Running Object Table) to identify different "Product" of the Acad instance and obtain the COM objects back, which could be cast into AcadApplication for early binding. But I'd keep the COM object as dynamic for late binding.
Yes, you are right. My code does not suggest that the COM objects returned from ROT search can be recognized as different verticals of AutoCAD. They are just COM instances of AcadApplication for each running AutoCAD session. That is why I mention the the code comment to use "acad.Caption" would provide the hint of vertical product name (well, unless the running AutoCAD has custom app that manipulate the main window's caption, as AutoCAD .NET API allows it).
So, to make sure which vertical the COM object is, it may require further work, such as trapping exceptions by invoke vertical-only object... But for the OP's original question, if he/she already knows which products to start/or are already started, and there is not code to manipulate the app's caption, it might be good enough to just tell from the Caption property of AcadApplication object.
I am using ACADE 2016 on Windows 10 and/or Windows 7, is there a variable to have it auto prompt for a destination arrow after a source arrow is placed? If not, why is this not already a feature? I cannot remember ever placing a source arrow and not immediately placing a destination arrow.
After you insert a source arrow you will be prompted to insert a Matching Destination Arrow. If the destination will be on the same drawing as the source I would recommend going ahead and inserting the matching destination arrow. Otherwise, you opt not to insert the matching destination arrow. Later when you insert the destination arrow on a different drawing, simply click the Project button and look for the source with the code you wish to connect to.
All of our source and destination are on the same drawing, so every time a source is placed, the destination is immediately placed afterward. We often have over 100 source arrows and corresponding destination arrows, and I feel like it is a nuisance to have to click "yes" after placing every source arrow. Is there a way we can set up up to auto place the destination arrow after placing a source arrow?
I am not aware of any global setting to turn off the prompt. The way you worded the question it sounded like you were not seeing the prompt to insert a matching destination arrow. You can check the box to not be prompted to insert a matching destination arrow. The software will not prompt again for that session of AutoCAD Electrical. So for that session you can insert source arrows back to back with no prompt.
So I used 2015, and have recently moved to 2017 so I am not too familiar with other versions; however, on both versions there is a check box below the Yes / NO box that states "Don't show me this again", if you select this box, then your selection OK or NO the program will remember your selection for your entire session...
another wards if you are doing on page references only, select the check box, hit ok and have at it, you wont be prompted again. If you all of a sudden need to do off page references, restart autocad electrical and it will give you this option to not see it again, this time select no. Otherwise you can just hit escape on the destination prompt if you don't want to restart autocad.
I have posted your request to the Idea Station. Please click on the link below and Vote Up the idea. The more votes an idea receives the better chance it has of getting considered for a future release of AutoCAD Electrical.
We need to install AutoCAD electrical 2022 on windows server OS. But we are getting error that it is not supported. Could you please tell me the workaround for this. how can we use AutoCAD electrical 2022 on virtual servers.
Windows Server is a completely different OS and only a couple of Autodesk programs run on them. What you need to set up is a hypervisor that will run the virtual machines, VMware is an example. Virtual machines can then run Windows 10 which you can then install your Autodesk Applications.
Follow up:
I tried running an AEREBUILDDB and exporting to an .mdb to edit the item numbers that way.
After importing the edited .mdb, the item numbers are still there.
This is not how things should work.
If AEREBUILDDB didnt help. Check recent windows 10 updates : Security Update for Microsoft Office 2010 (KBXXXXX) 64-Bit Edition. This may cause this, try uninstalling the latest Security Update for Microsoft Office 2010 (KBXXXX). This may help.
Microsoft access Database Engine update from Window update has screw up AutoCAD Electrical and there is no AutoCAD electrical update to fix this. you need to manually down grade your database engine to office 2010.
I am an electrical engineer and I use this software on daily basis in the office. Why isn't the toolset available for a Mac user.Yes,I use bootcamp but the experience isn't as good as the AutoCAD 2019 on Mac.I have several questions:
The MacBook Pro is a capable device to run AutoCAD 2019 Electrical but why isn't the Autodesk team giving the solution?When I heard about the toolset idea for the CAD 2019 ,I was so hyped expecting that this would patch up and bring AutoCAD Electrical to Mac.So in order to finish my work ,I have stay overtime in Office to complete my work.Please ,please bring AutoCAD Electrical 2019 to Mac ...It would make much easier.I have the 15 inch 560X version of the MacBook .
My lad I have bootcamp with AutoCAD Electrical 19 with the latest Radeon driver via bootcamp drivers.Now my question is why on earth an i7-8850H processor with 6 cores and 12 threads with base clock of 2.6Ghz with boost clock of 4.0Ghz with dedicated 4GB VRAM of Radeon 560 X with latest drivers is still slow on bootcamp whereas my office prehistoric desktop with 3rd gen i7( with no graphic card) and 4GB RAM runs it better with AutoCAD Electrical 15.But at the same time AutoCAD 19 for Mac works very smoothly.??.Bootcamp ain't smooth and windows is Frustrating.Adobe team can make Lightroom and Photoshop for Mac.What about us engineers, Autodesk please make a fix .And to others who want to reply..PLEASE I KNOW BOOTCAMP.
I have just installed AutoCAD but I need to make schematics. I read that Schneider have an add-in for mac but when I try to access it there is only a windows version so maybe they since dropped support. Any ideas?
I've read in the past that AutoCAD doesn't really unilaterally USE multi-core processors... dunno if maybe that is part of the problem. I believe you are generally better off w/ a higher-rated single-core.
7fc3f7cf58