AutoCAD .NET :: Getting Data From DWG File To Use In C Sharp

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


ADVERTISEMENT

AutoCAD .NET :: Read Data From DWG Excel File Using C Sharp

Jul 5, 2013

example
[CommandMethod("Test")]public static void TestMethod(){ Document doc = Application.DocumentManager.MdiActiveDocument; Editor ed = doc.Editor; Database db = doc.Database; using (Transaction Tx = db.TransactionManager.StartTransaction()) {

[Code]...

1-autocad program will be closed
2-be selected within the file path c sharp example: csharp.jpg
3-I want to read data from a DWG excel file using C#. examples: dwgfile.jpg and drawing1.dwg
4-I want to list here DataGridView data
5-c sharp winform .net 4.0

View 1 Replies View Related

AutoCAD Civil 3D :: Combining Feature Data (Adding Data To Shape File)

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

InDesign :: Events Or Attributes Triggered By Data Coming From Data File?

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

AutoCAD Architecture :: File Will Lose Data After Working In File

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

Photoshop :: Error Message :: This File Contains File Info Data Which Cannot Be Read And Has Been Ignored

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

Photoshop :: Error / The File Contains File Info Data Which Cannot Be Read And Has Been Ignored

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

AutoCAD .NET :: Store Data In DWG File?

Jun 28, 2011

Is there a location I can store large amounts of retrievable data in the DWG file?

View 9 Replies View Related

AutoCad :: Can Data Be Extracted From DWG File

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

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 View Related

AutoCAD 2010 :: Data Extraction DXE File

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

AutoCAD .NET :: Read Data From A DWG Excel File Using C#?

May 18, 2013

this dwg file data reading with c#?

View 9 Replies View Related

AutoCAD Map 3D :: Creating Contours From TXT File Data

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

AutoCAD Map 3D :: Extracting Shape File Data

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

AutoCad :: Writing Plot Data To CAM File?

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

AutoCAD LT :: Data Export To Excel File

Oct 13, 2011

Can I export the text from autocad 2012 LT to excel file.

View 1 Replies View Related

AutoCad :: Import CSV File - Point Data

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

AutoCAD .NET :: How To Compare Two Drawing File With Object Data

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

AutoCAD Civil 3D :: Any Way To Export Table Data To Txt File?

Apr 19, 2013

I want to export my slope - table - legend to an excel or txt file. 

(Of course only the values)

Civil 3D (2013)

View 2 Replies View Related

AutoCAD Map 3D :: 2012 - Data Import (Geometry From SHP Or SDF File)

Nov 24, 2012

I'm using Map 3D 2012 with Oracle 11g. I created an enterprise project with an industry model with water and wastewater modules. After this i created my feature classes and defined the utility model linking the geometry feature class to the attribute ones (ex: WA_POINT to WA_ARMATURE, WA_VALVE, WA_HYDRANT etc.).

At this moment i have to import a large amount of data from *.shp or *.sdf files, but theese files contain geometric and attribute data together.

How can i import the geometry from the shp or sdf file to the geometry feature class (ex: WA_POINT) and the attributes to the attribute feature class (ex: WA_VALVE), while creating the reference between the geometry and attribute feature classes?

I tried bulk-copying the geometry, but it doesn't create the coresponding attribute feature.

View 2 Replies View Related

AutoCAD Civil 3D :: Display Point Data From SHP File

Jan 2, 2013

how to show point labels on the points I imported from a .shp file. I used MAPIMPORT and brought in the associated object data but I don't know how to get it to display in my drawing.

View 7 Replies View Related

AutoCAD Inventor :: Raw Point Cloud Data File

Dec 9, 2011

Any (simple) raw point cloud data file.

View 2 Replies View Related

AutoCAD .NET :: Display Any Attribute Object Data On DWG File

Sep 26, 2012

I have imported a shp to dwg. it has the object data attributes.

Suppose I have a point for cities shp imported to dwg. The attribute has name of the city. How can I display the name of the city to each point on the layer of dwg file.

View 9 Replies View Related

AutoCAD 2010 :: ASCII File With XYZ Coordinate Data

Nov 22, 2011

I have a .PTS file (an ASCII file with XYZ coordinate data + two additional sets of info per point). Is there any way to bring this into AutoCAD natively?

View 7 Replies View Related

AutoCAD LT :: Converting GPS Data From SSF File To DXF And Opening In 2007

Dec 18, 2008

Convert a GPS file (.ssf)? I am attempting to do this by converting the .ssf file, which contains GPS data point information into a DXF file. Then from the DXF file, I tried opening in AutoCadd Lt 2007, but nothing shows up on my screen. There are no layers turned on, frozen and I did a zoom extents, but its as if there is nothing in the file???
I was thinking that maybe I should try converting the .ssf GPS file into a DXF and then placing it into an DGN file.

View 7 Replies View Related

AutoCAD Civil 3D :: Survey Data From A File Into The Drawing

Jul 18, 2012

I imported survey data from a file into the drawing and created a surface from the points and figures. No problem. Engineer wanted to change the datum from assumed to known. At this point all figures have been copied to a new layer flattened and changed to 2D polylines in order to hatch. Then the figures reimported. I raised all the points with the edit datum and raised the figures with edit survey figures. Surface was adjusted and tweaked. Everything was fine. I open the drawing and all the figures are back at assumed datum and the points are on the right datum. Now when I tweak the surface it uses the bogus elevations from the figures.  How can I get my figures to save the adjusted elevations?

View 4 Replies View Related

AutoCAD VB :: Drawing Polylines From Data In Excel File

Apr 26, 2013

I would like an VB application that from within autocad can open an excel file,from there select 2 columns containing x,y co-ordinates. Which when selected will draw a polyline in the acad drawing.

I usually do this the long way, but it seems I'm doing it more and more so would like to have it fairly automated.New to VBA and stuck at even opening the excel file....nevermind the actual selecting columns and drawing of the polyline!!!

View 4 Replies View Related

AutoCAD Map 3D :: Connecting To SHP File Data / Scaling / Units

Sep 12, 2012

So have a university campus map that was drawin in normal AutoCAD with no coordinate system. I am trying to geo-regefernce it.  I was able to get ahold to a SHP file of the campus buidings from another entity on campus that have field verfied coordinates of all the buildings and drawn them in ArcGIS.  What I would like to do is connect to the shape file and then move my CAD map "on top" of the shape file buildings and do any adjustments I might need.  Then my CAD map would be "geo-referenced".

My problem is that when I connect to the shape file the building in the shape file are 1/12 the size of the CAD drawn buildings.  I am assuming that this is because the CAD buiding were drawn as 1 unit = 1" whereas the SHP buildings were drawn as 1 unit = 1'.  

I can scale down my CAD building by 1/12 .

View 1 Replies View Related

AutoCad 2D :: Replacing Text In File Using Excel Data?

Aug 29, 2011

I have an autocad drawing with so many light fixtures with all different names.Now we have to change all those names, i already have an excel sheet containing two columns with first one containing "name in drawing" and second one containing respective "new name".

Is there any way to replace the names in cad file using that excel sheet.i just dont want to do all those thousand rename manually ...

View 6 Replies View Related

AutoCAD Civil 3D :: Insert SID File Using Data Connect

Jul 26, 2013

I am trying to insert an Mr Sid file using Data Connect. I am running 2011 C3D. When I try adding the file to the dwg, it tries to execute the query, but then I get an error "There was a problem adding data to map."

The folder containing the SID file has two other files...the .sdw file and the metadata file. Is there another file missing? Or is the SID file too large...it's 1.6GB.

View 3 Replies View Related

AutoCAD 2010 :: How To Plot (draw) Xy Data Saved In CSV File

Feb 25, 2012

How to plot (draw) the xy data saved in a CSV file?
 
I’m not sure if there is an enhanced workflow to plot the xy coordinates saved in an CSV file in the AutoCAD 2012.
 
I found the approach below in the web
----------
1.Open the Excel file.
2. Save it as a .CSV file (comma separated values).
3. Open the .CSV file in notepad, add two lines at the top:

._multiple
._point

4. Then save this file with a .SCR file extension.
5. In AutoCAD run the ._Script command, and pick the .SCR file above.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved