AutoCAD Civil 3D General

Reply
*plt
Message 1 of 3 (299 Views)

Erase all objects on a layer (ye)

299 Views, 2 Replies
12-11-2004 10:39 AM
LDT had a command called ye, that erased all the objects on a chosen layer. Is that available with C3D? Thanks, plt
*Laurie Comerford
Message 2 of 3 (299 Views)

Re: Erase all objects on a layer (ye)

12-12-2004 12:09 AM in reply to: *plt
Hi, No. There are dozens of commands in Land Desktop which have not yet (or never will be) incorporated into Civil 3D. The Express tools has a layer erase command and Autodesk may intend you learn and use that one. In the mean time you can use the attached as a starter. To run it easily put the following code in a lisp file which is automatically loaded when you load AutoCAD and put the program in a directory on the AutoCAD search path (defun C:YE () (vl-vbarun "YE-C3D2005-v0.dvb!YE") ) Or put (vl-vbarun "YE-C3D2005-v0.dvb!YE") in a menu. Compared with the Land Desktop command, you can erase multiple layers at once (without needing to use wildcards) by selecting them from the list box and you can optionally purge the layer as well as deleting objects on it. The program also reports the number of objects on each selected layer. If you don't like this, simply edit the code to remove the message box. Although written inside Civil 3D, it is quite likely this program will work in any version of AutoCAD (with VBA) as there are no restrictions to a vertical product in the libraries called by code. -- Laurie Comerford CADApps www.cadapps.com.au "plt" wrote in message news:41bb3eae$1_2@newsprd01... > LDT had a command called ye, that erased all the objects on a chosen layer. > Is that available with C3D? > > Thanks, > > plt > >
*plt
Message 3 of 3 (299 Views)

Re: Erase all objects on a layer (ye)

12-12-2004 11:32 AM in reply to: *plt
Wow! Even better than the original. Brilliant. Thank you for your time! plt "Laurie Comerford" wrote in message news:41bbfb87_1@newsprd01... > Hi, > > No. There are dozens of commands in Land Desktop which have not yet (or > never will be) incorporated into Civil 3D. > > The Express tools has a layer erase command and Autodesk may intend you > learn and use that one. > > In the mean time you can use the attached as a starter. > > To run it easily put the following code in a lisp file which is > automatically loaded when you load AutoCAD and put the program in a > directory on the AutoCAD search path > > (defun C:YE () > > (vl-vbarun "YE-C3D2005-v0.dvb!YE") > ) > > Or put (vl-vbarun "YE-C3D2005-v0.dvb!YE") in a menu. > > Compared with the Land Desktop command, you can erase multiple layers at > once (without needing to use wildcards) by selecting them from the list > box > and you can optionally purge the layer as well as deleting objects on it. > > The program also reports the number of objects on each selected layer. If > you don't like this, simply edit the code to remove the message box. > > Although written inside Civil 3D, it is quite likely this program will > work > in any version of AutoCAD (with VBA) as there are no restrictions to a > vertical product in the libraries called by code. > > -- > > > Laurie Comerford > CADApps > www.cadapps.com.au > > > "plt" wrote in message > news:41bb3eae$1_2@newsprd01... >> LDT had a command called ye, that erased all the objects on a chosen > layer. >> Is that available with C3D? >> >> Thanks, >> >> plt >> >> > > >

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs