Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Erase all objects on a layer (ye)

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
615 Views, 2 Replies

Erase all objects on a layer (ye)

LDT had a command called ye, that erased all the objects on a chosen layer. Is that available with C3D? Thanks, plt
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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 > >
Message 3 of 3
Anonymous
in reply to: Anonymous

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 >> >> > > >

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report