jamescdow Posted November 5, 2010 Posted November 5, 2010 i've being trying to purge the layers on one of my drawing but everything i do it asks me to type in the layers that need purging rather than telling me what the empty layers are. can anyone help cheers Quote
BlackBox Posted November 5, 2010 Posted November 5, 2010 Congrats on your first post, and welcome to the forums! Try using the standard ._purge command instead of the command line version (._-purge), does that work for you? Quote
jamescdow Posted November 5, 2010 Author Posted November 5, 2010 hi cheers for your response. i tried using that command instead but it still came up asking me to type in what layers i wanted to purge. i am quite new to autocad2011 as it have only just become available on mac (previously i have been working on vectorworks). i basically want to purge all the classes and layers on a drawing i have uploaded, that have no info on them, without having to go through the laborious process of checking though the classes and layers individually. thanks for your help. Quote
BlackBox Posted November 5, 2010 Posted November 5, 2010 (defun c:PurgeAll (/ activeDoc) (vl-load-com) (if (setq activeDoc (vla-get-activedocument (vlax-get-acad-object))) (vla-purgeall activeDoc)) (princ)) ... Happy coding! Quote
BlackBox Posted November 5, 2010 Posted November 5, 2010 (edited) Even better: (defun c:PurgeLay () (command "._-purge" "_layers" "*" "_no")) Edited November 5, 2010 by BlackBox Typo Quote
ReMark Posted November 5, 2010 Posted November 5, 2010 Are there any other commands that do not display their associated windows or dialog boxes? Quote
jamescdow Posted November 5, 2010 Author Posted November 5, 2010 do i type this in to the command box. apologies for my ignorance on this matter Many thanks Quote
BlackBox Posted November 5, 2010 Posted November 5, 2010 Are there any other commands that do not display their associated windows or dialog boxes? Of course : (setvar 'filedia 1) Quote
BlackBox Posted November 5, 2010 Posted November 5, 2010 do i type this in to the command box. apologies for my ignorance on this matterMany thanks First, try setting the filedia system variable to 1, then use your normal command again... if that doesn't work, then we'll go there. Quote
rkent Posted November 5, 2010 Posted November 5, 2010 The layer manager will tell you which layers are empty by way of a gray box to the left of the name, sort by the status column, select all the empty layers, right click, delete. Quote
ReMark Posted November 5, 2010 Posted November 5, 2010 The layer manager will tell you which layers are empty by way of a gray box to the left of the name, sort by the status column, select all the empty layers, right click, delete. This guy just makes it look so easy. Wish I were that smart. Another great tip. Quote
BlackBox Posted November 5, 2010 Posted November 5, 2010 This guy just makes it look so easy. Wish I were that smart. Another great tip. I do jump to writing code, far too quickly, don't I. Quote
ReMark Posted November 5, 2010 Posted November 5, 2010 I do jump to writing code, far too quickly, don't I. Attributed to your big, kind heart, your lightening quick brain and nimble fingers. Quote
rkent Posted November 5, 2010 Posted November 5, 2010 This guy just makes it look so easy. Wish I were that smart. Another great tip. LOL Its the difference between a 'C' student (me) and an 'A' student (Renderman). This is in reference to a graduation commencement speach I heard years ago with the speaker alluding to the difference in how students think. http://preview.tinyurl.com/26yepu7 Quote
BlackBox Posted November 5, 2010 Posted November 5, 2010 Attributed to your big, kind heart, your lightening quick brain and nimble fingers. I would like to express my gratitude for your kind words, and confidence in my abilities... Especially because I've only been coding for less than a year, lmao (This is my inner-nerd speaking) ... I'm really giddy, because my *schnazzy* new PC is coming pre-loaded with Acad LDC 2009, and Acad C3D 2011, MS V8i, Visual Studio Express, ObjectARX SDK, MS V8i MDL SDK, and more! I cannot wait to jump into either C#.NET, or VB.NET! I love getting new Object Models. LOL Its the difference between a 'C' student (me) and an 'A' student (Renderman). This is in reference to a graduation commencement speach I heard years ago with the speaker alluding to the difference in how students think. http://preview.tinyurl.com/26yepu7 You're too kind, and incorrect. In high school I was a B student at best... in college I realized that was because I was bored. As I attended a Military College, I didn't have time to be bored. lmao Then I stepped my game up. The initial story was hilarious (I didn't take the time to read the whole thing, yet). Thanks for sharing! Quote
ReMark Posted November 5, 2010 Posted November 5, 2010 We each took a different journey to get to where we are at this point in time. That journey has shaped us differently too. For the better I believe. Strengths and weakness make us who we are. Collectively, as this forum truly demonstrates, we are formidable. Keep up the great work guys. You embody the heart and soul of CADTutor. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.