AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*plt
Message 1 of 3 (334 Views)

Erase all objects on a layer (ye)

334 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 (334 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 (334 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 >> >> > > >
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.