明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1099|回复: 4

[提问] 请问如何用visual lisp实现loft(放样)的功能?

[复制链接]
发表于 2015-7-2 23:03 | 显示全部楼层 |阅读模式
本帖最后由 etoxp 于 2015-7-3 08:56 编辑

不想用(command "loft" .....的方式,谢谢!!!!

loft是cad2007以后命令。
我想用来做简单的三维的地形。思路:将等高线进行三角划分,用每个小三角形生成顶面按一定方向、角度倾斜的三棱柱,最后把生成的所有三棱柱union。各位有没有更好的实现方式?我知道civil 3d可以做三维地形,但也想试试在cad中生成的方法。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2015-7-3 08:05 | 显示全部楼层
loft是哪个版本开始才有的命令,楼主是不是先给大家介绍一下用法、作用、使用的妙处?

点评

经查2008开始的  发表于 2015-7-4 14:54
发表于 2015-7-3 13:20 | 显示全部楼层
You can use ActiveX to query and edit LoftedSurface entities in AutoCAD drawings. You cannot create a LoftedSurface object with ActiveX. A lofted surface is created in AutoCAD by drawing a solid or surface through a set of two or more cross-section curves. The cross sections define the profile (shape) of the resulting solid or surface. Cross sections (generally, curves or lines) can be open (for example, an arc) or closed (for example, a circle).
发表于 2015-7-3 14:32 | 显示全部楼层
  1. (defun c:tt ()
  2.   (setq ss (ssget))
  3.   (command "loft"
  4.            (ssname ss 0)
  5.            (ssname ss 1)
  6.            ""
  7.            "c"
  8.   )
  9. )
 楼主| 发表于 2015-7-4 11:36 | 显示全部楼层
鱼与熊掌 发表于 2015-7-3 14:32

谢谢,可不可以不用command来实现呢?用vla-.....函数,不知道有没有这样的函数

点评

三楼已经不是说了不可以么!  发表于 2015-7-4 12:01
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-3-29 17:37 , Processed in 0.218326 second(s), 36 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表