(defun c:newoffset ()
(command "_.offset" pause pause pause ??????)
(setq newogg (??????)
[code that will handle the selection set 'newogg']
Here is a solution:Code - Auto/Visual Lisp: [Select]
It works very well but it has a small problem in AutoCAD, it does not display the preview of the result :oops:In BricsCAD V16 there is a preview. I don't know why AutoCAD behaves in this manner or how to solve it.
Can you also solve this? :roll:
I realized just now of a more serious problem.If you want to validate the source entities, something like the code below will work. But it does not expose all options of the OFFSET command.
With your code I can control the user-selected object only after the command has been completed.
In my first post I explained the problem badly.
I have to check that each user-selected object is confirmed to my needs.
A practical example is the OFFSET command that always works, except when the user selects an object LINE.
can you do this?
If you want to validate the source entities, something like the code below will work. But it does not expose all options of the OFFSET command.