Jump to content

Lsp to create groups by layer, with layer name as group name


Oni

Recommended Posts

Morning All,

 

 

Habitual LT user here - so no lsp before. Been given 2 month access to a 2014 license to get this job out of the door.

 

 

I'm trying to create a lsp that grabs the content of a drawing, selects objects by layer and groups them using the layer name as the group name. I've found a couple of lsps that do some of what I want so I've been pulling them to bits and trying to create what I need, but I'm stuck.

 

 

I've managed to get to a point where I've got a list of the layers and start the group command but I cant get the group names to work.

 

 

I'm not demanding a full lsp, but would very much appreciate some guidance on how to approach this one. :)

 

 

I've gone through the tutorials on Afralisp and some of the other threads but I just don't seem to be making any progress.

 

 

There's 41 layers in most of these drawings, I don't really fancy doing it manually... :(

 

 

PS I cant access any of Autodesks online help as apparently our IT guys have classified it as an "unsafe site".

Link to comment
Share on other sites

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