- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I posted this in the Civil 3D customization forums but no luck. This needs Civil 3D to work.
I created a lisp that makes curb offsets using the OFFSETFEATURE command, with elevation difference as the criteria. Everything works fine unless the criteria is set to something else other than difference. So the first thing I need to do is make sure that the criteria in the OFFSETFEATURE is set to elevation difference.
On the command line I am able to do this by going through the motions and escaping/canceling just after setting it to Distance. Trying to simulate this in lisp breaks the command.
Is there a way to read what the criteria is set to via a built in C3D variable rather than trying to invoke the command just to cancel it, and if not, is there a way to simulate canceling the command after setting it to "D" even if it is already set to Difference?
(defun c:SetToDistance () (setq UserSel (entsel "\n Select line to offset... ")) (setq OSSide (getpoint "\n Specify side to offset: ")) (command "OFFSETFEATURE" "1" UserSel OSSide "d") (command) )
Note that this snippet of code only works if the FEATUREOFFSET criteria is set to something other than Elevation Difference. If already set it breaks, but this is the setting I want to to set to every time.
Thanks for any help.
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
Solved! Go to Solution.