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

    AutoCAD Civil 3D

    Reply
    Contributor
    Posts: 12
    Registered: ‎10-09-2009

    Re: Export to acad - keep layer description

    06-29-2011 11:52 PM in reply to: GTVic

    Greg,

     

    Thank you! Only problem is, I cant run the 64 bit RegisterWindows.vbs, and i am on a 64 bit win 7 with 64 bit C3d2011. I tried the 32 bit version, which runs but obviously does not show up in the list of plugins in c3d2011.

     

    Have you run the 64 bit script successfully on 64b win 7? Is there some kind of setting I should change? 

     

    The error I get when I run RegisterWindows.vbs says: "C:\WINDOWS\Microsoft.net\Framework\v2.0.50727\RegAsm.exe" /codebase "C:\Autodesk\Plugins\LayerDescriptionPlugin64\CadstandardsLayerDescriptionPlugin.dll" /regfile "C:\Autodesk\Plugins\LayerDescriptionPlugin64\RegisterWindows.reg

     

    When I hit OK, it simply says "Error"...

     

    Any clue? If this doesn work, I am going to have to go with the Autodesk representative's Save/Delete/insert trick.

     

    -BA

    Please use plain text.
    Distinguished Mentor
    Posts: 839
    Registered: ‎09-07-2004

    Re: Export to acad - keep layer description

    06-30-2011 10:58 AM in reply to: baenebo

    BA,

     

    The script is just helping you to register the DLL because typing in the command is quite lengthy. What you were describing as the error is actually just a listing of the command that is being used to register the DLL.

     

    It can either register the DLL directly into your registry like this:

     

    "C:\WINDOWS\Microsoft.net\Framework\v2.0.50727\RegAsm.exe" /codebase "C:\Autodesk\Plugins\LayerDescriptionPlugin64\CadstandardsLayerDescriptionPlugin.dll"

     

    or create a REG file for you to import manually like this:

     

    "C:\WINDOWS\Microsoft.net\Framework\v2.0.50727\RegAsm.exe" /codebase "C:\Autodesk\Plugins\LayerDescriptionPlugin64\CadstandardsLayerDescriptionPlugin.dll" /regfile "C:\Autodesk\Plugins\LayerDescriptionPlugin64\RegisterWindows.reg"

     

    The first thing I would do is right-click the VBS file and run it as administrator, that may be the only problem.

    Also make sure that the REGASM.EXE program is in the folder as listed above.

    Please use plain text.
    Valued Mentor
    TerryDotson
    Posts: 386
    Registered: ‎06-06-2010

    Re: Export to acad - keep layer description

    07-01-2011 04:01 AM in reply to: baenebo

    Sorry it didn't work in this case.  Consider opening the source drawing, saving the export file, close that drawing (maybe even restart CAD) and open the second drawing for import.

     

    Keep in mind that this was a quick & dirty revision to an old lisp routine which itself was meant to be a simple patch.  We can't justify spending a lot of time on a nice modern routine in freeware.

    Please use plain text.
    Distinguished Contributor
    Posts: 123
    Registered: ‎06-05-2006

    Re: Export to acad - keep layer description

    07-01-2011 07:15 AM in reply to: Sinc

    You are right. An OE only displays that OE's version objects and prior.

     

    Regards,

    Mike Caruso

    http://civildisobedience3d.wordpress.com/

    Please use plain text.
    Contributor
    Posts: 24
    Registered: ‎04-16-2012

    Re: Export to acad - keep layer description

    02-20-2013 11:55 AM in reply to: GTVic

    Greg,

    Thank you so much! This is great!

    Is there any way you could post the source? While it's very useful as-is, I'd like to be able to make it ignore Xref layers.

    ================================
    Vanilla AutoCAD 2010
    Please use plain text.
    Distinguished Mentor
    Posts: 839
    Registered: ‎09-07-2004

    Re: Export to acad - keep layer description

    02-20-2013 12:25 PM in reply to: BlueVue

    Here is the source. The CAD Standards COM interface is pretty clunky.

     

    I've now written a different .NET application that loads a DWT or DWG file as a standards file and allows you to update your layers, including layer descriptions and blocks in the current drawing.

     

    UpdateLayers.jpg

    Please use plain text.