Jump to content

Recommended Posts

Posted

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.

 

LayerMatchSet.gif

Posted
Thanks for sharing Alan...:-)

:)

I hope someone else can find it as useful as I have.

Posted
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

Posted

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

Posted
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.:oops: I'll be digging through this over the weekend. I need to get on afralisp and do a little reading.

Posted
Thanks Lee. :)

I've never spent much time on DCL, so, as you can see, I'm complete crap.:oops: 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:

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

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

Posted

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. o:)

Posted
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. o:)

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.

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

Posted
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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...