AutoCAD .NET :: Retrieving The Coordinates Of Lines Present In Drawing
Jul 17, 2013
I am opening a drawing file whose units are already set to "Architectural - Inches".When im retrieving the coordinates of lines present in drawing it is returning in some other format.How do i change this.Or how do i know in what unit system the values are being returned.
I created a sketch then tried to retrieve dimensions in a drawing from the sketch. When I used the retrieve function, no dimensions appeared. I made sure that the box in the Application Options under the Tools tab was checked for retrieving all dimensions upon placement. I have tried numerous ways to retrieve the dimensions, and while I can place them manually, I really need to be able to retrieve all at once as seen on the sketch.
I have been able to use the retrieve function before on files that I downloaded from a website so I know to use the function.
I'm attaching a file which I am having trouble retrieving dimensions. I am using Inventor 2013 educational version.
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
Is there a way to search the database/tables/whatever to determine if new layers are present in a drawing?
I want to run a script to reconcile new layers in the sheet drawings after having cleaned the xref drawings, and the script bombs if there are no new layers present in the parent drawing.
If I could determine what triggers the layereval/layernotify sequence (tblsearch?) I could include an if or while lisp routine that would invoke the layer command and then reconcile the new layers.
I want to get the minimum and maximum x, y coordinate values of selected lines. In other words, i want to find the top, bottom, left and right edges of a set of lines.
Is there an easy way to get co-ordinates targeting the edge of road and daylight features along a corridor at 20m intervals without manually going through it or using createpointsfromcorridor?
I have to tabulate the X and Y co-ordinates along a polyline at 1 metre intervals. I have divided the polyline into segments of one metre and have tried to use a command called data extraction. So I use this command and individually click on each point. The end result gives me the X and Y coordinates in the order I have picked them however when I put it into a table on the drawing it messes up the order?
Now i am working on setting up the grid system for drawings . My task is after setting the grid label the possition of equipments od Data Center( e.g ups, panels) on drawing. I am able to set the grid but i don't know how to get my grid coordinate identifiers(x coordinates and y coordinates) which will label the equipments.
I have a drawing with the x and y as grid references, I have an excel spreadsheet with point information with grid references which are within the range on the drawing. How do I put the excell info onto the drawing?
I have a drawing at AutoCad and i want to change its coordinate like that
X'= X Y'= -Z Z'= Y
I know how to do it with the points (export their coordinates in a text and then transform the text and then import again at an Autocad) . But thus i loose all the line, arcs, etc .
My problem is that I require to extract coordinates from specific points on the drawing and set them out on the ground at the real location.
On the drawing there are several base station locations with known coordinates. I have tried coordinating the drawing using Ctrl a, move, then type in the known coordinates of one of the base station location but nothing happens. I have also set the drawing to world with no change.
The coordinates in the bottom left corner are shown but are around 500m out.
I'm trying to make a standard block which will automatically read the co-ordinates! i have started making it trying to use fields, but when inserting the block into the drawing it stays at x=0, y=0, which is the point in the block. how do i get it to read the point in the drawing, and also how would i always get it to read the world ucs.
i have attached the block i've started, haven't added any dynamics yet as i'm just testing it.
How can I automatically get point coordinates and show it in drawing. For example I have 100 points and I need to write x and y coordinates right next to the point. (not in table or somewhere else).I guess I need a plugin or smth?
How to switch Civil 3D back to drawing in absolute coordinates at all times (even during the PLINE command!)? And what would be a good reason for changing the default coordinate entry at the commandline from absolute to relative, anyhow?
I am using the ALIGN command to overlay two groups of blocks, I'm then using some VBA code to export the coordinates of the blocks to an excel sheet to make comparisons.
The issue I'm having is when I use the ALIGN command the coordinates exported are different to those in the drawing (but only for those moved using the ALIGN command).
I don't get this issue when I use the move, rotate and mirror commands, only ALIGN. What may be causing this?
I have a drawing in CAD (2013) and I am trying to assigned a Geo-coordinate system so I can import it into my ArcMap GIS program with the coordinates assigned to it already. Is there any way of doing this?
I have a lot of maps that have drawing units in yards. I'd like to place points on these maps given their lat/long data. Without having the mapping toolbox is there any way to either convert the map units or convert the points? I'm not worried about spherical distortion as the maps are close in.
I am trying to annotate a drawing so when i click on a point the X,Y,Z coordinates appear as text, but i don't want a cross to appear where i have clicked the point ( if that makes sense)
I would like for them to appear like this:
x = ........ y = .......
The coordinates would have to show to 3 decimal places.
Also when i have clicked a point is there anyway to get the coords into a excel sheet?
I just started my CAD classes. I have been doing basic 2d drawing and just learning the commands etc.
My question concerns polar coordinates. I know how they work, but are you expected to be able to get polar coordinates off lets say a hard copy drawing with no annotations.
My homework so far has always had the length of the lines depicted on the drawing but not the angles. So if I was required to replicate a drawing that had no annotation is there any way other than guessing or whipping out my protractor.
This is just a nagging thought as I strive to understand CAD.
In Autocad 2013, when I highlight a drawing in model space and copy, then go to new drawing and paste to original coordinates, everything comes in fine except for blocks. the blocks get thrown far away from everything else.
1. i received a DWG that has a TIFF image referenced. This 30MB TIFF came in a separate folder (eTransmit) and the path is correct, but i cannot seem to grab the image in model space. the layer that has the xref is not frozen, and i can see the xref in the properties box and unload/load/detach, however i am unable to select or grab it. Was this done intentionally by the author to keep the image intact or is this property of transmitting?
2. The drawing coordinates is appearing in scientific notation and i need them to display all 9 digits. How do i change this?
I'd like to know the coordinates relative to the last entry when creating lines (splines). When creating splines using the line tool, it would be useful to know the coordinates of my current cursor position relative to the last point in an easy way, so I can draw precisely a long line without having to memorize the coordinates of the last point.
Initially, I thought the 'Keyboard Entry" rollout would show the values that reflect what I'm doing visually, just like the rectangle tool for example, or pretty much any other tool, I don't know why the 'line' tool is different but anyways.
Using Civil 3D 2013Coordinates coming out of survey equipment are modified state plane GROUND (scaled up from the origin by the combined factor).Drawing is setup with state plane coordinate system with user defined transformation to establish geodetic reference and the ability to label lat/long or import Bing map data.Survey database is setup with "No Datum, No Projection" (data is already at ground, I don't want ot transformed).Import style is PNEZD and is set to use Northing/Easting not Grid Northing/Grid Easting.After importing points into survey database, coordinates of survey points match the CSV. This is good.After importing points from database to drawing, they are taken as grid coordinates, are scaled again and are off ~5,300 feet northeast.Why would Civil 3D assume the points in the database are grid and scale them when the import style used did not specify grid? Is there a setting or something I can do to tell Civil 3D to leave my coordinates alone?
I want to insert or import an image that automatically recognizes my drawing coordinates.If I need to, I can use AUD (as Map 3D).However, my computer has difficulty processing too much data.
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.
My project: I want to create a drawing based on a photo. The usual way is to place the picture on the working space in Draw and fix it there.Then draw all parts I want to have in my copy.Problem: I can't always really see what I am drawing.
Now my question:Is there a possibiltiy to "calk" a drawing to different coordinates than above the picture itself?For example: The photo is on the left, I "draw" above the picture and the drawing action, e.g. the stroke, happens right from the photo. The y-coordinates of the copy could stay the same while the x-coordinates are x plus a certain value.
I was given a C3D file with a road alignment including sections. But the all the road data is a block. Is there a way to retrieve all the data in order for me to do some quanities for my estimates on material volumes. When I go to the prospector tab, there are no points, surfaces, or alignments listed.