AutoCAD and April Fool’s Day

AutoCAD and April Fools Day, the two really go hand in hand, don’t they? Whether you love pranking your co-workers or want to know how to defend yourself from attackers, we have some advice for you here.

What makes a good prank?  You don’t want anything that is destructive or will cause pain to redo.  There are several options I can think of (Pure-Chaos mode) that are very destructive.  Don’t go overboard and find yourself having a conversation with HR and I have to say – use at your own risk!  All of these are easy to undo. 

If you live in fear that you are going to get up for a coffee and come back to your precious AutoCAD settings all messed up, just lock your computer.  Hold down the Windows Key and Press L – Problem averted for the cost of having to type in your password one time. If you didn’t remember, the REDEFINE command is your best tip.

Defcon 5 – Peacetime, but defend yourself.

Defcon 4- Elevated Threat, but you may experience occasional pranking.
My advice for this level of attack: MTJIGSTRING.  Type in MTJIGSTRING and then a string.  Unhappy about your Iowa State Cyclones being defeated in March Madness and your cubicle neighbor from Ole Miss has been gloating about it for a whole week?  Type in MTJIGSTRING and then “Rebels Sux”.  Now every time AutoCAD prompts for a position to place an MTEXT object they will see this string. You are limited to 10 Characters, so plan well.

Defcon 3-Above Normal Readiness. My advice for this level of attack:VTENABLE

VTENABLE turns on or off smooth visual transitions when you zoom.  Why would you want it to zoom slower?  I’m not really sure, but where this turns into a prank is when you set the duration of the visual transition.  Normally this is set to 750 or ¾ of a second.  Let’s go for the max, 5000.

Defcon 2 – Things are getting a little hostile now.  My advice for this level of attack: CADRolling.  (A portmanteau of AutoCAD and Rickrolling).  You need to know your target fairly well, and their most used AutoCAD Command.  In this case, PLINE.  When they step away from their computer, load this code.

The fun part here is that you can bait the hook, then quietly walk away.  And don’t forget to turn the speakers up. 

The nice thing is you can easily make this prank more bespoke.  Like maybe this video: https://www.youtube.com/watch?v=5UT8RkSmN4k

Or replace the video link with an alert command like this:

(Alert “ID10T error Detected\n\nTurn off Computer.\n\nCall IT and request Safety bag for return of computer\n\nPlease use safety gloves provided with computer\n\n\n    – Thank You”)

Here is the code for this:
(setq pline-counter 0) ;; Initialize counter if not set

(command "Undefine" "Pline") ;; undefine standard pline command

(defun c:pline (/ ) ; define new pline command
  (setq pline-counter (1+ pline-counter)) ;; Increase counter
  
  (if (= pline-counter 5) ;; On the 5th use...
    (progn
      (setq pline-counter 0) ;; Reset counter
      (command "start"  "https://www.youtube.com/watch?v=dQw4w9WgXcQ") ;; Open Rickroll link
    )
  )
  
  (command "._PLINE") ;; Run normal PLINE command
)

Defcon 1 – We won’t do anything destructive, but these options can look destructive.

Ramping things up.  My advice for this level of attack: enter the Upside-Down world.

Type in:
-VPOINT<enter>0,0,-1.

Now we are looking at the drawing from the bottom.  Easy to execute and very confusing for anybody who hasn’t seen this before.  Want another option, type in QTEXT<enter>ON<enter>REGEN.  Now the text has been replaced with boxes.

My text is upside down!

My text is boxes!

Civil 3d 2025 Performance Improvements

Update – I just got a chance to test with Civil 3d 2025.1 update, it runs at about the same speed for file open operations. So no significant improvement over 2025.0.2, but a nice improvement vs older versions.

AutoCAD 2025 in the release notes (Link) notes ‘Improvements have been made to reduce the amount of time it takes to open 2D drawing files’.  My question was ‘Does this apply to Civil 3d files, and will we see better file open performance?  As you know, time to open Civil 3d files is a frequent source of user frustration.  Those of us who have used Civil 3d for a long time can remember some drawings which are slow, so we go get a cup of coffee while the file opens.  Others have used some drawings which are so slow, we just go get lunch.  Any improvement in file-open time is a net-win for our Civil 3d users.

I have done some testing which you can see linked in the video here:  https://youtu.be/aG2pueYYqJM This test opens 45 drawings from a project in each version listed here: Civil 3d 2025.02, Civil 3d 2024.4, and Civil 3d 2022. To determine aggregate time savings over a month of opening files, we multiplied these out for an average # of file opens / month and also for a heavy user who opens a large number of files per month.

Based on opening 140 Drawings / Week (This was the average in our file access logs), you can see the total time to open in the table below:

 4 Weeks
 Total TTO (minutes)
Civil 3d 2025.0.246.67
Civil 3d 2024.458.70
Civil 3d 2022.2.577.99


We expect the time saved will be about these numbers below. 

Time saved / month
Minutes
vs 2024Vs 2022
1231

For the Heavy Civil 3d users who open about 450 drawings / month, we get these time savings below.

 4 Weeks Total TTO (Minutes)
Civil 3d 2025.02150.00
Civil 3d 2024.4188.67
Civil 3d 2022.2.5250.67
Time saved / 4 weeks
Minutes
vs 2024Vs 2022
39101

This gives you a good reason to upgrade.  If you are looking for a reason to upgrade to Civil 3d 2025, this is only one. The improvements to the feature line corridors I believe will have many site design engineers looking at new options for creating dynamic curbs.  Check out my video here: https://youtu.be/Gg7u9-LgIL0

There are also improvements to corridor performance, and I believe the Surface editing command optimization will be a favorite of many Civil 3d users. 

I haven’t had a chance to test all these yet, but I will share my impressions on any new features I get a chance to test.

Civil 3d 2025 New online Image Options

I’m excited to be getting into Civil 3d 2025, and I want to share a few of my favorite new features.

Lets take a look at the new ESRI Map options that we have available. This is included in the core AutoCAD Product, not just Civil 3d!

The 3 options on the left have been in AutoCAD for some time. The 5 on the right, are new. I really like the ESRI Open Street Map Option. It has a very familiar look for those of us who like the look of USGS Topo Maps.

Lets cover what most people are probably asking. “Can I get a better preliminary image for Early Phase design work”. I took two viewports, displayed the left with the current Bing Aerial Imagery, and on the right used the ESRI Imagery Option.

Unfortunately, this doesn’t look like a big improvement. 3rd Party sat image providers like Plex.Earth and Nearmap still look like very good options for this.

With the ESRI map options, I have seen this error more than once:

The Internet connection timed out or the map server is not responding.
Unable to capture an image at the specified location.

Keep this issue in mind. I didn’t see this issue when I was creating my GEOMAPIMAGE for the demo above, I was doing some more testing and seen this error above. While I was seeing this issue creating new GEOMAPIMAGE objects, existing ones continued to work.

I also saw these funky areas like below. On the right is the new Imagery option, and something very weird is going on here.

All tests done on Civil 3d 2025.01, I will update you if it works better in 2025.1.

I hate Surface analysis – how to Automate them in Civil 3d

Update – I just revised the dynamo script for better compatability with Dynamo Player. Check out the link: https://drive.google.com/file/d/1pcKvde-GYz4ZeIRX4LcOkAyCZQKJammu/view?usp=sharing

Creating cut/fill diagrams is often a pain in the neck. There isn’t a great way to share the schemes you come up with, creating them in the first place is a pain. There are several default schemes, but you can’t modify them! Don’t believe me – check the help! Editing color scheme for surface analysis in Civil 3D (autodesk.com) The title should really say you can’t do this! There is a tool in the country kits to share these, but it isn’t optimal.

Lets start by automating the creation of slope arrow analysis. I typically use this table below. I have included the reasoning for each color. Its nice to setup the Dynamo script with your own company standards, these become very useful when reviewing surfaces.

Take a look at the youtube video below to walk you through the process.

Here is a link to the Dynamo Script for that one: https://drive.google.com/file/d/1UzcSLlsMEwZ5P3rpotEauLqISVB5D1q1/view?usp=drive_link

Next is elevation analysis for TIN volume surfaces. This is always a major time suck as it takes time to set this up and then you can’t re-use that again. It says so in the help document! Editing color scheme for surface analysis in Civil 3D (autodesk.com)

Here is a link for the Dynamo script for this one: https://drive.google.com/file/d/1oJnTaruJq8FhiFl1yNJ2S-xV_lcoPvrC/view?usp=drive_link

These scripts are only possible with the excellent Camber Package for Dyanmo and Civil 3d. You will need to download this package, it will prompt you to do this when you open the script in dynamo. Here is more information on how to do this: https://primer.dynamobim.org/en/11_Packages/11-1_Introduction.html

If you improve on these scripts, please let me know. I’m always looking for ways to make things better!

Civil 3d My surface is ignoring the feature lines!

I see this issue from time to time in Civil 3d. A surface is created, but when updating the feature lines, it isn’t always represented in the surface.

The issue is usually too many edits in the file. It makes it difficult to see what the feature lines are doing to the surface, meaning people can update the feature lines, but those changes are not reflected in the surface.

In the video linked below, I have demonstrated this, along with a couple other surface best practices.

I also demonstrate a dynamo script I use for surface analysis. If you would like to try it out, it can be downloaded here: https://drive.google.com/file/d/1LYvBJEzruKHih1CVQujeb34ZtU0bJlen/view?usp=drive_link

Civil 3d 2024 Hero!

With a large number of us working remote since the pandemic, there are some slowdowns that can happen. One issue I have seen in my organization is the time it takes to set the working folder when working through the VPN. If you are using a working folder structure that contains many folders to index, this can take a long time.

I will agree that my organizations working folder setup is suboptimal. With a project # of 12562, we set the working folder to P:\12000, requiring Civil 3d to index over 1,000 folders. With everyone in the office this took about 10 seconds to execute.

Working at home through the VPN this could take as long as 20 minutes. Here is a really boring video!

Enter the hero of our story, the new feature in Civil 3d 2024 ENABLEDSMULTITHREAD!

Setting ENABLEDSMULTITHREAD to ON had reduced this from about 20 minutes to about 10 seconds. That’s what I call a productivity boost!

9x faster Tab Switching in Civil 3d 2024 – NO!

I did this post last week where I tested the claim of up to 9x faster tab switching with AutoCAD 2024. My thought is this would be great for my Civil 3d users who use a lot of tabs. Faster is always better, right?

Unfortunately this speed increase did not transfer from AutoCAD 2024 to Civil 3d 2024. I suspect this has to do with the fact that Civil 3d regenerates object very differently than straight AutoCAD.

The good news is Civil 3d 2024 managed to do this about 11% faster over 5 trials with Civil 3d 2024 always coming out faster than the 2022 version.

I also tested to see if this speed increase in tab switching also applies to publishing the same 50 sheet drawing set. Unfortunately, the answer is no to that (even in AutoCAD). I suspect whatever change was made to speed up tab switching was not applied to the publishing code.

Here is a video of one of the runs.

9X faster switching between layout tabs with Autocad 2024 – Lets test that

“Up to 9x faster switching between layout tabs compared to AutoCAD 2023” Lets test that. Source: Welcome AutoCAD 2024: Quickly Collaborate, Enhance Your Productivity, and Experience New Machine Learning Features

I had a drawing with over 50 layout tabs so I bashed together this code to switch between 50 layout tabs and time the results. This code is specific for these drawings. You can see the code at the bottom of this post.

Here we are testing performance between 2022 (left) and 2024 (right).

Video has no sound.

My experiments found it being significantly faster at about 4-5x faster. I wasn’t seeing 9x speed improvement, and would be curious what changes could be made to achieve that.

Code below. This is relying on knowing the names of the layout tabs.

(defun c:bm (/ );time_start current_tab next_tab time_end time_ellapsed )
(setvar “ctab” “100”)
(setq time_start (getvar “millisecs”))
(setq current_tab 100)

(repeat 50
(setq current_tab (+ 1 current_tab))
(setq next_tab (itoa current_tab))
(setvar “ctab” next_tab)
; (command “zoom” “Extents”)
(princ next_tab)
)
(setq time_end (getvar “millisecs”))
(setq time_ellapsed (/ (- time_end time_start) 1000.))
(princ time_ellapsed)
(alert (strcat “Ellapsed Time to switch 50 layout tabs\n\n”(rtos time_ellapsed 2 2)”Seconds”))
(princ)

)

I can see clearly now!

I think everyone who learns to edit Civil 3d styles, learns to squint at the screen a bit because it is so hard to see clearly the current parameters when you are editing the Civil 3d styles.  We may be creating a generation of Engineers and CAD managers with bad vision due to this.

But there is an option to fix this, it’s a Windows feature called clear type.  We need to turn that off.  Press Start, and type in ‘CLEAR’ and select Adjust Cleartype Text.

You can also hold the Windows key on your keboard, press ‘R’, and type in CTTUNE.

It will come up with several prompts depending on how many monitors you have and ask you a series of “which one looks better” questions.

Look how much easier this is to read!

Lets compare this vs the original version.  Big difference.

Reviewing Civil 3d Surfaces – Part 2

I often see users new to grading with Civil 3d make the same errors reviewing surfaces. Here we are going to continue our series and show you a few shortcuts to help you review surfaces faster.

I see this often with new users, they want to check the grades, and do it by copying a grade label all over the place. To review these they need to review each number. Lets supercharge this and talk about surface analysis!

Select the surface, right click and select Surface Properties.

Setup the desired # of surface analysis. I usually use this scheme:

I usually do this for the following reasons. I want to flag any slope under 0.50% as too flat to drain. Often I may want to increase this range. 0.50-1.50% I also want to check out. 1.5%-2% is flagged so we can check for any issues with ADA cross-slope. 2-8.33% is acceptable for ADA longitudinally. 50%+ I want to check for any too-steep slopes.

To get these to display, edit your surface style and make sure Slope Arrows is on (visible).

Now I can review my surface slopes by looking at the surface.

One issue you can have is the slope arrows are too/big or small.

You can change the size of the slope arrow by editing the style.

Adjust the slope arrow length as needed.

If you are printing this for review by your team, you can add a surface legend table

After selecting ‘Add Surface Legend Table’ and selecting your surface, it will ask what type of table you need. Select A for Slope Arrows. It will ask if you want a dynamic or static table.

Tin Lines Make Sense out of Chaos.

When reviewing the slope arrows, sometimes making sense out of them can be difficult. Turning on the tin lines helps make sense out of chaos.

This will conclude part 2 of this series. I will post part 3 sometime after Autodesk University in New Orleans. Hope to see you there.

To read part 1, visit this link: http://c3dk.com/2022/09/06/techniques-for-reviewing-civil-3d-surfaces-part-1/