AutoCad :: Extracting Xyz Coordinates From 3D Polylines?
Apr 12, 2012
I want to extract xyz coordinates from 3d polylines using AutoCAd LT 2012 into excel, as i need the data in a tabled format, I use the polyline coordinates to create cross sections of river beds which I then use to model river flows using HEC-RAS software.
I'm trying to create about 150 cross-sections, each consisting of 9 closed polylines of which I have created the coordinates. My issue is making the list of coordinates create separate polylines instead of one enormous polyline. Any way to setup the columns, perhaps with blank rows, some way of applying ASCII code, etc. to automatically break up these polylines? (even if they aren't closed that's fine, I just need to make the polylines separate.)
As the above mentioned, I have a drawing drawn using polylines with width from someone. The width of the line are suppose to represent area,
To put things into prospective, here is an example:
The polyline is 10 unit long and with a width of 2 unit wide. If i explode that polyline, it will become a single polyline without width. The line are suppose to represent 10 unit long and 2 unit wide; representing an area.
My question is is there a way to change the line above directly from polyline with width to a close polyline (4 x polylines) of 10 unit long and 2 unit wide.
Is there a way of converting 3d polylines to polylines with an elevation?
I have a dwg of contour information, the contours are 3d polylines, because they are contours the z value is constant all along the line, so there no question what the elevation of the polyline would need to be.
I need to do this as I then need to import the dwg into a GIS programme called MapInfo whch doesn't read 3d polylines.
i am trying to translate a Point coordinates from Paperspce to world coordinates in model space.The code i used in Land2006 worked OK but now in Civil3d 2012 it doesn't!
Private Sub GetPlais_Click() Dim tmpnt1 As Variant, tmpnt2 As Variant, tmpPnt1 As Variant Dim lole(0 To 2) As Double, upri(0 To 2) As Double Dim returnobj As AcadObject
FrmGrid3.Hide On Error GoTo Eline ThisDrawing.Utility.GetEntity returnobj, tmpPnt1, "ÅðÝëåîå ôï ViewPort ðïõ èá äçìéïõñãçèåß ï êÜíáâïò!" If TypeOf returnobj Is IAcadPViewport Then [code]........
I'm a GIS analyst trying to learn Cad. I'd like to place a single point in autocad model space at a specific Northing/Easting position. After reading several forum threads I don't think CAD allows me to change the coordinate system of model space from map coords to northing easting coords, as we can in GIS.
On an HND assignment there is a drawing of a Villa in plan view with outer walls, inner walls and then some attributed blocks created for furniture. Once drawn the second task is as follows.
Task 2
Write a report describing the methods you used, with a layout plan inserted into the document and to include a bill of materials extracted from the attribute files.
How you would go about extracting the BOM from the attributes?
I am using AutoCad LT 2013 and I am looking to extract at the Wire#, the To_Device and the From_Device. I really dont care about the block name but if I have to have it fine with me. I have tried to follow the extraction file within AutoCad LT but havent been able to figure it out.
I'm trying to loop through all the blocks on a drawing and if the block contains a group of tagstrings (B,C,D and H) I want to then extract the textstring from all 4 attributes and place them in a ListView. I got it to work but it is not consistant. Sometimes it doesnt get all of the attributes. Basically just want to grab all of the blocks that the 4 attribute tagstrings (B,C,D and H) and extract their textstrings to a ListView. Here is the code I have so far.
For Each objEntity In objModelSpace With objEntity If StrComp(.EntityName, "AcDbBlockReference", 1) = 0 Then If .HasAttributes Then TableData = .GetAttributes
I have the base point X and the secondary points from lets say 1 to 20 (total of 21 points)
I draw lines from X to every one of the secondary point (from point X to point 1; from point X to point 2; from point X to point 3; ........from point X to point 20)
If you click proprieties on one of the lines, you will see that it has a Length and an Angle. I need to manually copy the length and the angle of every line, and paste it in a table on Excel/Word.
Problem: I have about 100 points a day of this kind, so manually copying their length & angle is a real pain. Is there any way faster to do this. A specific command in AutoCad (2006).
Is there any way I can tell AC to only extract what my Visibility States are showing? IE if I have 2 Vis states within a block, 1 for a 2 seater couch and 1 for a 3 seater, can I configure AC to extract whichever Vis State is active? Currently it simply extracts the block name.
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?
I want to extract 2D drawing view of the attached model. I tried but could not succeed because most of the sketches are on the angled user defined work planes.
See the following links, I did the same for some of my other models:-
[URL] ...
[URL ...
How can I show the modelling process of this model with 2D drawings?
is it possible to export the position and elevation of points plotted in a section view to a csv or txt file? I have a surface with section profiles cut every 100 feet or so, and would like an external copy of just the data used to plot the section views to use for another analysis.
I built my surface by importing points directly, ie, not through the ribbon, so i have no points listed in prospector. i have been editing the points (mostly deleting errant survey points) and would like to export the final data set. The only step i found, was to show points in surface style, and then Extract Objects (of which i selected Points).
This seems to have no placed all the points into my DWG, but HOW do I export this files into a single text file??
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 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.
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.
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?
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()) {
I have a drawing with a bunch of blocks. the blocks repeat themselves, but I need to define different attributes to each one of them and then being able to extraxt a list that I can read in excel.
I would like to create an component inspection sheet as a second sheet on an Inventor IDW file. This is a sheet that lists all the dimensions on an engineering drawing.
Is there any way I can automatically extract / list dimensions from the enginnering drawing sheet and display them on the inspection sheet.
Currently, I am using Inventor to produce inventor DWG drawings for our supplies to read using autocad and trueview etc. One of our suppliers is a laser cutting firm and they need us to produce a seperate DXF file from our inventor drawings (for the flat patterns). As this has to be done manualy and is potentially error prone (as drawings can be automaticallyt updated where as DXF's requre a seperate 'save as' we had hoped to be able to just send the Inventor DWG for them to extract the geometry of the blank using their copy of AutoCad. I noticed that when opening an inventor DWG in autocad, the 'model' contains no geometry and it is placed on a seperate tab called sheet 1 (or whatever the sheet was called in inventor).
Is there any way that this data can be extracted from the DWG so that they may manipulate the geometry?