AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Active Contributor
cbutler1
Posts: 26
Registered: ‎11-13-2006
Message 1 of 11 (1,010 Views)

Data Shortcut Source Drawing Location

1010 Views, 10 Replies
08-03-2012 02:14 PM

I have a 2011 Civil3D drawing with Data shortcuts in it.  I need to replace the source drawing path of the data shortcut with another path.  Is there a way to change this either manually or, preferably, programically. At some point we'll need to batch through the drawings and change this path information.  Is this information is stored in a drawing dictionary somewhere? If so, where?  If not, where?

 

datashortcut.png

 

Updating the .XML data files doesn't appear to affect data links already in the drawing.

 

Thanks for any help,

 

Craig

 

*Expert Elite*
jmayo
Posts: 3,030
Registered: ‎11-13-2006
Message 2 of 11 (1,007 Views)

Re: Data Shortcut Source Drawing Location

08-03-2012 02:19 PM in reply to: cbutler1

A shortcut for the DataShortcut Editor should be in the Start Menu. You can use this to change the paths.

John Mayo, PE
IDSP 2014
Win 7 64, Xeon ES165@3.2Ghz,
64 GB RAM, Quadro K4000 (x2)
Active Contributor
cbutler1
Posts: 26
Registered: ‎11-13-2006
Message 3 of 11 (1,003 Views)

Re: Data Shortcut Source Drawing Location

08-03-2012 02:30 PM in reply to: jmayo

That updates the XML files but does not seem to change the location for paths already in the drawing itself.

 

For example, in E-TO SES Run for my Drawing  AAAA.DWG, the data Source drawing points to something like: G:\adirlocation\anotherdirlocation\dwgs\elec\system_models\BBBBXXX.DWG

 

The Data Shortcuts editor for E-TO SES RUN 4 shows a path of C:\REFS   and the source file being #XSES2-0-42.DWG

 

Craig

 

*Expert Elite*
mathewk
Posts: 2,793
Registered: ‎07-09-2003
Message 4 of 11 (978 Views)

Re: Data Shortcut Source Drawing Location

08-04-2012 07:36 AM in reply to: cbutler1
Not sure why yours isn't working but that's what the DS Edotor is for.
Matt Kolberg
Cansel - Autodesk Division
http://www.cansel.ca/
*Expert Elite*
jmayo
Posts: 3,030
Registered: ‎11-13-2006
Message 5 of 11 (977 Views)

Re: Data Shortcut Source Drawing Location

08-04-2012 07:48 AM in reply to: mathewk
I think this is happening because the original source and surface still exist. Sent from my iPhone
John Mayo, PE
IDSP 2014
Win 7 64, Xeon ES165@3.2Ghz,
64 GB RAM, Quadro K4000 (x2)
*Expert Elite*
jmayo
Posts: 3,030
Registered: ‎11-13-2006
Message 6 of 11 (934 Views)

Re: Data Shortcut Source Drawing Location

08-06-2012 07:57 AM in reply to: jmayo

As a follow up. Temporarily rename or move the original source file. Open the file you want the updated ref in now and C3D won't find the original. You should be able to repair the data referance and point it to the new source dwg and object.

John Mayo, PE
IDSP 2014
Win 7 64, Xeon ES165@3.2Ghz,
64 GB RAM, Quadro K4000 (x2)
Distinguished Mentor
michael.robertson
Posts: 604
Registered: ‎03-18-2008
Message 7 of 11 (931 Views)

Re: Data Shortcut Source Drawing Location

08-06-2012 08:05 AM in reply to: cbutler1

It seems no matter what you do if the original location of a DS still exists it will always resolve to that location first, so rename/remove the original folder location.

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer
*Expert Elite*
jmayo
Posts: 3,030
Registered: ‎11-13-2006
Message 8 of 11 (924 Views)

Re: Data Shortcut Source Drawing Location

08-06-2012 08:33 AM in reply to: michael.robertson

I have done this in the past. I'm not sure if it still works but when you tried this did you also change the "Use to Match" field to "Name Only" after changing the path? I think that needs to be done as well.

John Mayo, PE
IDSP 2014
Win 7 64, Xeon ES165@3.2Ghz,
64 GB RAM, Quadro K4000 (x2)
Active Contributor
cbutler1
Posts: 26
Registered: ‎11-13-2006
Message 9 of 11 (894 Views)

Re: Data Shortcut Source Drawing Location

08-08-2012 02:42 PM in reply to: cbutler1

Thanks. I'll try moving the original in a test as soon as I get a chance. 

 

Unfortunately some of the drawings were pathed using UNC paths instead of mapped drives as per a whitepaper recommendation.  Mapped drives we may be able to work with but not the UNC paths.  Something for others to consider if they find the need to change dwg locations. In our case localization of files where the files will exist on a server and the designers computer.

 

 

 

 

Active Contributor
cbutler1
Posts: 26
Registered: ‎11-13-2006
Message 10 of 11 (874 Views)

Re: Data Shortcut Source Drawing Location

08-09-2012 10:17 AM in reply to: cbutler1

I ran some tests. 

 

I created one master drawing on a G:\ location and a modified copy on C:\.  I then created a Slave drawing on C:\ which referenced the master on G:\

 

Using the data shortcut editor I updated the path to C:\ and opened the slave drawing. It pulled in the data from the G:\ master.

 

If I removed or renamed the master drawing on G:\ then opened the slave drawing, it simply did not find the master instead of using the location specified in the .XML.  It did not matter if the xml specified using handle or name.

 

So the question is where is the shortcut information stored in the drawing file and is there a way to change it through an API call?

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.