TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MSTG007 on May 07, 2015, 05:28:53 PM
-
This is just an idea. Lets say I have several lisp routines that do different things; but I would want the user to have no interaction with selecting objects / or windowing areas to select. How could that be possible?
For Example
Delete Objects within a window area (similar to erase objects within a polyline).
Make a block change all its entities to Layer 0 and bylayer (Typically the user would then go pick the object). Could that pick be pre-defined?
Any advice would be awesome! Thanks again.
-
not that I know anything...
how would you 'always' know what area the data to be change would be at in a drawing?
-
Delete Objects within a window area (similar to erase objects within a polyline).
The following simple function will erase all objects within a window selection defined by the two supplied points:
(defun delwin
( pt1 pt2
/ app idx pt3 sel
) pt1 pt3
)
)
)
)
For example, to delete all objects within the window spanning from '(1 2) to '(3 4):
My ssget function reference (http://lee-mac.com/ssget.html) may help you in this regard.
Make a block change all its entities to Layer 0 and bylayer (Typically the user would then go pick the object). Could that pick be pre-defined?
For this task no selection is required since the modifications would be performed on the objects contained within the block definition, not the block reference inserted in the drawing; such changes would then be reflected across all inserted block references following a regen.
-
Off the wall question. What do you do when you when using the ssx and by block name command filter. Then say erase previous but the block still resides or not deleted.