Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Data Shortcut Source Drawing Location

10 REPLIES 10
Reply
Message 1 of 11
cbutler1
4211 Views, 10 Replies

Data Shortcut Source Drawing Location

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

 

10 REPLIES 10
Message 2 of 11
jmayo-EE
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

EESignature

Message 3 of 11
cbutler1
in reply to: jmayo-EE

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

 

Message 4 of 11
mathewkol
in reply to: cbutler1

Not sure why yours isn't working but that's what the DS Edotor is for.
Matt Kolberg
SolidCAD Professional Services
http://www.solidcad.ca /
Message 5 of 11
jmayo-EE
in reply to: mathewkol

I think this is happening because the original source and surface still exist. Sent from my iPhone

John Mayo

EESignature

Message 6 of 11
jmayo-EE
in reply to: jmayo-EE

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

EESignature

Message 7 of 11

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
Message 8 of 11

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

EESignature

Message 9 of 11
cbutler1
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.

 

 

 

 

Message 10 of 11
cbutler1
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?

 

Message 11 of 11
cbutler1
in reply to: cbutler1

Manually right clicking on the data shortcut for the slave drawing and selecting repair broken references did fix it. It's just not practical to have the user repair all the shortcuts plus the previous location must not exist or the repair isn't an option.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report