AutoCAD .NET :: Matching Coordinates Of Template File To Code

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


ADVERTISEMENT

AutoCAD Inventor :: VB Code In Template File

Aug 28, 2011

I included a VB code in our drawing template, but then I get the "Warning: You have a non-empty VBA project.." message. If I copy the code into iLogic, I just get an error message. Why it runs fine as a separate macro, but doesn´t work in Inventor, or how I can include the code into the template? URL....

View 2 Replies View Related

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 View Related

AutoCAD Civil 3D :: Description Key Code For All Points Not Matching Any Other Codes?

Aug 18, 2011

We are using Civil 3d 2010.

In a description key code file, I would assume that a description key code of simply * would capture all points, but it seems this code gets ignored. How do we create a key code that captures all points?

For example, if I want to take advantage of the hierarchical processing of DKC files to assign layers, point styles, label styles, etc, I can theoretically create a 'design' DKC file that makes all points, regardless of their desciptions, to be sized relatively, and then move that DKC file to the top of the DKC file list.

I know this can be accomplished through the "_all points" point group, but I want to be able to control point layers as well, and as far as I know, neither point groups, point styles, nor label styles affect the insertion layer of a point, but DKC files do.

View 4 Replies View Related

AutoCAD Inventor :: VBA Code To Get Coordinates Of Each Part Of Assembly

May 9, 2012

I try to develop a vba code to get the coordonates of each part of an assembly and after export them to an excel file.

I build this : 

Public Sub Export_Layout_COG()

If MsgBox("Cette Macro va exporter les coordonnées du COG de chaque layout, continuer ?", vbYesNo) = vbYes Then
Dim RefDoc As Document
Set RefDoc = ThisApplication.ActiveDocument
Refdocdisplayname = RefDoc.DisplayName

[Code]...

The code return an error on the red line, I don't catch why?

View 3 Replies View Related

AutoCAD 2013 :: Create Template To Convert Coordinates Into Script

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

InDesign :: Write JavaScript Code To Open Template / Import XML Save And Export To PDF?

Feb 14, 2014

How do I write a javascript code to open InDesign template, import XML, save and export to pdf?
 
writing the javascript code to open the InDesign file, import some xml that will be randomly coming in and then saving the document.

View 1 Replies View Related

AutoCAD Map 3D :: Import ASCII Point Coordinates (from Comma Delimited File) Into File

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

AutoCad :: Blocks In File Not Matching Up With Tool Pallet

Dec 4, 2013

I created a file with all the blocks that I use of horn/strobes and strobes only for fire alarm systems and made a tool pallet. I've had to edit and tweak them until they fit my needs but now when I opened autocad my tool pallet was gone so I made another one but now my blocks are not the new revised blocks but the old ones. I double checked the path for the file and it's correct. When I open the file containing the blocks they look and behave like the blocks I revised.

View 1 Replies View Related

AutoCAD Civil 3D :: Load Template File At Start-up Instead Of Misc Drawing File

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

AutoCAD 2013 :: Place And Existing DWG File Into Specific Template File

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

AutoCAD Inventor :: ILogic Error Cannot Find Excel File After Saving File As Template

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

AutoCAD 2013 :: Get Coordinates From DWG File

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

AutoCAD VB :: Open DWG File From Code

Dec 14, 2012

I want to open a dwg file from code in my program.  I have a string variable containing the full path and file name.  I want to open the dwg file in an instance of Autocad that is already running, I don't want to open Autocad.  The program is written in VB 6.0.

View 2 Replies View Related

AutoCAD Civil 3D :: Translate Point Coordinates From Paperspace To World Coordinates In Modelspace

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

AutoCad :: Converting Northing And Easting Meters Coordinates To Map Coordinates

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

AutoCAD .NET :: Plot PDF Using Example Code Yields No PDF File

May 17, 2013

I implemented the code from the autodesk developers guide for plotting. [URL] .... I made a few minor changes such as making it a sub instead of a command, and commented out a few of the plot settings

the routine seems to work except that I don't get a PDF

I added the actrans.commit() to see fi that might work = nope.

also note that ACF.acdoc & ACF.db in my code replace acdoc & acCurDb in the original code
 
'<CommandMethod("PlotCurrentLayout")> _ Public Sub PlotMe(suBpath As String, subFileName As String) '' Get the current document and database, and start a transaction 'Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument 'Dim acCurDb As Database = acDoc.Database Using acTrans As Transaction = ACF.Db.TransactionManager.StartTransaction()
[Code] .......

View 3 Replies View Related

AutoCAD LT :: Import Multiple X / Y Coordinates Into 2011 From TXT File?

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

AutoCAD Inventor :: X / Y And Z Coordinates Out To Text File From Part

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

AutoCAD Inventor :: ILogic Code To Close IPT File?

Aug 21, 2013

Looking for the ilogic code to place in the drawing rule to close *.ipt file that was recently open.

View 2 Replies View Related

AutoCAD .NET :: Code To Detach Xref Of Known File Name / Path

Aug 23, 2012

A part of an application I'm writing involves detaching a specific xref of known filename and path from an open drawing.  I'm having a surprising amount of trouble figuring out how to do this or finding any examples "out there" (A'desk forum, the googles, A'desk developer's guide).  I have the code for attaching an xref, but detaching is presenting unexpected problems. 

View 6 Replies View Related

AutoCAD 2010 :: VBA Code To Convert DWG (with All Layouts) To Single PDF File

May 11, 2012

I would like VBA to convert all layouts in drawing to single .PDF file.

Now I can convert it to PDF file with separate PDF files, but not know process to convert to a Single PDF file with all .DWG layouts.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Code To Link To SCR File

Feb 19, 2012

LISP code to link to a scr.file.I would like to run ACADDOC.lsp with abobe code everytime I open a drawing.But I want to link the KISP file to script file of mine like C:

View 3 Replies View Related

AutoCAD .NET :: Extract Coordinates From TEXT File And Draw Object In (x Y Z) Points

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

AutoCad :: Exporting Handles And X Y Coordinates From Polyline And Resulting In Text File

Dec 21, 2011

Code that I can run to export the handles and x y coordinates of closed polylines and show results in a text file.

View 9 Replies View Related

AutoCAD 2010 :: Scale On Printed PDF File Not Matching The Plotted Scale?

Jun 27, 2012

We have recently noticed that after printing a PDF of a drawing I plotted from AutoCAD we are coming up with differences when we double check the scale on the printed hardcopy using a carpenter ruler.  

For example, there is a dimension labeled on the drawing of 200 ft.  However, if I try to scale this out with a carpenter's ruler at the drawing was set to (say for instance it is 1 inch = 100 ft) I am coming up short of the  2 inches it should be (typically come up around an 1-15/16" or around 194 feet, approx 97% of the correct amount).

In the Page Setup Manager in AutoCAD, I have the following options selected (see the print screen as well):

Printer/plotter selected: DWG to PDF.pc3

Paper Size:  ANSI full bleed B (11.00 x 17.00 Inches)

What to Plot:  Layout

I don't have a plot scale scale other than the default 1" = 1'

No plot style selected

Then, on the print menu when I open the PDF that I have exported from AutoCAD, I have the following settings (see the print screens I have attached):

Printer:  The printer I use (Konica Minolta c650 Series PCL)

And I have selected the Options "Auto Rotate and Center" and "Choose paper source by PDF page size**"

** Note, that I have tried unselecting the "Choose paper source by PDF page size" option and accordingly changed the paper size in the "Page Setup..." button at the btoom to match the document size (i.e. 11.0 x 17.0in) and it gets the difference to be closer (i.e. I now get 198 ft but some of my border gets cut off).  See the print screen below for this a print screen of the print menu and sub-menu of Page Setup showing the paper size selected.  

I saw that some people in other forums state that there is no real solution when trying to scale off of PDF's and that there should be a disclaimer saying as much if you are to send the file out to a customer who may rely on doing some in the field scaling from the printed copy of the PDF file.  I find it hard to believe there is no solution as we have received some drawings from others whom the scaling works just fine. 

View 3 Replies View Related

AutoCAD VB :: How To Get Correct Font Style (group Code / 1071) From DXF File

May 21, 2012

correct font style from 1071 group code  in style table of dxf file ? I am able to read the Font name and font file name from group 1000 and 3 respectively, but not able to get the font style: whether it is Regular, Bold, Italic etc.

I know i have to decode the long values in 1071 group codes like: 50331682, 50372882 etc. But dont know how to arrive the Regular, Bold, Italic etc Font Style. How to decode this value ?

The requirement of above information to me is that i am making a Graphics viewer for a specific purpose which reads and displays Graphical Entities from DXF (ascii) file.

View 1 Replies View Related

AutoCAD Inventor :: Opening Drawing File Invisible Causes Code To Crash

Jun 10, 2013

I am building a custom batch update for our drawings to take border definitions as well as custom iproperties from a current template and push them into a specified inventor dwg file.  I built a form for the users to select the template they want to import into a list of files they place in the form.  The program opens the template, get's all the information (iproperties, border defs, etc... using the active document to get the document) then iterates through the list of the users doing the following for each file (also getting the active document to get the items in each file):  open, replace border definition, insert any non-existent custom iproperties, save and close the file.  It works great when I keep the open visible set to true for the files.  When I switch the visible property to false for each one of the files I want to open I get an error similar to this:  Systems.InvalidCastException: Unable to cast object of type 'Inventor._DocumentClass' to type 'Inventor._DrawingDocument'. at  ---- then my button click event here. 

Does inventor technically not see a document as an active document if the file is not visible when opened?

View 2 Replies View Related

AutoCAD Civil 3D :: Importing Coordinates And No Point File Format Match Found?

Feb 28, 2013

I am tryiny to import coordinate file like I have so many times and the Select File box keeps telling me "No point file format match found".  I click the proper file format and it shows in the Preview box but the OK box will not go dark so I can clcik on it.   The file is a CSv and tried making it a txt with no luck.   Using 2012.

View 6 Replies View Related

AutoCAD .NET :: Creating New Drawing File Using Template

Apr 22, 2012

How I can create new drawing(.dwg) file using drawing template(.dwt)file in back end (Means with out showing in front end).

View 4 Replies View Related

AutoCAD 2013 :: Empty File / Template - 10 Mb

Jul 3, 2013

Currently have a template setup which we use and when everything is erased, purged, audited etc and the file literally cannot be purged any more the filesize is still 10mb.

There however several hundred items in the "Blocks" section of the purge dialogue box under "View items you cannot purge"..how do you get rid of these?

we have files containing hardly anything which are 20mb and empty files which are 10mb,

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved