AutoCAD .NET :: Possible To Change Saved Path Without Reattaching XRef
Aug 29, 2012Is it possible to change the saved xref path without reattaching the xref.
View 1 RepliesIs it possible to change the saved xref path without reattaching the xref.
View 1 RepliesIs there a way to change an xref from saved "full path" to "relative path"?
View 1 Replies View RelatedIs there a way to make sure whenever I x-ref a file it is not saved as "full path"? I prefer that be the default as I never x-ref outside of the folder I am working in.
View 1 Replies View RelatedI have many drawings that were created with the xref's as full path and I need them to be relative path. I would just go in and reatch them as relative path but the drawings are complete and there are different layers frozen in each one.
View 4 Replies View RelatedI have a drawing which has a reference to an external drawing in it for the company logo which is used in the title block. We have moved the location of the company logo to a new drive and thus I need to modify the properties of the path.
But when I open up the properties on this it does not allow me to change the path. I found the only way around this was to delete it and start over using the new path .
I have a lot of drawings that someone inserted the Xref's, but the Xref's are "Attached, and Full Path"; however, I need to change them to "Overlay, and Relative Path".
View 3 Replies View RelatedHow i can change, path type of xref file from fullpath to no path
View 1 Replies View RelatedHow do I get the full Xref Path name instead of Xref.dwg? I'm scratching my head is this totally under my nose... cause I don't see where the property is stored. I'm getting EV_BDR.dwg instead of C:folderEV_BDR.dwg
View 8 Replies View RelatedI am attaching a File as a xRef. At the time of Attachment, I select attach as attachment, and No Path in Path.
Now if I try to fetch detail of this file using MdiActiveDocument.Database and BlockTableRecord, I gets only file name not the path. However, In AutoCAD we can see the file path under "Found At". Can we read / fetch this using C#.
In case of Full Path or relative Path, I gets full path in btr.PathName
Here is my code and I am using AutoCAD 2013
Database db = acadApp.DocumentManager.MdiActiveDocument.Database;
using (Transaction Trans = db.TransactionManager.StartTransaction()) {
BlockTable BlkTbl = (BlockTable)Trans.GetObject(db.BlockTableId, OpenMode.ForRead,false,true);
db.ResolveXrefs(false, false);
[Code] ...........
Is it possible to run a lisp which can extract all the xref names, make a layer with that name and then change the xref on the layer? I have got a similar routine from earlier posts but it doesn't work if any xrefs inserted in paper space (works fine on model space). could change this routine allowing to change the layer of xref in paper space too.
(defun dxf (i a) (cdr (assoc i a)))
(defun c:lxr ( )
(setq ss (ssget "x" '((0 . "INSERT"))))
[Code].....
My computer is not searching for the xrefs correctly. Whenever I switch to another job and try to load an xref, the computer searches under the last job I worked on and nothing else. I have several folders listed as search paths but it just seems to be ignoring them. We never used to have this problem and I cannot figure out what has changed.
View 2 Replies View RelatedReceived some drawings with xrefs. Have put xrefs in sub directory called xrefs. Simple.
Opened drawings but cannot brows to select and save new path for xrefs. No brows button exists.
I am using acad LT 2012. So many unnecessary changes for so little benefit. Miss my old square screen also.
How do I update the path in simple terms nice and easy like previous versions of autocad. Storing xrefs in same directory is not an option. Reference manager does not appear to be part of acad LT 2012.
Drawings will not open in previous versions due to autodesk objects so using my trusty acad LT 2007 is also not an option.
Is there a way of showing only the location of the xrefs using a diesel expression (or otherwise)?
At the moment I'm using $(xrefs,5), but all the xrefs are in the same folder, and I only want that folder path shown once.
I.e., even if I have 5 xrefs, I just want one line showing the folder path of those xrefs.
I'm getting a problem regarding getting a document database. I've tested two alternatives:
Alternative1
doc = autoCadApp.DocumentManager.Open(fullpath);
autoCadApp.DocumentManager.MdiActiveDocument = doc;
doc.LockDocument(DocumentLockMode.Write, null, null, false);
Database db = doc.Database
Alternative2
Database db = new Database(true, false);
db.ReadDwgFile(fullpath, FileShare.ReadWrite, false, string.Empty);
Because what I'm trying to do is modify the xref path of documents, and when i detach the xref and then attach the newer xref, if i access the database from the alternative 1, I don't get any error and the xref is updated correctly. But when I use the alternative number 2, when I attach a newer xref i get and ePermantlyErased exception. Shouldn't that be the same? By the way, I need to open the document silently that is why I'm using alternative number 2.
Using VB .NET we're trying to find the Resolved path of an Xref. We can get the Saved path (which, for us, is only the xref dwg name) but we need to determine where the Xref was "found at" by AutoCAD.
View 5 Replies View Relatedi looking a way for create a block after selected a Xref.
It is for display the path+Name of my Xref.
It use fields manualy put i can copy/paste the bloc. (ObjectId not egual in a 2 dwg).
I want :
1 - selec the Xref --> I know how to do that.
2 - create a bloc --> I know.
3 - create a att -> i know
4 - fill the att with the field --> ???
how do I show the full name (path and all) at the top of the Acad dwg?
View 3 Replies View RelatedI am building a plugin which needs to change the xref path within a drawing without opening it.
here is my. I am new to .Net c#
[CommandMethod("refremap")]
public void refremap() // This method can have any name
{
//Get the document
Document Doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = Doc.Editor;
[code]....
here is the question,basicly, i have a folder named "A", and this folder include 5 DWGs, named 1,2,3,4,5. "1" is the main DWG, so, 2,3,4,5 is attached or overlayed to main file. First step im copying this folder from server, and im pasting to my desktop.Im doing some modifications on xref files, and im uploading "A" folder to my friend's partage from local company server. its allright till here..
my collegue is copying this same folder "A" and opening main file, and main file reading another "3" file from his desktop... this is the problem. file names are same, and it has to be this way. i want to make the main file read from its own folder. we are using 2008, 2012.
I wanted to attach an image as Xref to my drawing. I like to set my Xref's relative but in this occasion I get the error "Relative path cannot be assigned".
My version of AutoCAD is 2011 btw.
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 RelatedHow can I update the file path to an XREF which is NESTED? I point the file to the appropriate xref and even though I save the file it won't point back to the file upon opening?
View 7 Replies View RelatedI have a part.I use some Parameters of this part as linked to other parts.Once I change any parameter used as linked the other parts will follow it automatically.So I have drive and driven parts.
Now for some reason I need to change some geometry in my drive part in the way my drive dimension must be reattached to other geometry points.
I cannot delete and create the new dimension even with the same name since all my driven parts will lose this linked parameter in either way and this parameter becomes static (Reference Parameter).
I wish I can preserve the existing dimension (parameter) and reattach it to other geometry.
Problem with lost Xref path when attaching a file using relative pathing? We are using Autocad 2010 and Windows 7. If we attach the same file using Windows XP the problem does not happen.
View 1 Replies View RelatedPeriodically, when I try to create an XREF using the Relative Path option, C3D will tell me that it can't use the relative path. But if I then close the drawing and reopen it, the command works just fine. why C3D sometimes fails to do this, or why closing and reopening the drawing fixes the problem.
Never saw this problem before C3D 2012.
Looking for registry keys to control the default attachment type (Full, Relative, & No Path) for XRef, Image, PDF, & DWF in the attachment dialog. (I'm using C3D but this applies to plain ACad also).
For XRef the key is:
HKEY_CURRENT_USERSoftwareAutodeskAutoCADR18.2ACAD-A000:409ProfilesMyWorkSpaceDialogsXattachDialog
The value is "PathType" DWORD = 1 for relativepath
For Image the key is:
HKEY_CURRENT_USERSoftwareAutodeskAutoCADR18.2ACAD-A000:409ISM
The value is "ImagePathType" DWORD = 1 for relative path (NOTE: this value didn't exist, once I created it, C3D used the key for both storing the value when closing C3D the reading the value when presenting the attach dialog).
Looking for keys that control PDF & DWF attachments.
I created a Web Gallery and forgot to update the folder name for the FTP server.
How can I update the saved gallery? If you change module and double click again on the saved gallery icon, the changes are lost.
Here is what I get via right click:
How do you solve this without the need to delete and save the gallery again?
I forgot the command to update lineweights in my sheet files after making changes in my base files e.g.( change layer color in base file, and sheet file does not update unless I detach and then re-attach).
And I recall a setting to automatically allow base file updates??
Any variables that would cause my XREF paths to change from Full Path to Relative Path when I save a drawing?
This is something that just started happening recently and has me completely at a loss. I haven't installed any patches or hot fixes recently and nothing else has changed that I'm aware of.
I have somehow detached the tool details window from the dialog window. You know, the one that normally is part of the tools window at the bottom when you click a tool like a brush showing opacity, size, type, etc.
I got it somehow where I have to double-click the tool to make it appear, and it appears in a separate window. I tried dragging it back into the tools dock but it only places the window on top of it. How in the world do I get it back as part of the tools dock? (vers. 2.8)
change line weight on a xref, i have went into each xref and changed line weight but when i view in model space the line weight is still printing bold.
View 3 Replies View Related