Display full version of the post: Zoom and modification of entity in Layer one by on

Andy_bhatt
07.10.2009, 09:31
hi,
 
Looking for lisp that will zoom to each entity on particuler layer one by one and if required, can do modification to each entity ( Move, rotate scale ) simultaneously.
 
Process
1. Ask to select layer from the dwg file or layer can be saved in notepad in save in c:\
2. it zoom extent to each entity on that particular layer one by one and if required can do modification simultaneously.
3. After doing modification, tool should ask to press "N" for next entity in that particular layer and again do centain modification then if we press "N" it should move to next entity.
4. Once the entity is selected OR zoomed it color need to be changed, so that we can cross check.
 
regards
Andy
 

Andy_bhatt
13.10.2009, 08:12
Hello,
 
I idn't find any response for above requirement. Is that too tough to create a lisp for the above issue.

ivpantera
13.10.2009, 22:34
Hello, I am new here and I need to find the best way to made a good relation between GRID and SNAP. Some time I have a drawing with dimensions like 2.566, 1.391,... and it is very dificult to draw with this numbers.
 
Thanks, I. Viera

CarlB
18.10.2009, 06:27
Yes it would be difficult to create that lisp routine.  Have you tried to write it, how far did you get?It may not be too hard to zoom to each object.  But if user needs to edit it routine would have to stop.  it could be resumed with a certain keystroke though.  When would it's color need to change? When you edit an object, would you add another object, so routine would need to zoom to what you added?

Andy_bhatt
19.10.2009, 06:27
Hi,
 
 What you are saying is right. It need some key stroke to resume the command and to make modification.
 
  I have the lisp. But it only zoom to each entity in particular layer . Need to modify that to add Key stroke to edit and resume with zoom extent to each entity and also change color when it is zoomed.
 
For that I need assistance.
 
Looking forward a positive response.
 
Regards

CarlB
19.10.2009, 21:04
If you post the routine we could give specific suggestions. So here's some general ideas:
 
-You'll need to set some flag to determine if routine is started in "initial" or "resume" mode (whether all items in a layerer have been zoomed). If in "resum" mode it will have kept track of where it was last in object zooming.
-add an option to "edit" once zoomed, which will essentially just exit the routine to allow you to edit.
-would be easy to highlight a zoomed object, with a single line of code, (redraw EntityName 3) then unhighlight it wheen zoom to next entity with (redraw  EntityName 3).
Almost as easily is to change its color, then change back, but you may want to test what existing color is to make sure you use a different color...
 
HTH!