Results 1 to 3 of 3

Thread: Any thoughts on widenings improvement?

  1. #1
    Join Date
    Login to Give a bone

    Default Any thoughts on widenings improvement?

    Hello all,

    I have been developing for some time, but only about 6 weeks with autocad (and only with civil 3d).

    I am looking for any suggestions on programmatically adding widenings to our offset alignments. We have 2 parallel offset alignments and usually over 40 widening groups. This is a tedious thing to enter by hand, so enter my involvement. I have code that will do it.

    Im using VS 2019, C# .NET


    The problem is that for 15 widenings, no problem. 20 takes an extra minute. by the time we get to 30, it is 4 or 5 minute wait for completion. I need it to run for 50 widenings or more to function. I let it run for 30 minutes on a longer one before my computer crashed for other reasons.

    I have narrowed this thing down to just the function call, it is not the looping constructs I use around it, it just take the actual command that long to process once there are that many groups.

    I don't know if there is an Object ARX way to attack this or if there is some mojo that one of you can suggest?

    Thank you

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    Login to Give a bone

    Default Re: Any thoughts on widenings improvement?

    Welcome to AUGI.

    Always hard to identify where the bottleneck is without code we can test on our end; it's either going to be the native API or your code logic.

    Civil 3D doesn't really offer an ARX API, so you're pretty much relegated to .NET API.

    Sometimes a simple extension method can be used to overcome a code-efficiency obstacle, or simply adding multiple before commit()-ting a Database Transaction, in lieu of calling Commit() after each, etc would be helpful.

    Again, no code for us to look at to be able to offer something more specific than stabs in the dark.

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

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3630, Core i9-9900K 5.0GHz, 128GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000

  3. #3
    Join Date
    Login to Give a bone

    Default Re: Any thoughts on widenings improvement?

    I think this one might be a dead end. Thanks for the suggestions though.

Similar Threads

  1. 2014: Lots of problems uwing SSM in Civil 3D.... any thoughts ?
    By opesch in forum AutoCAD Civil 3D - General
    Replies: 3
    Last Post: 2014-11-08, 03:34 PM
  2. Any thoughts on how to place text notes in Revit?
    By hdjohnson in forum Revit Architecture - General
    Replies: 16
    Last Post: 2011-07-03, 02:02 PM
  3. Any thoughts for a Points File Export from RAC 2008?
    By jdougherty.136090 in forum Revit - Plotting/Printing/Exporting
    Replies: 10
    Last Post: 2007-11-19, 05:41 PM

Tags for this Thread

Posting Permissions

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