AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*plt
Message 1 of 3 (318 Views)

Erase all objects on a layer (ye)

318 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 (318 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 (318 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 >> >> > > >
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.