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.
View 1 Replies
ADVERTISEMENT
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.
View 9 Replies
View Related
Feb 7, 2012
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?
View 1 Replies
View Related
Jul 14, 2011
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" ...
#4 give out same error as #3
View 3 Replies
View Related
Jul 4, 2011
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!
View 1 Replies
View Related
Dec 13, 2011
I'm trying to convert coordinates from "LL-GDA94" to "MGA-56" (Australia's coordinates ) and i get the following massage.
"Can't transform point to Lat Long"
I do it through the following lisp routine:
(setq AA (ADE_PROJSETSRC "LL-GDA94" ) )
(SETQ BB (ADE_PROJSETDEST "MGA-56" ) )
(SETQ CC (GETPOINT) )
(SETQ DD (ADE_PROJPTFORWARD CC ) )
also i have tried to remove the Z coordinates but still does not work .
View 3 Replies
View Related
Feb 22, 2011
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?
View 9 Replies
View Related
Jun 9, 2012
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
Need converting TOP format to fbk format?
View 5 Replies
View Related
Jan 24, 2013
Is it possible to convert a 2013 drawing template (IDW) to 2012?
View 1 Replies
View Related
Aug 29, 2011
How do i create a DTM using X,Y,Z Coordintes in AutoCAD Civil 3D?
View 3 Replies
View Related
Oct 17, 2011
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?
View 2 Replies
View Related
Apr 4, 2012
How to set civil 3d 2012 to automatically load your templete file at start-up instead of a misc. drawing file with no styles or anything.
View 2 Replies
View Related
Jul 15, 2012
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.
View 2 Replies
View Related
Mar 5, 2013
I have few co-ordinates in notepad like mentioned below. How can i create polyline using read-line function in auto lisp.
x y
0.0,0.0
2.0,0.0
2.0,1.0
0.0,1.0
2.0,0.0
4.0,0.0
4.0,1.0
2.0,1.0
View 2 Replies
View Related
Dec 6, 2012
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.
View 3 Replies
View Related
Nov 13, 2012
I want to open dwg from template:
DocumentCollection acDocMgr = Application.DocumentManager;
Document acDoc;
try {
[Code]....
But on the line "acDocMgr.MdiActiveDocument = acDoc" AutoCAD is hanging and in around 10 sec AutoCAD closes.
How does the new document from template set active (do current)?
View 5 Replies
View Related
Jul 28, 2012
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?
View 7 Replies
View Related
Dec 30, 2013
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....
(pic 1 )- shows the usless view
pic 2 - shows previous view without any issues
View 1 Replies
View Related
May 29, 2013
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.
View 4 Replies
View Related
Nov 19, 2013
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.
View 6 Replies
View Related
Apr 13, 2013
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?
View 4 Replies
View Related
Nov 2, 2011
I want them to appear as a one of the choices in the box after you click NEW (part, drawing, assembly) asside of standard options?
View 1 Replies
View Related
Jan 31, 2013
I got a .DWG drawing from a client, and tey want me to implement that template on Inventor for the furthere drawings for this new project.
learn me how to make/create/ customize a newTaemplate in Inventor?
View 2 Replies
View Related
Jun 18, 2012
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]........
View 1 Replies
View Related
Jun 6, 2012
I am using INV 2012 and I wan to to know a trick how to convert the weldment assembly back to regular assembly template.
View 1 Replies
View Related
Aug 21, 2013
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.
View 5 Replies
View Related
Jul 24, 2008
How to convert existing 2d autocad title block into Revit title block template?
View 7 Replies
View Related
Jun 29, 2012
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.
View 5 Replies
View Related
Apr 18, 2012
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!
View 1 Replies
View Related
Feb 22, 2012
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.
View 1 Replies
View Related
Mar 18, 2012
I need creating a custom template for my drawings with custom layers, text, and dimensions
View 7 Replies
View Related