• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D

    Reply
    Contributor
    Posts: 22
    Registered: ‎11-13-2006

    Data Shortcut Source Drawing Location

    457 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

     

    Please use plain text.
    *Expert Elite*
    johnm
    Posts: 1,717
    Registered: ‎11-13-2006

    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
    C3D 2012, RD 2012
    Win 7 64, Core i7,
    6 GB RAM, Quadro FX 1700
    Please use plain text.
    Contributor
    Posts: 22
    Registered: ‎11-13-2006

    Re: Data Shortcut Source Drawing Location

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

    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

     

    Please use plain text.
    *Expert Elite*
    Posts: 2,270
    Registered: ‎07-09-2003

    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/
    Please use plain text.
    *Expert Elite*
    johnm
    Posts: 1,717
    Registered: ‎11-13-2006

    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
    C3D 2012, RD 2012
    Win 7 64, Core i7,
    6 GB RAM, Quadro FX 1700
    Please use plain text.
    *Expert Elite*
    johnm
    Posts: 1,717
    Registered: ‎11-13-2006

    Re: Data Shortcut Source Drawing Location

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

    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
    C3D 2012, RD 2012
    Win 7 64, Core i7,
    6 GB RAM, Quadro FX 1700
    Please use plain text.
    Valued Mentor
    Posts: 488
    Registered: ‎03-18-2008

    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

    HPxw4600 Workstation
    Core 2 Duo 2.33ghz, 8gb RAM
    nVidia Quadro FX1700
    Win7 64bit
    Please use plain text.
    *Expert Elite*
    johnm
    Posts: 1,717
    Registered: ‎11-13-2006

    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
    C3D 2012, RD 2012
    Win 7 64, Core i7,
    6 GB RAM, Quadro FX 1700
    Please use plain text.
    Contributor
    Posts: 22
    Registered: ‎11-13-2006

    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.

     

     

     

     

    Please use plain text.
    Contributor
    Posts: 22
    Registered: ‎11-13-2006

    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?

     

    Please use plain text.