乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 55|回复: 4

[编程交流] SWEEP-> MOde->SUrface

[复制链接]

171

主题

447

帖子

276

银币

中流砥柱

Rank: 25

铜币
860
发表于 2022-7-5 18:41:21 | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-5 19:00:19 | 显示全部楼层
The system variable is SURFACEMODELINGMODE.
 
Ignore this advice.  See post #4.
回复

使用道具 举报

171

主题

447

帖子

276

银币

中流砥柱

Rank: 25

铜币
860
发表于 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.
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 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")
)
回复

使用道具 举报

171

主题

447

帖子

276

银币

中流砥柱

Rank: 25

铜币
860
发表于 2022-7-5 19:46:26 | 显示全部楼层
(command "SWEEP" "MO" "SU")
Yes it works. Thanks for the advice.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-16 13:35 , Processed in 0.542696 second(s), 62 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表