alanjt Posted November 26, 2009 Posted November 26, 2009 Allows the user to select an object (or use current layer) to filter a group of similar layer names and display list for selection, to set current layer. I found it quite useful, so I thought I'd share. Comments are always welcome and appreciated. Quote
alanjt Posted November 26, 2009 Author Posted November 26, 2009 Thanks for sharing Alan...:-) I hope someone else can find it as useful as I have. Quote
sachindkini Posted November 26, 2009 Posted November 26, 2009 Allows the user to select an object (or use current layer) to filter a group of similar layer names and display list for selection, to set current layer. I found it quite useful, so I thought I'd share. Comments are always welcome and appreciated. [ATTACH]15879[/ATTACH] dear sir, thx for sharing if possible add filter group Quote
Lee Mac Posted November 26, 2009 Posted November 26, 2009 Hi Alan, Nice program, I should imagine it would come in handy Just been looking at the code, and noticed a few things (not trying to nit-pick here)... I have commented some of the DCL section of your code.. just a few minor comments, but thought you might benefit from it. Also, I looked into getting the dialog to appear next to the cursor - it can be done, but the ACAD coordinate returned by entsel needs to be converted to a "screen coordinate", (x y) (where x and y are both integer). And I didn't have the time to work on it, but perhaps this will give you some inspiration Nice work though, Lee LMS - (LMAC).lsp Quote
alanjt Posted November 26, 2009 Author Posted November 26, 2009 Hi Alan, Nice program, I should imagine it would come in handy Just been looking at the code, and noticed a few things (not trying to nit-pick here)... I have commented some of the DCL section of your code.. just a few minor comments, but thought you might benefit from it. Also, I looked into getting the dialog to appear next to the cursor - it can be done, but the ACAD coordinate returned by entsel needs to be converted to a "screen coordinate", (x y) (where x and y are both integer). And I didn't have the time to work on it, but perhaps this will give you some inspiration Nice work though, Lee Thanks Lee. I've never spent much time on DCL, so, as you can see, I'm complete crap. I'll be digging through this over the weekend. I need to get on afralisp and do a little reading. Quote
Lee Mac Posted November 26, 2009 Posted November 26, 2009 Thanks Lee. I've never spent much time on DCL, so, as you can see, I'm complete crap. I'll be digging through this over the weekend. I need to get on afralisp and do a little reading. No worries Alan, AfraLISP is OK for some of the basic coding, but I've learnt a lot more from examples posted by MP or CAB over at theSwamp. :wink: Quote
alanjt Posted November 26, 2009 Author Posted November 26, 2009 dear sir, thx for sharing if possible add filter group You're quite welcome. What do you mean by 'filter group'? The filtering is based on the selected object's layer. Example? Quote
alanjt Posted November 26, 2009 Author Posted November 26, 2009 No worries Alan, AfraLISP is OK for some of the basic coding, but I've learnt a lot more from examples posted by MP or CAB over at theSwamp. :wink: That's true, it's always best to dig through the experts work. I was going to learn DCL, but I got caught up learning vb.net for Civil 3D. It's still quite useful and I need to get off my lazy butt and learn it. Quote
Lee Mac Posted November 26, 2009 Posted November 26, 2009 I wasn't sure whether to move into OpenDCL... I got the Editor, and just messing around with it... but it didn't seem like coding, just using a "wizard" to create the dialog, - that said, I didn't delve into it too much. Quote
alanjt Posted November 26, 2009 Author Posted November 26, 2009 I wasn't sure whether to move into OpenDCL... I got the Editor, and just messing around with it... but it didn't seem like coding, just using a "wizard" to create the dialog, - that said, I didn't delve into it too much. I played with odcl, made a few dialogs, but didn't stick with it. It does work with a wizard, but once the basics are created, the user still has to do a bit of coding within each created routine. I have one I created for work that allows us to import layers from our template file (odbx). That's about the only thing of merit I did with it. Quote
alanjt Posted November 27, 2009 Author Posted November 27, 2009 Hi Alan, Nice program, I should imagine it would come in handy Just been looking at the code, and noticed a few things (not trying to nit-pick here)... I have commented some of the DCL section of your code.. just a few minor comments, but thought you might benefit from it. Also, I looked into getting the dialog to appear next to the cursor - it can be done, but the ACAD coordinate returned by entsel needs to be converted to a "screen coordinate", (x y) (where x and y are both integer). And I didn't have the time to work on it, but perhaps this will give you some inspiration Nice work though, Lee I had a chance to read through this. So you just added the check to make sure the dcl file exists, correct? I just wanted to make sure I didn't miss something. I'll be playing with the cursor location this weekend, Tim posted some info on it at theswamp. Quote
Lee Mac Posted November 27, 2009 Posted November 27, 2009 I had a chance to read through this. So you just added the check to make sure the dcl file exists, correct? I just wanted to make sure I didn't miss something. I'll be playing with the cursor location this weekend, Tim posted some info on it at theswamp. Yeah, I marked in comments where the modification starts and ends - its just the COND statement in the DCL. I had a quick look over at theSwamp for info on the screen position, but couldn't find something immediately, will have another look. Lee 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.