AutoCAD .NET :: Way To Programmatically Check If DLL File Is Plugin
Oct 16, 2012
I'm looking for a way to programmatically check if a dll file is a AutoCAD plug-in, preferably getting the version too.The only thing I can think of is using
System.Reflection.Assembly.ReflectionOnlyLoad()
to load the dll, search thru its references looking for Acad-specific (acdbmgd etc.) get the reference version, compare it to a list....
We have a bunch of dwg files. The requirement is to extract a specific list of attributes from the layers within CAD to a csv file. We are currently manually opening the dwg using AutoCAD and exporting the attributes. This has been time consuming and we need a faster process.
What options do I have to programmtically extract them?
Has this functionality been removed in the 2011 API. What worked fine in 2010 now throws an "Error Decrypting Data" error on trying to open a drawing created with an educational version. These are student files that we are examining with an external marking program. The application can open non-educational versions without issue.
I have some ps files on an external firewire disk; I can open them if I open PS7 first, but if PS is not open and I double click on them I get a quick message at the top of the screen saying "Check Plugin" and PS7 doesn't open.
when I checked the file list on the external disc I found the files were labelled "CheckPlugin document" -
I need to export data to an excel file but I need to check if the file is already open.
Searching the internet I found this but I don't know what "imports" to use to use to enable it.
Public Function FileInUse(ByVal sFile As String) As Boolean If System.IO.File.Exists(sFile) Then Try Dim F As Short = FreeFile() FileOpen(F, sFile, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.LockReadWrite) FileClose(F) Catch Return True End Try End If End Function
I was wondering is there is a way to select an Inventor part file and see which assembly file or files that is is currently used in ? It would be extremely useful to be able to see a list of all the assembly files which are using one particular part so when modifying the part you would know which assemblies would change.
Product Design Suite Ultimate 2013 64-bit HP Z400, Intel Xeon W3550 3.07GHz 12.0GB RAM, ATI FirePro V4800 (FireGL)
I have a "steelplt.png" file that Inventor tells me is not in the correct library path. The problem is that it is in the correct path as defined by the project file. I cannot check in dwg because the "steelplt.png is not in the correct library path".
Product Design Suite Ultimate 2014 Vault Professional 2014 Windows 7 Pro SP1 HP-Z400: 2.67 GHz 12 Gb Ram Nvidia Quadro FX1800 driver 276.42
I am trying to use a shared project with my other colleagues. Problem we are having that we are not getting into how to change the File Check in/out Status (option is disabled/greyed) . Do we required administrative rights to do that?
At my company we use part numbers as file names for everything. for example, part number 09090P00100000, will be saved as 09090P00100000.ipt and will have a drawing saved as 09090P00100000.idw.
Within the drawing template file, i want to set up an ilogic rule that will check that the part present in the drawing corresponds to the file name of the drawing. This rule will run after saving and will just display a warning if the file names do not correspond.
I just need some code that will get the file name of the part displayed in the drawing. Note that we use iparts so the code must get the member file name and not the factory file name.
Dim oDrawingDoc As DrawingDocument oDrawingDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet oSheet = oDrawingDoc.ActiveSheet
[Code] ........
Autodesk Inventor Professional 2011 Windows 7 Enterprise, 64-bit
I am converting 1100 files from RAW to JPEG in ACR and after about every 10 or 15 images I randomly get the script alert 'I am unable to create a file in this folder. Please check your access rights to this location'
Under the properties on that folder 'full permission' is checked for everything. All of the images that have been processed are saved into that folder as well.
With the sad fact that we have to save files into older versions of Corel for other people to open in their Corel Draw, is there an easy way to check an existing CDR file to see which version it is saved in? File-Document Properties DOES NOT seem to do it, although that would be a great place to have it.
is it possible to write a plug in that runs when a user does something.example. you start inventor and open a assembly file the user selects a part and the plugin automatically runs.no pussing buttons, no quick key, it just runs.
I am currently texturing for a game called Morrowind, for my own personal use, but i noticed some of the texture which i need to acess are saved in a file called .DDS and I saw one plugin for it but I couldnt figure out how to install it.
My requirement is to programmatically add labels to the objects on a CAD 2013 drawing in one operation (as opposed to typing them in). The labels exist in an external excel spreadsheet. I am new to CAD development.
I have a .NET plugin that loads an ArcSDE geodatabase layer programmatically using AcMapMap.LoadLayer(layerFilepath). I have been trying to programmatically remove the layer from the Task Pane using AcMapMap.GetLayers().Remove(layer), but this function is returning 'false' and is not removing the layer.
i can access the General layer properties thru the api (circled in green on image). how can i programmatically access the Attributes (circled in red). is this possible?
In C3D (2012 or 2013), the Pipe Properties Dialog reports "Hydraulic Properties" of a pipe section. Through .Net (C#), I can access part data such as Hydraulic gradient etc but I cannot seem to find any reference to three members I see on the mentioned dialog aka "Flow Rate", "Junction loss" and "Return period".
I have "fudged" a term "Flow Rate" into the pipe part parameter definition file (AeccPartParamCfg.xml) and can access that programmatically but I think this "Flow Rate" in the Pipe Properties Dialog" is part of the Auotcad database and I cannot seem to find a route to get hold of it.
I am trying to use iLogic to programatically create virtual components in an assembly. These components will by used as iProperty "buckets" to hold Machine Center specific information to be exported to production planning software. This information is hierarchical in nature and cannot be (conveniently) stored in the assembly iproperties directly.
I am trying to add geometry programatically to a duct fitting. This is because the content builder is incapable of correctly building some types of fittings. I found some old code from an Autodesk University class that shows how to add geometry to a AEC object. I have modified it a little to be able to work with a duct fitting but it does not work. The code compiles fine and runs fine without any errors. The geometry is just not added.
[CommandMethod("ACAClassCode", "ExModelerModifyBody", CommandFlags.Modal)] public void ModifyBody() { Database db = HostApplicationServices.WorkingDatabase; Editor ed =
How to avoid overlapping of programmatically created Mtext.
I have createdMtext for the points present the dwg file, so that they get displayed as labels.
But when there are some densely located points, these points overlay and cannot be read. The font size also adjusted. Then too there are lot of overlapping.
How to avoid overlapping of programmatically created Mtext.