wimal Posted August 27, 2015 Share Posted August 27, 2015 SWEEP-> MOde->SUrface In my code I need set SWEEP command to Surface mode. But I could not find any system variable to set this. Please can you show me how to write lisp code to set this. Quote Link to comment Share on other sites More sharing options...
ReMark Posted August 27, 2015 Share Posted August 27, 2015 (edited) The system variable is SURFACEMODELINGMODE. Ignore this advice. See post #4. Edited August 27, 2015 by ReMark Quote Link to comment Share on other sites More sharing options...
wimal Posted August 27, 2015 Author Share Posted August 27, 2015 The system variable is SURFACEMODELINGMODE. This information is found in your AutoCAD Help file. Press the F1 key to utilize this feature. Even the above system variable set to 1 or 0 it generate solid SWEEP. And even I set SWEEP-> MOde-> SUrface or SWEEP-> MOde-> SOlid it does not change SURFACEMODELINGMODE value. Quote Link to comment Share on other sites More sharing options...
ReMark Posted August 27, 2015 Share Posted August 27, 2015 (edited) Maybe I missed something in the Help file. As a matter of fact I did. The variable is used to produce a procedural surface (set to 0) or a NURBS surface (set to 1). Wouldn't a simple lisp routine that invokes the SWEEP command and sets the option MOde to SUrface suffice for what you are doing? Example: (defun c:sur () (command "SWEEP" "MO" "SU") ) Edited August 27, 2015 by ReMark Quote Link to comment Share on other sites More sharing options...
wimal Posted August 27, 2015 Author Share Posted August 27, 2015 (command "SWEEP" "MO" "SU") Yes it works. Thanks for the advice. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.