wimal 发表于 2022-7-5 18:41:21

SWEEP-> MOde->SUrface

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.

ReMark 发表于 2022-7-5 19:00:19

The system variable is SURFACEMODELINGMODE.
 
Ignore this advice.See post #4.

wimal 发表于 2022-7-5 19:11:39

 
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.

ReMark 发表于 2022-7-5 19:28:02

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")
)

wimal 发表于 2022-7-5 19:46:26

(command "SWEEP" "MO" "SU")
Yes it works. Thanks for the advice.
页: [1]
查看完整版本: SWEEP-> MOde->SUrface