AutoCAD VB :: Create Template To Convert Coordinates Into Script File
Jul 9, 2013
I have been tasked with trying to create some type of template (or multiple templates, if needed) to convert my coordinates (some having straight lines and some having arcs) into a script file. I will be gathering the coordinates from an excel file then linking them to my script file.
My problem is, I have hundreds of sets of coordinates (all with varying arcs and straight lines and varying order in which arcs and lines are used) in which I'm trying to establish a method to convert to a script file. Also, the total number of lines (arcs and straight) vary. Some have as little as 10 lines and some contain as many as 20 lines total.
I have successfully created a script file using one set of coordinates but can't imagine doing this hundreds of times over. I have attached a PDF file showing an example of the coordinates along with the radii (in some cases there is no radius, therefore must be a straight line) and how I can accomplish this without creating a script file for each and every set of coordinates I have. The example I have is only a small portion of what I am working with.
I have been tasked with trying to create some type of template (or multiple templates, if needed) to convert my coordinates (some having straight lines and some having arcs) into a script file. I will be gathering the coordinates from an excel file then linking them to my script file.
My problem is, I have hundreds of sets of coordinates (all with varying arcs and straight lines and varying order in which arcs and lines are used) in which I'm trying to establish a method to convert to a script file. Also, the total number of lines (arcs and straight) vary. Some have as little as 10 lines and some contain as many as 20 lines total.
I have successfully created a script file using one set of coordinates but can't imagine doing this hundreds of times over. I have attached a PDF file showing an example of the coordinates along with the radii (in some cases there is no radius, therefore must be a straight line) and how I can accomplish this without creating a script file for each and every set of coordinates I have. The example I have is only a small portion of what I am working with.
I specify a template when I open a new auotocad file and drawi some shapes in autocad with c#.
the problem is the coordinates that I use to draw shapes does not match the template file and therefore the shapes are misplaced.(I am using centimeters for my code).
how can I change the coordinate of the template file to match my code coordinate?
Current development env: AutoCAD 2012, VS 2010, ObjectARX.Net (2012)
My target: in AutoCAD pops a dialog, select filename (related to our internal projects) string, then it will create a DWG file from a template DWT file. Then some operation like insert elements into the DWG file and then SAVE (with the filename assigned).
Here is the code I currently implemented:
class DWGWritter { const string TemplateFile = @"C: empMyTemplate.dwt";
[Code]....
Well it doesn't work on either of #1-4
#1 give out "eFileInternalErr" exception, which I found the answer - you can't call save() if it's open from exist file
#2 works ... but it just save the contents we write to the database but won't save template file contents, ie. we have put in layers inside the template file but they doesn't save to the new file
#3 give out "drawing is busy" error, no clue why it's "busy" ...
I was swapping between these 2 co-ordinates systems. I have drawings that have been started in ISG, but now the designs from 12D etc are being output in MGA, going forward MGA is now the standard and will have to be adopted.
How to convert from ISG - MGA? i have use of Autocad 2010, and also Autocad map 2008 however i'm new to cad map!! i also have use of microstation which seems to have more co-ordinate system features but i'm not familiar with them!
I have a dxf file from a client created using autocad. What these coordinates mean -40 558.37E and -46 244.43 N. These are UTM? I need to convert to decimal degrees. How do I do this?
I am new in civil 3d 2012 software and i have a major problem. i am a survey engineer and i have a topcon 3005 LN total station for using in field. i want to convert measurements from field into xyz coordinates via methods of civil 3d. i find that civil 3d uses fbk format (i don't know what is it), but my total station uses TOP format (ascii)
i ll give you two examples
EXAMPLE OF FBK FORMAT
UNIT FOOT DMS HORIZ ANGLE RIGHT PRISM CONSTANT 0 PRISM OFFSET 0 EDM OFFSET 0 CR OFF ATMOS OFF COLLIMATION OFF JOB LINEWORK SAMPLE SCALE FACTOR 1.000000 VERT ANGLE ZENITH NE 1 5000.000 5000.000 263.650 "STA1" NE 6 5088.000 6104.000 249.635 "STA6" AZ 6 6000 135.000000 AZ 1 1000 315.000000 STN 1 0.000000 "STA1" PRISM 0.000000 FC1 VA 1000 0.000000 00.000 90.000000 "AZMK" FC1 VA 2 117.563300 300.023 90.421692 "STA2" FC1 VA 101 29.082602 91.481 89.454093 "SDWK1 B"
EXAMPLE OF TOP FORMAT
S S1 1.443 D S2 1.564 328.7150 93.7675 4.412 D 3 1.564 225.6570 92.1310 9.926 D 4 1.564 241.7630 93.1510 9.680 D 5 1.564 256.0790 91.9080 4.420 D 6 1.564 344.5500 89.1070 1.714 D 7 1.564 189.6990 90.3460 1.703 D 8 1.564 203.8600 88.6180 2.567
I'm relatively new to AutCAD map 3d but I've used arcGIS a while back.
I have existing roads, towns etc data that are already set to UTM 17. I want to import ascii point coordinates (from a comma delimited file) into the file. I can import the ascii coordinates as points fine (easting and northing), however the points come in as the absolute coordinates rather than geometric coordinates. I already set the files for right geographic projections. Beyond manually inputing the coordinates into the coordinate tracker, is there a way to import the coordinates form the file set for the geometric coordinates?
How can you use a template file from your personal files to use it in an already existing .dwg file.
I knwo how to do it if I start the drawing from scratch and I select that template, but I want to put this existing drawing into my personal template file from my documents.
I'm linking an excel file to an .ipt file with iLogic code determining if the Material type is a certian value it will find the correct material thickness. These file work great when working on them thru Vault but when I "Save As Template" and create this file where our other template files are located (not Vault) this fuction does not work. I have realized that I had to place the a copy of the excel file in the same file folder as the template ipt, but even this does not fix the issue.
I recieve this error:
Error in rule: Material, in document: Part6
'MWW Materials (Inventor).xlsx' could not be found. Check the spelling of the file name, and verify that the file location is correct.
If you are trying to open the file from your list of most recently used files, make sure that the file has not been renamed, moved, or deleted.
It seems completly countintutive that just saving the file as a template file would cause this not to work when all files that are required are located in the same file folder. Maybe I need a reference to the excel document within the iLogic code.
I designed these pipes that intersect each other in AutoCAD but that program doesn't seem to do much else other than drafting.
I want to open a pipe design so i can print it out, paste it on a real pipe and cut the end out. It's pretty much sheet metal development.
Attached is one of the many pipes. I have Autodesk Inventor FUSION 2013. Does that have any such features or do I have to get the Professional version?
I created multiple base views and projected views on drawing (autocad 2014). suddenly when I create base view it doesn't show anything, jumps to 0,0,0 coordinates (it is fixed can't be changed), scale can't be changed. It shows it is drawing view in properties, however when I want to edit (click edit then select the view , it won't recognize it is view). I created many views without problem, now all base views jumps to 0,0,0 coordinates....
I would like to utilise the Layout Element: Reference System to draw the grid lines and grid values on paper space viewports.
But.I am working in South Africa. The WGS Lo systems are opposite to the northern hemisphere, positive is heading south not north. To solve this, most drawing offices (including ours) just reverse the signs of X and Y values.
Now you can see why I cannot use the Layout Element Reference System templates provided with Map. I need to change sign the X and Y text values.
How do I create a Reference System Template?
These are provided with Map:
Latitude-Longitude
Military Grid Reference System
United States National Grid
Custom map coordinate system
I tried to use 'Custom map coordinate system' but it is a fixed template, it does not provide change sign as needed.
I have a cad-model in a .dwg file (I have attached the file to this post) and I want to export its x,y - coordinates to excell or a text file. Is there some way I can do that from DWG TrueView? I normally just use Autocad Inventor so if there is a way to export the coordinates from there.
I was wondering if a template used to create frames using the create frame tool in autocad civil 3D should have the same datum, projection as the files that are being referenced? Or is the template independent from from the reference files and does not need any datum, projection setting applied to it?
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.
Here's something that should be simple, I want to create a template for cutting a square hole 125 mm on a side.
I have gone into Drawing Utilities and set the units to millimeters. I drew a square 125 units on a side.
In paper space, I selected a template that is 11" X 17". I set the scale to 1:1. I thought that that would give me a sheet I could print out ledger size with a 125mm square drawn on it, but no, it is not even close. As near as I can figure, the square is 125" on a side in paper space.
I need to import a series of XY coordinates into AutoCAD LT from a .txt/.csv file in order to plot the as-laid position of a subsea cable - I dont really feel like entering 212 sets of E/N coordinates manually!
Is it possible to pull out the x,y,z coordinates to text file from a inventor part. I am aware about this that it maybe need some programming but what kind of programming Language is the best to use ? is it possible to use the build in programming Language called Ilogic? Or is it better to use some .net? At my work we use PDMS to do plant modelling and we want to use inventor for modelling the machines and doing the workshop drawings ect. And we want to be able to take the inventor part coordinates and transfer them to PDMS because it can model the machines just by coordinates taken from a text fil.