Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

scot-65
en respuesta a: MRummler

Without trying your utility:
(setq ss1 (ssget pt1)
will become a selection set.
"ss1" is not needed as shown below.

Offset expects a point selection and not a object [for your case it is a member of a selection set].
Try selecting the newly created object using polar:
(setq pt1 (polar pt1 an1 (/ (distance pt1 pt2) 2.0)))

Now it's ready:
(command-s ".Offset" nm1 pt1 pt3 "")

Other items to consider is to suppress OSMODE. Once the user has input the values,
add 16384 to OSMODE before invoking commands and subtract when finished.
You did not check if all user inputs are valid before invoking the commands.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.