Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

  1. #11
    Member
    Join Date
    2008-05
    Location
    Queenstown, New Zealand
    Posts
    8

    Default Re: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

    BlackBox

    Long time member and reader, but mainly posted over in the Autodesk forums between 2008 & 2014 when work was a bit quieter. Last few years have been hectic in the land development industry in NZ.

    Been having a depressing time of late trying to either find or train and retain good staff and keep up with the work. This the case I have come to the conclusion that I need to start working smarter not harder over the last few months which was always my philosophy years ago.

    Yes your old post shows what I have to do but not sure I will find the time to investigate further in the short term.

    Regards

    Justin

  2. #12
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719

    Default Re: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

    Quote Originally Posted by ralstogj View Post
    Long time member and reader, but mainly posted over in the Autodesk forums between 2008 & 2014 when work was a bit quieter. Last few years have been hectic in the land development industry in NZ.
    Yeah... Guess I should have looked at your join date instead of the post count, huh? Haha

    Quote Originally Posted by ralstogj View Post
    Been having a depressing time of late trying to either find or train and retain good staff and keep up with the work.
    Sorry to hear that; don't be depressed... Look at everything you do have and the opportunity you have moving forward, then say GOOD.

    Quote Originally Posted by ralstogj View Post
    This the case I have come to the conclusion that I need to start working smarter not harder over the last few months which was always my philosophy years ago.
    It takes both emotion (work harder) and logic (work smarter) to reach your maximum potential.

    [Edit] - Dare I say, to reach your [Xtreme] potential?

    Quote Originally Posted by ralstogj View Post
    Yes your old post shows what I have to do but not sure I will find the time to investigate further in the short term.
    I'll see what I can do.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #13
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719

    Default Re: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

    Quote Originally Posted by BlackBox View Post
    Quote Originally Posted by ralstogj View Post
    Yes your old post shows what I have to do but not sure I will find the time to investigate further in the short term.
    I'll see what I can do.
    Well, just as an update to this:

    In part due to your request and in part because it's been long overdue, I've started a new Framework (more importantly a single Solution/Project, for each ACAD and C3D) for my various apps, which now includes this topic.

    I've successfully implemented a new Autodesk.Civil.DatabaseServices.Entity.GetReferencePath() extension method, which retrieves the DREF Source Path (as string) for any AECC Entity where IsReferenceObject == true that can be found in ShortcutFolders.xml file**. To test this in production, I've also implemented a C3d-GetReferencePath LispFunction method, for use with ObjectDBX to grant your request for a DREF variant of BFindSurface (aka a forthcoming BFindDref LISP), and a ContextMenuExtension (aka right click menu) for real-time querying during work.

    Still needs some work; there are a few DREF types that I simply don't use for my daily work, as I don't use Plans Production Tools (PPT), etc so I need to set that up and make sure it works for all supported DREF types, and I'm currently using XmlDocument (as that's what I had originally coded this in several years ago) and would like to instead use XDocument/XElement for LINQ performance gains.

    While performance is a common theme in my offerings, this even more so, as I'll also be using this functionality to support the ability to 'Match Source' Layers, Styles, etc for things like DREF Pipe Networks... I already have this too, but currently resort to manually selecting the Source DWG via dos_getfiled selection dialog... Being able to instead simply select the Part(s) to sync without first needing to know the Source DWG (so long as that WorkingFolder is found in ShortcutFolders.xml) will significantly benefit overall efficiency.

    [Edit] - ** I'm also planning to leverage this to allow for a two-way sync of ShortcutFolders.xml files, where a new project added by User1 will sync their local ShortcutFolders.xml file up to a network-shared ShortcutFolders.xml file, which will in turn sync down to User2, who will then immediately have access to the same project when they open a drawing associated with that WorkingFolder (instead of having to manually add that WorkingFolder to preclude the 'project not found' message).

    Cheers





    Last edited by BlackBox; 2018-11-30 at 08:35 PM.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  4. #14
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719

    Default Re: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

    Oh it's happening....

    2018-12-21_15-55-05.png
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  5. #15
    Member
    Join Date
    2013-08
    Posts
    23

    Default Re: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

    Quote Originally Posted by BlackBox View Post
    Oh it's happening....

    2018-12-21_15-55-05.png
    Were you able to implement a stable version of this that you're comfortable distributing? DREFs have a good amount of trouble updating names of structures/pipes; it'd be nice to have a starting point as it seems like what you were doing was already 90% there.

    Regards,

  6. #16
    Member
    Join Date
    2019-10
    Posts
    8

    Default Re: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

    Thanks for everyone for sharing your information

  7. #17
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719

    Default Re: .NET API functions to interrogated Civil 3D drawings for possible data shortcut dependencies

    Quote Originally Posted by ralstogj View Post
    ... not sure I will find the time to investigate further in the short term.

    Quote Originally Posted by ngwalters412556 View Post
    Were you able to implement a stable version of this that you're comfortable distributing? DREFs have a good amount of trouble updating names of structures/pipes; it'd be nice to have a starting point as it seems like what you were doing was already 90% there.
    Looks like I too was unable to revisit this in the short term. Haha

    Posting this as a reminder for myself; as a quick update with regard to being '90% there', the app pictured above works great for DREFs associated with the drawing's current 'Project Association' but currently fails if not found within that associated project's XML files. So, I simply need to iterate ALL 'known' projects, right? Right... And then mitigate duplicate names by checking for handles, overcoming the fact that User A might have the project association, but User B does not, etc. It is in this last part that I've also discussed creating a mechanism to sync projects to<<-->>from the server, so User A creates a new Working Folder/Project and that is synced to server, where User B has never gone into that project but that new project is synced down to their local computer, and vice-versa.

    Anyway, thanks for the reminder on this.

    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Page 2 of 2 FirstFirst 12

Similar Threads

  1. data shortcut in Map 3D?
    By dmingo in forum Geospatial - General
    Replies: 9
    Last Post: 2014-05-08, 01:03 PM
  2. catchments need to be a Data Shortcut
    By Wish List System in forum Civil 3D Wish List
    Replies: 0
    Last Post: 2013-08-12, 01:44 PM
  3. activate map 3d functions in civil 3d
    By valejandro_ibarra in forum AutoCAD Map 3D - General
    Replies: 0
    Last Post: 2010-07-01, 02:42 PM
  4. Data Shortcut Folder
    By mikeosborne in forum Dot Net API
    Replies: 0
    Last Post: 2009-11-24, 06:19 PM
  5. Data shortcut Structure
    By jenniferchavez in forum AutoCAD Civil 3D - General
    Replies: 2
    Last Post: 2009-07-07, 07:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •