CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.097.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedZoom and modification of entity in Layer one by on

 Post Reply Post Reply
Author
Andy_bhatt View Drop Down
Newbie
Newbie


Joined: 05.Sep.2009
Location: United States
Status: Offline
Points: 10
Direct Link To This Post Topic: Zoom and modification of entity in Layer one by on
    Posted: 07.Oct.2009 at 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
 
Back to Top
Andy_bhatt View Drop Down
Newbie
Newbie


Joined: 05.Sep.2009
Location: United States
Status: Offline
Points: 10
Direct Link To This Post Posted: 13.Oct.2009 at 08:12
Hello,
 
I idn't find any response for above requirement. Is that too tough to create a lisp for the above issue.
Back to Top
ivpantera View Drop Down
Newbie
Newbie


Joined: 13.Oct.2009
Location: United States
Status: Offline
Points: 3
Direct Link To This Post Posted: 13.Oct.2009 at 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
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 18.Oct.2009 at 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?

Back to Top
Andy_bhatt View Drop Down
Newbie
Newbie


Joined: 05.Sep.2009
Location: United States
Status: Offline
Points: 10
Direct Link To This Post Posted: 19.Oct.2009 at 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
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 19.Oct.2009 at 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!
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,211 seconds.