Ad

Saturday, July 22, 2017

Some Tips

This post won’t make sense unless you want to add a block at each circle and then to go back in and renumber the blocks.
Renumber blocks Lisp from Cad Forum powered by CadStudio.
Lisp Function to add a block at selected circles. (Based on this post)
To load the lisp functions for Mac.
To create blocks with attributes for Mac.

Another renumber lisp that should work on Macs. The first one doesn't work since VLX isn't supported on Macs.

Tuesday, July 18, 2017

Migrate Settings

So you want to migrate settings according to this AKN article. Unfortunately Civil 3D doesn’t include the shortcut as indicated in the file. The easy way to run the Migrate program is to navigate to the program and run it directly.

The location of the program is here:

C:\Program Files\Autodesk\AutoCAD 2018\AdMigrator.exe

If you want the same experience as the article you can follow these steps:

  • Right click on the desktop and choose New, then Create Shortcut.
  • A dialog box should pop up where you can enter the location of the item:
    C:\Program Files\Autodesk\AutoCAD 2018\AdMigrator.exe
  • Press Next and give the shortcut a name and press finish.
  • Select the newly created shortcut, right click and go to properties.
  • In the Target box enter in the string:
    "C:\Program Files\Autodesk\AutoCAD 2018\AdMigrator.exe" /product "C3D" /language "en-US"
  • Copy and paste the shortcut to start menu where it should be located in the AKN article.

Tuesday, May 16, 2017

Statistics Tab

This post shows how to get the Statistics Tab back in Windows File Properties. The first step is to type Default Programs at the Windows Start Menu.

image

Then select Choose default apps by file type.

image

Then select the AutoCAD DWG Launcher as the app to launch DWG files.

image

Now the Statistics Tab will show up.

image

Sunday, April 30, 2017

Setting the Working Folder and Data Shortcut Project

Well a long time request has been to have the ability to set the working folder and/or data shortcut folder in Civil 3D via a code solution. Well after a long exhaustive search on how to even get the current working folder and data shortcut folder I’ve finally figured out the secret handshake.

The first thing to do is read the text file that contains the Working Folder and Data shortcut information. It is stored at:

C:\Users\Christopher\AppData\Roaming\Autodesk\C3D 2017\enu\Project Management\ShortcutFolders.xml

Replace Christopher with the current user’s name and 2017 with the current version of Civil 3D. There are plenty of examples online on how to read and process XML files, so I will leave that part out of this post.

Then modify the contents of the file, here is my current file contents.

<?xml version="1.0"?>
<WorkingFolders>
    <WorkingFolder path="C:\Users\Christopher\Documents\Delete" current="-1">
        <ShortcutFolder path="C:\Users\Christopher\Documents\Delete\Blah" desc="TestDescription" current="-1" uuid="Blah-0BF7567C-C01F-43dc-BA3B-93F604ACDFBD"/>
        <ShortcutFolder path="C:\Users\Christopher\Documents\Delete\asdf" desc="" current="0" uuid="asdf-F1F190A5-253C-4edc-A3C0-038919899515"/>
    </WorkingFolder>
    <WorkingFolder path="C:\Civil 3D Projects" current="0"/>
    <WorkingFolder path="C:\Civil 3D Projects\" current="0"/>
</WorkingFolders>

Change the current=”0” to current=”-1” to indicate which working folder and data shortcut you want current and set the current=”0” for the data that you no longer want current.

Then save the file.

In Civil 3D run the REFRESHSHORTCUTNODE command at the command line and Civil 3D will read the XML file and update Civil 3D to the current state of the XML file.

Note that this workflow isn’t foolproof. If you have two instances of Civil 3D open they will both updated the XML file. This leads to problems of order if you are reading the file trying to figure out what the current working folder and data shortcuts folder is current.

Monday, April 03, 2017

Missing Layer State Icons

I’ve found that I was missing the Layer State Icons in the Layer Properties.

image

Now I rarely use the buttons now that I work on mainly small projects. But sometimes I do find it comes in handy to save layer states, especially when working with older drawings. So to get the missing layer state icons back I had to collapse the filters panel and then the icons show up.

image

Once collapsed and re-expanded the layer state icons stay visible.

Unfortunately, the change doesn’t stick, and the next time you restart AutoCAD you have to do the steps again.

LinkWithin

Blog Widget by LinkWithin

Ad