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


ADVERTISEMENT

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

Illustrator Scripting :: How To Read Real Number Data From Selected Columns In Excel Spreadsheet

Oct 27, 2013

Problem:

How to read real number data from selected columns in an Excel spreadsheet into an illustrator javascript array variable, so that then I can use this information to construct an illustrator polygon. 
 
Further information:

I am new to javascript (and not much of a programmer in the best case, but do have some basic knowledge using ancient languages like FORTRAN 88). I am sure I am just missing an important step here despite all morning browsing with Google for answers (something to do with variable definition I assume?). I have some survey data defining the outline of features in map view listed in a string of point (x,y) values in adjacent columns in excel (these x,y point values calculated from GPS data using a commercial program to converted 3D position to a 2D x,y by geoid projection, and then in excel to re-scale point locations to illustrator’s artboard).  What I am trying to do is select columns of x,y value pairs in an excel spreadsheet, copy these values to the clipboard, and then develop an IA JavaScript to draw a polygon through the specified set of x,y points. It seems easy enough to script illustrator to draw the polygon once I get the values from the clipboard are in a javascript array (lots a good tips here [URL] ....), but pulling in the clipboard data seems to be beyond me. I have tried populating a defined array with various combinations of array declarations and app.paste(); or windows.clipboardData.getData('text/plain'); with no satisfaction. I then had the idea to try to pull in the clipboard to one long continuous string, place that in a text box (see see its structure), andthen read and split up the text in a loop to populate the JavaScript array…but that deposited a complex illustrator table object into my text box, and several attempts to force the clipboard to paste text did not work (again probably having problems understanding variable type declaration).
 
I would be happy to find any method of scripting the pull of the selected on an excel spreadsheet for use in an Illustrator script…so if I am making this all harder than it needs, be I would be grateful to know that also!

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Read Excel File To Insert Text Values At Coordinates

Mar 6, 2013

I got a new work and get it done in the next 2 days, but first I need to do this... from a text file (or excel file, I got both) I got 3 columns, 1 one for node number, and 2 other for X and Y coordinates for each node.

So from that file I need to insert into autocad the node numbers as text (using the current style and height) at the point specified by the other two columns, that are the X,Y coordinates which will be the insertion point of text..

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

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

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

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 :: Excel File With Large Amount Of Technical Data

Oct 12, 2012

I'm currently working on building up a library of 3D models of crane rigging for a new job. Specifically, I'm creating wire rope slings (like this 3/8" wire rope sling) but with less of an emphasis on visual detail and more on precise measurements.

In order to simplify the process a bit, I created an excel file to enter the basic four measurements of a sling (length, rope thickness, eye width, and eye length) which then calculates and displays for me the coordinates and measurements of all the objects needed to make the sling (arcs, lines, circles to sweep along those lines, etc.)

I realize now that I'm really just creating a task of endless copy/paste, and I'm looking for a better way to get through the process. How to make this work as efficiently as possible.

Is there some way that I could point AutoCAD to the Excel file and have it read all the coordinates and measurements to draw everything automatically? I also considered creating a line in Excel that would give output that I could copy and paste into a .scr, but I have never used any scripting in CAD before, so it would be new territory for me.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Extracting Data From Excel File?

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

AutoCAD Visual LISP / AutoLISP :: Retrieve Cell Data From Excel File?

Oct 7, 2011

I would like to be able to retreive data from a sepcified cell, in a specified worksheet, from an excel file.

I don't have any clue how to connect to an excel file and read the data. Most seems to think you already had an understanding but I'm starting from the beginning.

View 5 Replies View Related

AutoCAD Architecture :: Furnish Hyperlink Linking On Defined Data Sheet Within Excel File

Jan 15, 2013

Is there a possibility to furnish a hyperlink linking on a defined Excel-data sheet within an Excel file? Are there other possibilities to tie together to a drawing object external additional information, e.g., a product name, product data or product pictures?

View 1 Replies View Related

InDesign :: How To Import Data From Excel File

Feb 6, 2014

I have a very large excel file with a list of companies in this format:
 
company_category    company_name company_description   telephone   email
 
In InDesign I have paragraph style for each one but I need a solution to import all this data and apply the styles automatically.
 
Few things:

- I don't want to import all these into a table. I want all the info in a 3 text columns format that will run accros 150 pages (more or less)
- I'm using InDesign CS6
 
Is there any way to automate this?

View 2 Replies View Related

AutoCAD Civil 3D :: Export Offset / Elevation Data From Cross Sections To Text File / Excel

Jun 9, 2010

I am using Civil3D 2010. I am trying to export the offset/elevation data from my cross sections to a text file or excel file so i can paste the info into another program. so far i've been labeling the offset/elevation info on the section and typing it into excel by hand.

View 9 Replies View Related

AutoCAD .NET :: Read And Write On Excel?

Mar 28, 2013

I want to save and update my form on d:hsezenn.xls.

but when I try this. ı have same eror.

how can I save and update my data on d:hsezenn.xls ?

View 4 Replies View Related

AutoCAD .NET :: Read Embedded Excel Sheet?

Feb 8, 2013

I have a drawing with an embedded Excel sheet. I want to read the contents of the excel sheet. Maybe in combination with Microsoft.Office.Interop.Excel?

View 9 Replies View Related

AutoCAD 2013 :: Paste Special Excel Files That Automatically Update / When Excel File Changes

May 29, 2013

I have AutoCAD 2013 and often "paste special" excel files that automatically update when the excel file changes.The problem I'm running into is I work with a person who has uses an older version of CAD 2004, so I always save to the older format for him. 

When I etransmit, I be sure to add the excel file, but when he opens the dwg, only the outline of the excel appears in his dwg, no content. 

View 8 Replies View Related

AutoCAD Map 3D :: Read Only Data View Tables

Oct 17, 2011

I have an Excel spreadsheet I am testing to see how to edit table data in Map 3D and see the changes back in Excel. I have created the .udl file from my Excel file, which AutoCAD stores way down in the Data Links folder. I attach the .udl file as a Data Source. It shows the named range and I can view the table but it is always Read Only. I checked the Access permissions under Properties and none of the boxes were checked. So I checked ReadWrite but I still can't edit the table.

Then I tried just attaching it as an FDO provider. It links and displays the table just fine, but when I perform an edit (which it allows), the whole program crashes out without a single warning. Like I never had Map open.

This may be a Windows 7 permissions thing but since Map won't let me change the folder location where I save the .udl file, I can't test this out by putting it in a folder I know I have full access to.

View 3 Replies View Related

AutoCAD .NET :: How To Store Data That Can Read By Navisworks Manage

Dec 25, 2012

I want to add additional information to objects create using Autocad.

But I want the data to be read by Navisworks Manage.

How can I put the data? Is it using xdata, NOD or any other type?

I'm using Autocad 2011 and visual express 2010

View 4 Replies View Related

AutoCad :: How To Transfer Data From Excel

Nov 8, 2011

I saw a youtube video "Cross Section in AutoCAD".But i could not understand how to transfer the data from excel to AutoCAD.There is a file TMaker.exe to make template of excel data.I could not find that elsewhere on net. Making earthwork x-sections with AutoCAD.

View 9 Replies View Related

AutoCad :: How To Import Excel Xyz Data

May 29, 2007

I have an excel file containing xyz co-ordinates that i wish to import to AutoCAD (2005).

I realise you can probably do this using the lisp function, but i don't know how they work, and wanted to know if there is an easier way.

View 9 Replies View Related

AutoCad :: Importing Excel Data

Apr 6, 2010

I am having a problem with my table that I insert from excel into ACAD 2010. The Data in excel is on automatic color and arial text, once imported into ACAD as ACAD entities the data in my table does not want to change to being bylayer as the cell type is set to but instead stays on white. The only way I can change the color is by entering the cell and changing it manually to bylayer.

View 9 Replies View Related

AutoCAD Civil 3D :: Can FIELD Read OBJECT DATA Table

Apr 12, 2012

I am just wondering whether FIELD category can access the OBJECT DATA Table ?

I want to use a block to display its OD table's attributes as Annotation text , so that the Text will update when the OD table change.

Or do I need use the Data connection for this purpose ?

View 9 Replies View Related

AutoCAD .NET :: Export Layer Data To Excel?

Sep 15, 2011

I have been asked to write a module that will export layer data from AutoCAD and put it in  an Excel spreadsheet. The user wants to have this done through a macro. I am assuming that I need to create a dll that is called from inside AutoCAD but I am not sure.

They want to start with AutoCAD 2008 and once we get it working there we will convert it to 2011 or 2012.

First of all, I can not find the 2008 API and second of all I'm not sure where to start. I am very experienced at programming. We are going to use VB.NET.

View 9 Replies View Related

AutoCAD 2013 :: Excel Data Link

Nov 1, 2012

When trying to insert a table linked to an Excel 2010 file, it works up until row 28, however, as soon as I add  a 29th row to the table it no longer inserts the table. When I try and insert it, I press ok and nothing happens. I tried inserting it as a smaller table and changing the data link to a bigger range after it was inserted, it just didn't update to a larger range. 

Is there a way of getting this to work without having to insert it as two different tables?

View 2 Replies View Related

AutoCad :: 2010 / Data Extraction To Excel?

Sep 21, 2011

Seems like i export the data of thickness, diameter, lenght and mass to excel via dataextraction, but if i change something in the drawing, its not updated in the excel file..

I also wanted to export the data to an already existing part list template, but this seems impossible...

View 2 Replies View Related

AutoCad :: Exporting Drawing Data To Excel

Jul 24, 2012

Can you take text from a drawing and export it out to excel? My thoughts are room numbers, employee names, department names, etc.

I need an excel spreadsheet showing this information to then upload to my CAFM Application? Is there an alternative to obtaining a report from a drawing?

View 4 Replies View Related

AutoCad :: Creating Block From Excel Data

Oct 24, 2012

Is there a way to create block out of excel data?

I am trying to create multiple block missing in our database, actually i have all the measurement of the fitting inside excel this is mostly elbow and T fitting.

I was thinking of a dynamic block with editable lenght (strech parameter with a mix of constraint). but before digging too deep in a wrong direction i want to ask community if something similar already exist?

View 2 Replies View Related

AutoCad :: Plot Data From Excel Table

Sep 28, 2003

If it is possible to plot points (or a PLine, or a mesh) in AutoCAD from a table of values in EXCEL (columns of x,y,z coordinates).

View 8 Replies View Related







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