yrnomad Posted June 26, 2015 Share Posted June 26, 2015 I'm looking for a faster way to pick an item, and move everything on that item's layer. I've got a lot of civil plans that I want to move information we don't currently need off to the side of the drawing. (I may want it back in the future so I don't want to use LAYDEL). So the intent is to grab, and move, so I can get through the drawings quickly. Something simpler than quick select, kind of like a combo of LAYISO and MOVE. thanks for the suggestion. Quote Link to comment Share on other sites More sharing options...
Cad64 Posted June 26, 2015 Share Posted June 26, 2015 Why don't you just use the LAYFRZ command and freeze the layers you don't want to see? Quote Link to comment Share on other sites More sharing options...
yrnomad Posted June 26, 2015 Author Share Posted June 26, 2015 Basically it's the Utility company rules. Our drawings somehow get integrated in to their GIS system, so I need to clear out anything not used. I had been freezing stuff and then blocking off what remained but sometimes the guy I work for like to have what was there before available to go back to before it gets too far along. So, I take the civil drawing, and isolate the items we will need to show on our subdivision power sheets, then convert the civil layer names and entities to fit in the utilities layer standard. There is a guy here that has been doing this for years, and I think there has to be a faster way to fit brand X drawings into Brand Z's CAD standard. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 27, 2015 Share Posted June 27, 2015 (edited) You can simply select items and move with a lisp, need a bit more info like where to move to etc. ; Move 2 crude example (defun c:M2 ( / ss) (setq obj (vlax-ename->vla-object (car (entsel "pick object to get layer to move")))) ; you would do pick object here to get layer name (setq layname (vla-get-layer obj)) ; get the layer name (setq ss (ssget "X" (list (cons 8 layname)))) ; make a selection set (command "move" ss "" (list 0 0 0) (list 20000 0 0)) ; change this to suit or do a getint for a distance. ) Edited June 28, 2015 by BIGAL Quote Link to comment Share on other sites More sharing options...
yrnomad Posted June 27, 2015 Author Share Posted June 27, 2015 sounds like what I'm looking for, I copied your text off to a txt file and renamed it MoveLayer.lsp, loaded it, but I'm getting an unknown command. Command: APPLOAD MoveLayer.lsp successfully loaded. MoveLayer.lsp successfully loaded. Command: Command: Command: Command: M2 move Select objects: Command: M2 Unknown command "M2". Press F1 for help. Quote Link to comment Share on other sites More sharing options...
RobDraw Posted June 27, 2015 Share Posted June 27, 2015 Saving something that you may need later is better done to a separate file, especially if you work in a collaborative environment. Sooner or later putting stuff off to the side "just in case" gets out of hand and you end up with a bunch of unnecessary stuff in the file. So much so, that you can't tell what is valid and what is old. Quote Link to comment Share on other sites More sharing options...
yrnomad Posted June 27, 2015 Author Share Posted June 27, 2015 For the most part I agree with you. This process seems to be a special case, and I'm just trying to streamline his cleaning process. His steps at this point have to clean up this file, then moving things over to the side he thinks he won't need. Save, then SaveAs to a new file and delete the "garbage" and use that new file as his base. So he is using the first file as an in-process cleaning backup. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 28, 2015 Share Posted June 28, 2015 Updated my code post to allow pick a object to get layer. See above. Quote Link to comment Share on other sites More sharing options...
yrnomad Posted July 1, 2015 Author Share Posted July 1, 2015 Thanks BigAl I just got back to this pile of Civils and tried it out. That will be great for quick and dirty work! Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 2, 2015 Share Posted July 2, 2015 No worries simple task Quote Link to comment Share on other sites More sharing options...
MillerMG Posted July 7, 2015 Share Posted July 7, 2015 Have you selected what you want and tried a right-click, select similar? Then just run a move command Quote Link to comment Share on other sites More sharing options...
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.