AutoCAD .NET :: Extract X / Y Coordinates Of Points In Selection Set
Dec 20, 2011
I am busy writing a small app to find a best fit circle through a series of points that roughly follow the profile of an arc. This data was scanned in using a Farro arm and imported to AutoCAD.
I would like to use VB.Express and the AutoCAD API. So far I have managed to write some code (loosely based on some examples from the AutoCAD .NET Developer's Guide) to allow the user to select the points to process.
I have three questions around this issue:
a.) How can I set up a selection filter to limited the user's input to 2d points only?
b.) Once I have the selection set of points, how can I extract the "X" and "Y" values of each of the points to be able to process further?
c.) Is there some sort of Object model diagram for the AutoCAD API that I can download, or any (downloadable) literature to get started with the API and VB.Express. I have looked online for some books and Amazon list them, but a. they are in hardcopy format and b.) the most recommended one (i.e. VB.NET Programming for AutoCAD Customization - Level 1 Jeremy Winters) is out of print. I am specifically looking for downloadable books because of the delivery times and shipping costs to get a hard copy.
View 6 Replies
ADVERTISEMENT
Dec 9, 2012
I want extract a (x,y,z) point from a text file and want to put marker to that point in a dwg file. how can I accomplish that?
View 2 Replies
View Related
Jan 3, 2008
Imagine i have a polyline(2d or 3d doesn't really matter),and i want to extract the coordinates info of every vertex on the polyline from start to end.
How do i do that in AutoCAD?And if not is there a way to do it on any of the verticals?
View 9 Replies
View Related
Apr 4, 2012
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?
View 4 Replies
View Related
Jun 11, 2013
Is it possible to extract coordinates to a spreadsheet or display them on screen of points in AutoCad. I would like to know the coordinates of all the intersections of the lines in the model shown in the attached pdf. The 3d model was drawn in Revit as model lines. If there is a simple way to draw this shape in AutoCad, it is part of a torus.I imported it into AutoCad as Revit had a few limitations.
View 5 Replies
View Related
Mar 2, 2007
how to extract pile coordinates to excel or spreadsheets, or anything that works and is quicker than just individual pile coordinates. i have about 446 piles.
View 9 Replies
View Related
Sep 16, 2011
I have some experience with Vb.net.
But I have a problem:
I have a polyline
I select it
The result to be a message box with the intersection points for all the lines, polylines that intersect this polyline.
View 1 Replies
View Related
Oct 23, 2012
I need to be able to extract all "X" and "Y" axis points from a "spline" created in a 2D "sketch" and display them in the "Debug" window (for test only).
View 3 Replies
View Related
Jan 29, 2013
I have been using the "LIST" command to get coordinates of a point. The list can be as long as my monitor is high. I need to copy the coordinates of about 3 000 points to a Microsoft Word file to manipulate with them.
The "LIST" command would show me about 4 points after which i have to press "ENTER" to get the next ones, but this is obviously pointless. How could i get the coordinates of very many points to a text file all at once?
View 6 Replies
View Related
Jul 23, 2013
I have the following 8 points of XYZ-coordinates:
Location SampleID X Y Z Depth Elevation FGACDC-SS01 FGACDC-SS01-S1 -77.055876 39.00845 314.5 0.5 315 FGACDC-SS01 FGACDC-SS01-S2 -77.055876 39.00845 297 18 315 FGACDC-SS02 FGACDC-SS02-S1 -77.055886 39.008643 319.5 0.5 320 FGACDC-SS02 FGACDC-SS02-S2 -77.055886 39.008643 302 18 320 FGACDC-SS03 FGACDC-SS03-S1 -77.056203 39.008736 311.5 0.5 312 FGACDC-SS03 FGACDC-SS03-S2 -77.056203 39.008736 294 18 312 FGACDC-SS04 FGACDC-SS04-S1 -77.056203 39.008491 304.5 0.5 305 FGACDC-SS04 FGACDC-SS04-S2 -77.056203 39.008491 287 18 305
These 8 points are for 4 sampling locations with 2 depths for each sampling location. I used AutoCAD 2012 a little bit before and I am new in using AutoCAD Civil 3D 2013. What are the key steps and tips of using the values of XYZ-coordinates listed the above-mentioned table to input manually into the AutoCAD Civil 3D 2013 program. Note: 4 sampling locations are in the 4 corners of a square lot and the 8 points should look like 8 corners of a box.
View 9 Replies
View Related
May 13, 2011
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.
View 1 Replies
View Related
Oct 9, 2012
i need to make a list of all the coordinates (X,Y) or (X,y,Z) of all the points in my project
the shape of my project look like an Eclipse
i made it out of 236 points ... i want to to put all those points in a table of ( X,y,Z ) ... i think there is some kinda output that can do that for me
iam uploading a vedio on youtube to show u what iam talking about
[URL]....
just a list of X,y,z of every point how i can do that ?
View 4 Replies
View Related
Sep 6, 2013
Any way of viewing the coordinates of the Control Vertices (Control Points) of 3d or 2d NURBS Surfaces. I tried to use the "properties" of the 3d NURBS surface that i designed but i could not find them anywhere..
i would also like to ask if it is even possible to export these coordinates to txt or even more to Excel.
View 1 Replies
View Related
Jan 17, 2012
I have coordinates for an aerofoil which I put into Autocad and plotted using pline. I have 52 points, what I want is to have more points on the aerofoil, i.e interpolate. I can probably create more points by averaging two adjacent y-points and two adjacent x-points but it would be much better if Autocad did this
the LIST command only gives the points i put in the program.
Capture.JPG
View 9 Replies
View Related
Jul 31, 2012
I’m trying to export from my drawing point X-Y position coordinates to Excel for use in programming a metrology that will measure at these locations.
When I use the EATTEXT command to pull up the data extraction wizard, it will export the positions & extracts the locations to a spreadsheet format. But coordinate numbers I get, seem to be relative to the World USC system & not the origin I align & set in the center.
Yet when I use ID Point, to check positions the coordinates of the points are correct & relative to the center origin. How to get the location coordinates relative to the center USC origin I've located in the center of my part?
View 9 Replies
View Related
May 17, 2012
I'm trying to select two specific types of blocks from a drawing so that I can create layouts for each one of the pairs of blocks in my drawing. Basically, one block is the outline of the piece of the drawing and the second contains information about the drawing. I would like to select all of the outline blocks and then create a selection to get the second block which is inside the bounds of the first block.
I'm not sure how to create a set of typed values to do this. Here is my code so far which sets up a filter to get the first block and then for each of the blocks that it finds, it would select the block with all of the information which is where I am having problems. I don't know how to create a filter based upon location of the block.
using (Transaction tr = acCurDb.TransactionManager.StartTransaction()) { filList = new TypedValue[] { new TypedValue((int)DxfCode.Operator,"<and"), new TypedValue((int)DxfCode.Start,"INSERT"), new TypedValue((int)DxfCode.BlockName,"D-1*"), new TypedValue((int)DxfCode.Operator,"and>")}; // Build a filter list so that only block references are selected filter = new SelectionFilter(filList); //Select all res =
[code]........
View 2 Replies
View Related
Sep 5, 2013
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?
View 9 Replies
View Related
Sep 27, 2012
I often create points manually. You get that dialogue box where you choose the layer and the default local coordinates, etc etc.
The local coordinates setting always defaults to Northing/Easting. (ditto the grid coordinates).
I set it to Easting/Northing as is standard around these parts and do my points, but if I close the box, when I reopen it to add more points later, it is back to Northing/Easting.
I cannot find a variable to control this behaviour.
I never need points to have north first and would like it to default to Easting/Northing at all times. Yes I'm using the Metric template.
Is there a way to change this default?
View 8 Replies
View Related
Jun 20, 2011
I'm trying to define a grid based on polar coordinates.
Can be produced using the following MATLAB
n=1:50000;r=sqrt(n);t=360/((sqrt(5)+1)/2)+1)*pi/180*n;plot(r.*cos(t),r.*sin(t),'o')
I need to insert points based on the polar coordinates defined by the equations. I knew a little bit of LISP 10 Years ago, now it's a total blank. I've been trying to write a script to make this work but after 5 days I'm still without sucess.
View 8 Replies
View Related
Apr 4, 2013
I'm working on a command that lets me select polylines on a specific layer, then converts them to 3d solids. I'm having a slight issue where if a polyline has the same start and end coordinates (this happens in some of our drawings), then the command stops and I get an eDegenerateGeometry error. I want to modify my command so that it detects these objects, removes them from the selection set, and then notifies the users of their prescence so they can be removed manually. The last part i think I can handle, however I'm not sure how to modify either my filter or my routine to detect and ignore these objects. I'm assuming that since i'll want to record these objects to later notify the user, that i'd probably want to modify my routine.
using System;using Autodesk.AutoCAD.Runtime;using Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.DatabaseServices;using Autodesk.AutoCAD.Geometry;using Autodesk.AutoCAD.EditorInput;using Autodesk.AutoCAD.DataExtraction;using Autodesk.AutoCAD.Colors;using System.Windows.Forms;
[code]...
View 2 Replies
View Related
Sep 12, 2013
I want to get the coordinates of anchor points in every path layer. Can illustrator itself offer me a list of corrdinates X/Y?
View 14 Replies
View Related
Dec 15, 2011
can do a routine that zooms into a coordinate, based on input. So for 1A, it would zoom into the coordinate for 1A.
1A = 1,1
1B = 1,2
1C = 1,3
1D = 1,4
I will try to attempt one shortly and will post it within 1 hour.
View 9 Replies
View Related
Jun 19, 2012
Is it possible to create a shape and then edit the coordinates of the shape's control points? When I currently click on a shape's control point, it doesn't offer any way to fine tune the location of that point by manually typing in the X, Y coordinate.
View 2 Replies
View Related
Feb 8, 2012
What is made in an exact moment (2:50) of the tutorial bellow, in which "history" pallet is used together selection to extract object. It seems to bring a better result than using "object extractor" tool.
So, my question is related to handling the "history" pallet as showed in 2:50 tutorial. It seems the "undo" is applied to the first "selection" action, but I couldn't make as in the tutorial. My PSP version is X4 and the tutorial version is X2. I don't know if something has changed and I am unable to make it in PSPX4.
[URL] ...
View 3 Replies
View Related
Jul 20, 2012
Is there a plugin in existance, that I can make a selection in Photoshop and then copy the coordinates of that selection to the clipboard?
I am a texture artist and frequently lay a number of graphics out in one file, before typing out the coordinates for each element. Currently this is slow manual task, but could be made so much faster if I didn't have to type everything out.
View 8 Replies
View Related
May 20, 2013
I'd like to insert a block into a big selection of points. Any way or have I to look at customization routines.
View 3 Replies
View Related
Nov 1, 2011
Looking to make a selection set of points that are on a specific layer, and then create a dimension between, in this case, two points. I feel like it should be very simple, but I can't get it to work for the life of me. Here is the test code I've been playing around with:
(defun c:test (/ sel1 TC)
(setq sel1 (ssget "X" '((8 . "VPOINTS"))))
(setq TC (polar (entget (assoc 10 (ssname sel1 0))) (dtr 180.0) 9))
(command "DIMLINEAR" (entget (assoc 10 (ssname sel1 0))) (entget (assoc 10 (ssname sel1 1))) "V" (polar TC (dtr 180.0) 9) "")
[code].......
View 1 Replies
View Related
May 6, 2012
What is the difference between using the Pick Points and Objects selection methods in the Boundary Hatch and Fill dialog box?
View 2 Replies
View Related
Oct 10, 2013
I was wondering how to develop a Selection Set Filter that will select only Cogo Points? I know I need to use Dxf.Start as the code, but then what's the string associated with Cogo Points? Can't find any documentation on this or any Civil 3D-unique entities...I know Line is just "Line" and "Arc" is just arc...but Polyline is the unintuitive "LWPolyline" and "Cogo Point" isn't working.
View 5 Replies
View Related
Mar 4, 2013
I have a baseplan I was sent for senior design project and it was previously created in an earlier version of autocad. However Im not sure which version it was created in. There are almost 3000 points and contours but I can not use these points to create a surface. I am ultimately trying to create a surface and then a profile for a road to design vertical curves throughout.
I cut out a few points and copied them into a new drawing due to the size of the actual file
View 3 Replies
View Related
Aug 6, 2013
How to distribute object (circle) in selection of great number of points?
View 5 Replies
View Related