AutoCAD .NET :: Insert Drawing To Specific Coordinate?
Sep 24, 2012
Am trying to insert a drawing to specific coordinates, till now i did this part of coding; though this is executing but the drawing is not getting to coordinates specified
public void coordinates()
{
string dwgName = HostApplicationServices.Current.FindFile("D:\AutoCAD DWG's\SE-02416_37_A.dwg", acadApp.DocumentManager.MdiActiveDocument.Database, FindFileHint.Default);
//Database db1 = new Database(false, false);
Database db1 = new Database(false, false);
//db1.ReadDwgFile(dwgName, System.IO.FileShare.Write, true, "");
db1.ReadDwgFile(dwgName, FileOpenMode.OpenForReadAndWriteNoShare, true, "");
[code]....
View 3 Replies
ADVERTISEMENT
Mar 2, 2012
When trying to move to an object to a specific coordinate autocad2012 puts @ in automatically. How setvar do i use to remove this unnecesarry hurdle
View 1 Replies
View Related
Nov 2, 2011
The below VBScript code is from a property set definition in AutoCAD MEP...
The below works to return the effective name of a block that exists with a certain entity handle. How might I check if the blocks insertion point is at a particular coordinate by a fuz factor? ... and then if is not set then clear out the XData?
On Error Resume Next
Set AcadApp = GetObject(,"AutoCAD.Application")
AcadVerString = AcadApp.ActiveDocument.GetVariable("ACADVER")
Select Case AcadVerString
Case "18.1s (LMS Tech)"
aecBaseVer = "AecX.AecBaseApplication.6.5"
[Code] ...
View 1 Replies
View Related
Jan 28, 2012
At center line I want to place a small perpendicular line in specific length and put their coordinate to excel sheet(export coordinates).
I have already two programs for this, one for placing objects on curve with specific length and 2nd for pick & export coordinates to excel or other type of file. but this is very lengthy process & need too big time. but I think it cab be done in a single command written in lisp.
View 1 Replies
View Related
Mar 14, 2012
how do i get an image set in one coordinate system come into a drawing in another coordinate system?
View 3 Replies
View Related
Aug 2, 2013
I am trying to insert OS Tiles into a drawing using the insert x-ref command. I have managed to insert 192 tiles but still need to add 29 more tiles to complete. When I try to insert another x reference AutoCAD just goes into a continual loop. Have to force AutoCAD to crash after ten minutes.
I am using AutoCAD 2014 MAP and have just had a new system built (i5 processor, 8GB RAM).
View 9 Replies
View Related
Sep 23, 2013
I remember in LDD you could insert points in an area, Is that possible in civil 3d. I have a small area of an big project that i want to review all the points. This project has 517000 points in it so it takes to long to insert all of the points.
View 9 Replies
View Related
Apr 10, 2012
Just as it sounds, my client wants to be able to set the layers up in a drawing file so that all CC parts come in on a specific layer on the drawing.
I'm looking at the layers and the Object Defaults menus in Style Editor but not finding a way to accomplish this.
View 2 Replies
View Related
Oct 11, 2011
I want to import the attached file to cypecad for structural analysis. It mandatary that lower left corner of drawing should be moved at (0,0,0). How to do that?
View 4 Replies
View Related
Jan 28, 2012
I would like to insert a block in a specific layout (eg. "LAYOUT13") using the function vla-insertblock
I have already searched the web and this newsgroup but have not found the solution.
View 3 Replies
View Related
Jun 25, 2010
I have created some reference points on a part. I have a need to include a table on the drawing of this part that shows the x,y,z coordinate positions of each of those points relative to the coordinate system origin. I have been trying to figure out a way to extract this information from the part to create source data to place into a table on the drawing.
View 3 Replies
View Related
Nov 6, 2012
If I set up my Civil 3D drawing in some known coordinate system, e.g. State Plane, in the "drawing settings", can I then toggle my drawing into other known systems, e.g. UTM, by changing the coordinate system under "drawing settings"?
If not, how are the coordinate settings used?
View 1 Replies
View Related
Jun 26, 2013
I have a number of lines that will not fillet because they are non-coplaner. Is there a way to globally edit all the lines in a drawing to set the Z coordinate to zero rather than having to choose each line?
View 5 Replies
View Related
Jul 9, 2012
We have a new PC set up, and the user is trying to draw a line, starting from point 0,0,0. AutoCAD won't let him draw a line from that coordinate.
How do we get AutoCAD to draw from the BASE coordinate? Is there a new switch that's messing this up?
View 6 Replies
View Related
Aug 10, 2012
I want to attach a drawing (say A.dwg) and want to query some objects from it and want to draw in the current drawing. In addition to that I also want to set the coordinate system of current drawing ,same as attached drawing(A.dwg). How can I do it by using C#(Arx).
View 1 Replies
View Related
Sep 3, 2012
i have a two coordinate one is WGS84 my normal drawing but i want to convert that drawing into Air Port Coordinate system how can we convert any drawing with other coordinate system.
View 2 Replies
View Related
Mar 7, 2013
I want to insert another drawing layout tabs contents in current drawing.
It's easy for MODEL tab, but for LAYOUT tabs, I dont know how!?
I prepared a code for INSERTING MODEL tab in current drawing:
(defun INS_DWG (TAB path dwg P / blk)(setq blk (strcat ""*" path dwg """));(setq N (vla-get-count (vla-get-layouts)));;Number of LAYOUT TABS in dwg(if (or(= TAB 0) (= TAB nil))(command "INSERT" blk P 1 0)); TAB=0 or omitted ==>Insert MODEL;(if (= TAB 1));==>Insert the 1st LAYOUT in dwg file;(if (= TAB 2));==>Insert the 2nd LAYOUT in dwg file;and so on....);;;usage:;;(INS_DWG 0 "c:\test\" "test.dwg" '(0 0))
View 8 Replies
View Related
May 17, 2013
I received the attached drawing file "A" from a surveyor that was created in an earlier version of AutoCAD (approx 2000). The attached drawing is rotated so that the view in Model Space shows the cross-hairs with north pointing northwest. There are points included within the drawing that do not match the coordinates of the surveyed points within the attached ascii text file. I would like to rotate the drawing so that the points match the coordinates in the ascii file and North follows the y-axis.
I have imported the points from the ascii text file into a new drawing file "B". I external referenced (overlay) the new drawing file B into drawing A. I tried moving all of the objects in the drawing file A (with MOVE) to a known point coordinate and then rotating (ROTATE) the objects to two known points. I don't know how to select all of the objects in drawing A and not the external reference in drawing B so that I may Rotate only drawing A objects.
How to move and rotate the surveyors drawing A so that I may match the coordinates in the ascii text file.
View 4 Replies
View Related
Jun 21, 2012
Is there a way to find out the coordinate system and projection of a drawing sent to me? I do not have AutocadCivil3d. I have Autocad2013.
View 3 Replies
View Related
Jul 23, 2013
I am 90% into the design of a subdivision and the survey was just updated. The original design was in an arbitrary coordinate system, and the new boundary is in state plane coordinates. I would like to move all of the design information to the new boundary. This would include all of the surfaces (approximately 6).
When I move the surface (any surface), I end up with errors. If I move the surface alone, I cannot move the defining feature lines. If I move the feature lines, I loose all of the edits I have made to the surface.
Is there any clean way to translate a drawing, including all design work, to a new coordinate?
View 4 Replies
View Related
Dec 7, 2011
I've had a simple lisp I've been using for years that suddenly disappeared. It required that you identify a block name, tag name, and the value that you want the tag to be. All of this is performed via command line, so it is scriptable. Since I lost it, I've been experimenting with -attedit. This command comes frustratingly close to what I'm looking for, except it only appends an existing tag, or replaces a specific string within the tag; I can't get it to replace the entire tag, regardless of its value.
1> Any lisp routine that does what I describe?
or
2> How to make -attedit replace a tag value without regard to what the value currently is (like a * wildcard)?
View 9 Replies
View Related
Aug 27, 2011
As advanced as my AutoCAD skills are I don't know how to specify the dimensions of a rectangle or square yet. How to know the prompts I need to follow after typing the 'rec' command in?
View 6 Replies
View Related
Dec 22, 2011
I have updated our Company TB and Border and was now working with the Line weights of our layers. I placed our TB into the directory so when we do File -> New, we can select our TB. My problem is when I open it up, I get an error dialog box about a Conflict Styles (error shown below). Where exactly do I save our Library styles so that when I open up our TB, my pre-selected lineweights, layers, etc... load up?
I am using IV 2012 Pro on a Windows 7 Computer.
View 2 Replies
View Related
Sep 11, 2012
If I am drawing in 3D and I want to draw a line with a specific angle, how do I choose the plane that it is drawn in? Cos whenever I specify an angle the line is drawn in the horizontal plane
View 2 Replies
View Related
Sep 23, 2012
I was wondering if there was a way to always make a specific drawing open when AutoCAD starts. For instance when you start it, the file that always opens is acad.dwt
I was wondering if there was a way to make it open a drawing you might be working on. Then you always wouldn't have to click so many times to open it and find the folder it was in and so on. You start AutoCAD and there it is when AutoCAD starts. You can get right to work and not have to look for it.
View 8 Replies
View Related
Jul 27, 2011
Is it possible to insert a pdf file into a cad drawing?
View 5 Replies
View Related
Jun 13, 2012
Have a specific drawing that the crosshair in the Y direction is broken (sse attached image). Exacctly in middle of screen this problem was seen also in older autocad releases (R2008)
The UCS is world and PLAN view is set, the screen is OK the display card + driver is OK. The weird thing is this is only in this dwg and even if it insert it to fresh dwg in comes good.
View 7 Replies
View Related
May 18, 2012
I have a drawing that I've been working off and on now for a couple of months and is particularly large (48MB). I have finally put togther a concept in it which took me two days and when I tried to RENDER, AutoCad crashed. All is still when until I tried to reopen the drawing, AutoCad loaded the drawing until 99% and froze. I tried the .bak and that crashed AutoCad. I also tried the .bak from an hour earlier and that didn't work. Here are the steps I've taken so far:
-Opened drawing and .bak(s) in TrueView, converted to Standard, Opened the drawing in TrueView (no problems) and tried to open in AutoCad....same old issues.
-Tried inserting drawing as a block in a new drawing (crashed AutoCad)
What I can do? Everything opens fine in Trueview?? I can resort to older files but that would be difficult. Below are my computer specs.
Intel i7 980X Extreme
GeForce 460GTX SLI x 2
PC3-10700 12GB
Windows 7 64bit Pro
AutoCad 2011
View 3 Replies
View Related
Nov 29, 2012
I've created a set of templates, A3, A2, A1 A0 etc.
When I open the .dwt at A0 it is fine, the correct dimensions for A0, everything is how it should be.
Now, when I'm in a drawing and go on the tabs, right click, "From Template", select the A0 template and it opens a new tab as normal.
However, the paper size is correct, A0. But the actual frame with the attributes is very small in the cornet, about 25 times smaller, so I'm thinking units, mm to inches, but all the INSUNITS are set to 6.
View 3 Replies
View Related
Sep 20, 2013
I have some code that starts a new drawing with a specific template from a lisp routine
(defun ghd:load_newdwg (template / ae-acad-object newdwg)
(setq ae-acad-object (vlax-get-acad-object))
(setq newdwg (vla-add (vla-get-documents ae-acad-object) template))
(vla-put-activedocument ae-acad-object newdwg)
)
The template location and file is stored in variable clienttemplate (and is not the standard template path set under options). All works okay except if I close the new drawing, when I return to the previous drawing that was current when the new drawing was created (i.e. the drawing that the routine was run from). I get the following error:
Command: ; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Unknown exception occurred
; warning: unwind skipped on unknown exception
I assume this has something to do with the original routine not closing/finishing before switching to the new drawing. This is the last line of the routine:
(cond ((= startnewdwg 1) (ghd:load_newdwg clienttemplate)))
View 3 Replies
View Related
Apr 25, 2011
In autocad 2011 ... I am looking for some sample code to delete all blocks with specific names in a multi layout drawing. There may be multiple blocks with the same name.
This is what I have so far ... this code collects the objects and loops through the layouts and the blocks ... if it finds the text "REVBLK" in the block name ... I want it to delete the block ... it does delete some of them but not all of the blocks ...
Dim E1 As Object
Dim ATS As Variant
Dim EA As AcadAttributeReference
Dim objLayouts As AcadLayouts
Dim LayerNextNo As Integer
Set objLayouts = ThisDrawing.Layouts
LayerNextNo = ThisDrawing.ActiveLayout.TabOrder
[code]....
View 1 Replies
View Related