AutoCAD .NET :: Extracting Data From A DWG File?
Sep 19, 2011
I have been asked to write utility that will open a DWG file, retrieve layer data from the file and put it into a spreadsheet.
I know nothing about AutoCAD but I have been reading on this forum and gathering information. I have found that I have to write a dll that will be used inside of AutoCAD. Here is what I have so far:
1. I have AutoCAD 2008 (will convert to 2011 or 2012 later)
2. I have .NET Framework 4.0
3. I have Visual Studio 2010 Express
4. Needs to be done using VB.NET.
I need to do this using .NET.
Do I need the 2008 API?
Could this be done easier using VBA?
Once I create the dll how do I use it inside AutoCAD?
How do I grab the layer data for studs and braces?
View 3 Replies
ADVERTISEMENT
Oct 9, 2012
I am trying to import a Shape file and extract the attribute data associated with the 'lines' (sewer pipes) into text format.
for example a pipe has an attribute showing the pipe diameter and intead of having to manually type it out I would like a way to extract that information.
Is there a way to do it? Whether using a specific method during the importing of the Shape file or another process?
*I use AutoCAD Map 3D 2011.
View 4 Replies
View Related
Jun 12, 2013
We have a custom LISP program (Written, upadated in 2003) that takes a keyed in item number, opens and searches a .txt file with four coulmns, for the keyed in item number (column 1) and returns a part number (column 2), description (column 3) and any information in column 4.
Here is the Part of the cod in question:
(setq recx (open "H:/ACAD2012/alcocustm/LISP/hardware.txt" "r"))
(setq d "?")
(setq rec (read-line recx))
[Code]....
A quetsion was asked if the data in the .txt file could be put in an Excel file. I tried looking at other post, but I can't seem to find a clear cut way to open and extract the data. Or this old dog overlooked a boand. Is there a easy way to do this, similar to the above?
View 8 Replies
View Related
May 28, 2013
how to extract geometrical data (lenght, width, height) from 3d object to a tab or an external file?
View 0 Replies
View Related
Jun 8, 2012
Here is what i would like autocad to do
I work in architecture, and every time i create an opening (door, window) i add a block next to it with an attribute to the reference number
I was wondering if it would be possible when creating that little block to give it more information and later on extract the information from it to a table
Ex: door 106-02, steel finish, 3'x7' , isolated, steel frame, 2" thick etc.
View 0 Replies
View Related
Oct 31, 2011
I have been through all of the system variable field sources but cannot find one that stores the scale of a viewport. I want to add a field to my drawings that prints the viewport scale and updates it automatically if and when I change the scale.
View 3 Replies
View Related
Mar 16, 2012
I was wondering if there was a way to extract data from Excel to be used in Illustrator. I know there is an option of variables and xml, and I don't want that. I've seen and tried out how to read illustrator and write to excel, and I get that. What I would like to do is pretty much the opposite:
1.Pre-fill in an Excel file(.xls,.csv, doesn't matter) with data such as a filename in column 1 and (Replacement Text) in column 2 and close manually.
2. Run script(VBSCRIPT,Javascript, doesn't matter)
3.For each column in Excel file where cell in first column is not empty, open Illustrator Template with placeholder of "DWG" textframe and replace the frame titled "DWG" with Replacement text from Excel in Column2.
4, Save each to a PDF file and name file with text from Excel Column1(Filename)
In a nutshell, there will be a single illustrator template with a premade textFrame with a name of "DWG". Excel will contain two columns, one for the filename to be named and one for the relative text to replace with the placeholder in AI.
View 17 Replies
View Related
Dec 2, 2013
Is their a way to know or extract the file type or file extension of an External Reference file?
View 3 Replies
View Related
Mar 21, 2012
i have lidar contour file that is a shape file, when i import this file using map with data connect i is imported with the correct elevation but is not useable for presentation only, when i import it with the map import command it does not retain the elevation on the polyline that it imports.
View 5 Replies
View Related
Jan 3, 2012
I'm in the process of creating an external iLogic rule and would like to extract part of the contents of .notepad text file to use in my rule as a string. Is this possible?
View 1 Replies
View Related
Sep 12, 2013
I have a requirement to extract metadata from AutoCAD files with a script. This metadata is the attributes that appear in the files Title Block in the corner. I have come up with some code that I believe can do this, but I cannot run it, since I've been developing in Visual Studio using .NET, and it appears that that .NET API can only be used to build plugins for AutoCAD.
Do I have to use VBA to access the COM? How do I even get started with VBA/COM API? It took me forever to actually find a listing for the .NET Object Model - I don't want to search for that long again to find the COM API, especially if I'm going about this in the wrong way again.
Here is the code I've written to extract the Attributes, but it's probably very wrong as well, since I have not had the opportunity to test it:
class Program {
static void Main(string[] args) {
try { using (Database db = new Database()) {
[Code] .......
View 7 Replies
View Related
Apr 24, 2012
I have a master shape file that contains parcel ID, owner, tax info., etc. I have another file ( access 2003 -open to better file format suggestions-) which contains parcel ID and a "yes" or " no" entry for whether or not the parcel needs a new water meter. All I want to do is add the water meter information into the other shape file. This would create one shape file with one table with all the information that I need.
Ultimately I will use the information to do a map query and find out spatially where i need new water meters.
Right now i have the master shape file connected though the “Connect to Data” feature. I also have the new data added to the drawing though the Data sources------>attach under the “Map Explorer” Task pane. I attached access file (ver. 2003 .mdb) which has two columns “Parcel ID” and “Meter”.
I right click on the shape file under the display manager and select”Create a Join;” however my water meter table is not listed as an option. Will this not work?
Plan B - I tried to Create and connect to the access file as an ODBC connection. Followed this guy’s directions to a T [URL]. But when i populate my table under the fdo connection the column headings exist ( “parcel ID” and “Meter”) but the actual data is missing. Am I missing something important?
Note: I am running c3d 2012 on a Win 7 64 Bit machine. I also removed office 32 bit apps and installed 64 bit apps to see if that would solve the problem. No go.
View 3 Replies
View Related
Jul 7, 2012
i want to know how to create template file right from scratch and which format I should use to extract information from blocks and its attributes.
View 1 Replies
View Related
May 11, 2013
how to extract the attribute value of a particular block in multiple drawings to an excel file.
Eg... there are nearly 800 drawings where I need to list down the description and Drawing number which is mentioned in the title block name "Title". The Drawing Number and the description is done in same attribute block. extract the data into an excel file or txt file. All the drawings are saved in one location.
View 7 Replies
View Related
Feb 19, 2003
When I opened the file in Photoshop I think it was converted to a CYMK (I have no idea what that means...)file.
Anyway, so now I can see the logos on the .ai file but how do I extract them from that file so I can use them in my own design???
It seems like they're fixed on that layer...I can't move them around or copy/paste them...
View 8 Replies
View Related
May 11, 2008
I've downloaded a brush, that I'd like to use in Photoshop 10, and I read that you're supposed to extract the file into
Program Files > Adobe > Photoshop (whatever version you are using) > Presets > Brushes
Now, this is how far I can get:
Program Files > Adobe CS3 > Photoshop > Adobe CS3
I don't have anything called "Presets", but I have payloads, redist and resources. I can't find anything similar to "brushes" either, am I in the right place?
View 2 Replies
View Related
Mar 1, 2014
Without using scripts, is there any way to have rectangles or textboxes act on values coming from a data file? For examplle if the value in a textbox was greater than 10 coming from a data record, could the textbox change color, or any other attribute to make it change from record to recortd as it is being viewed or printed?
View 9 Replies
View Related
Oct 17, 2012
I have seen mention of a utility called xcf2png which can extract layers from a XCF file and write them to a PNG, but it seems there is no Windows version.
Any way of doing this under Windows/DOS? I just want to extract a layer by name and write it to a PNG file with the same name as the layer.
Or even better - searches a XCF file for layers that (say) start with an underscore and exports only those layers to separate named PNG files.
View 2 Replies
View Related
Oct 25, 2012
I have upgraded to ACA 2013 and I have had nothing but problems and I want to know if I am alone on this. I have uploaded AEC Section Display and Tag Scale Hotfix, URL....
AutoCAD Architecture 2013 Service Pack 1, URL....
AutoCAD Architecture 2013 & AutoCAD MEP 2013 Content Browser Migration Hotfix. URL....
ACA2013 was released and I have had it on the desk for some time and finally I got the nerve to load the upgrade. This I did in accordance with the instructions. The upgrade went well.
Additional problems with my working files involved, the file will lose data while working in the file, the program will do strange things to the file like I would lose data while in layout tab within a viewport and the data would still be present in the model tab. I have lost printer setup files only to reopen the drawing and find these have returned.I have lost layout tabs completely. I would reload another menu and they would return. I was speaking to another person comparing Autocads and his had the layout tabs and mine did not.I have zoom scaling problems within the layout viewport. I use to be able to zoom, scale, 1/20xp for 1:20 scale and it would not recognise the command.I was informed via Autodesk to load the service pack Autocad_2013_sp1.14_64, this would not work then I was informed to load the service pack Autocad Architecture _2013_sp1_64 which it did successfully. Still had problems with ACA2013. have situations where the shell command will not work ie punch a hole within the object selected.I have changed from the working model tab to layout tab and back to model tab only to have the view change for no reason ie it will go into (+)(custom view)(wire frame) without selecting it.I have lost data, (part of the actual drawing) within my working drawing simply by using the boeleon subtract command.I have situation when you use the push pull command and nothing happens and then you reopen ACA afresh and try it again and this time it will work.I have email Autodesk in the US and it got alll TO HARD for them and they have abandoned me.
View 9 Replies
View Related
Feb 8, 2009
After I save a file for "Web & Devices," when I open it, it returns this message, "This file contains file info data which cannot be read and has been ignored." Will this cause any problem with the file once I place it in the website I'm building? I've never seen this message before on a photo I've edited. The changes I made involved color correction.
View 9 Replies
View Related
May 31, 2012
We have been sending images out to contractors, and sometimes when they come back the files are having this error:
the file contains file info data which cannot be read and has been ignored
When I then try to Photoshop Script the file info it throws errors.
View 5 Replies
View Related
Jul 8, 2013
I am a new c sharp developer. I want to create a program in C sharp, which can communicate with autocad, when I do click in some area of the drawing, I can call to the c sharp program with the information of the object selected, for example I want to know the four utm coordinates of a rectangle,with those coordinates I want to search in a sql server database, which contains information of the object selected, for example if I select a rectangle, the database must contain the name of the owner, location and display to the user the information.
Otherwise, I want to open the program in c sharp, doing a searching via name of the owner and I want to open the dwg file that contains the utm coordinates of the name provided.
View 3 Replies
View Related
Jun 28, 2011
Is there a location I can store large amounts of retrievable data in the DWG file?
View 9 Replies
View Related
Nov 11, 2011
I don't have AutoCad, but I was given a DWG that was created in 2007. It is a map of a lake's water depth vs distance in the east and north directions. Is it possible extract the actual value of water depth from the DWG file? For example the file would contain columns of x-location, y-location, and water depth.
View 7 Replies
View Related
Feb 3, 2010
I am creating a schedule with a .dxe file, which extracts data from attributes into a schedule. Is there a way to link this file so it is a "relative path" instead of a full path. IE: The .dxe file is liked to the same folder that contains the current drawing, not linked to my C:/AutoCad drawings/Job Name/folder2... I really want to be able to move the drawing and .dxe to a different folder and not have the link broken.
View 4 Replies
View Related
May 18, 2013
this dwg file data reading with c#?
View 9 Replies
View Related
Mar 3, 2013
I have been trying to create a contour map from survey data my group collected for a project but have not had much luck. I have all of the data in a text file (that is set up correctly) with the northings, eastings and elevations. I can get that to import the points and it is correct but I cannot get the contour lines to draw. I need the intervals to be .25ft with a major line every 4. there is about 1600 different data points.
Steps to create them from a text file? To get the points in the file i used "_MAPIMPORT"
also, the data is in an L shape so how to create a boundary condition to only contour that L shape and not try to connect points on opposite ends of the area?
View 9 Replies
View Related
May 25, 2013
I am experimenting with a simple form of CAD/CAM and would like to be able to export the coordinates of my drawing to a data file in order to use it as an input file forthe CAM system. I am running AutoCad 2000 and would expect to be able to have this option available under the Plot command but have not been able to see how it can be done. For example, taking the simple case of a rectangle, I would like to be able to write to file the coordinates of the four corners of the drawing.
View 9 Replies
View Related
Oct 13, 2011
Can I export the text from autocad 2012 LT to excel file.
View 1 Replies
View Related
Jul 5, 2010
I have collected point data for the positions of trees using PocketGIS software. The software produces a csv. file with the Northings and eastings of each point surveyed to which are attached a number of other attributes (e.g. tree tag number, height, species etc.).
Is it possible to import and plot these points directly into AutoCAD?
Can some or all of the attributes be included (i.e. it would be very useful if the positions could be plotted together with the tag number)?
View 9 Replies
View Related
Apr 25, 2012
How to compare two drawing file with object data(two version of the same drawing) . Any source code (C# Arx) then will be much better.
View 7 Replies
View Related