乐筑天下

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

[编程交流] 2d Steel Pipe, elbows returns

[复制链接]

11

主题

93

帖子

82

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
55
发表于 2022-7-5 18:20:06 | 显示全部楼层 |阅读模式
Finally achieved it thanks to ymg
 
Like usual load the lisp normally type pipe or pp to run layers are created automatically, a drop down menu for size and schedules are chosen op then selects the type needed to generate the pattern.
 
 
enjoy
 
r
Pipe V3.0.lsp
回复

使用道具 举报

rlx

21

主题

1505

帖子

1551

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
81
发表于 2022-7-5 18:47:33 | 显示全部楼层
 
is looking good but... missing a function called 'listpol' (list polyline [points] or something?). Never the less , could be usefull for a lot of piping guys (or girls)
 
gr. Rlx
回复

使用道具 举报

11

主题

93

帖子

82

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
55
发表于 2022-7-5 18:52:32 | 显示全部楼层
 
 
Feel free to modify it and post it back the better it is the better it will be for all of the members
 
r
回复

使用道具 举报

rlx

21

主题

1505

帖子

1551

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
81
发表于 2022-7-5 19:19:43 | 显示全部楼层
found a function called listpol here :  https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-help-for-bug/td-p/5029432
 
Piping is not really my area but I have some colleagues who are so maybe this will be of use to them
 
thanx for your share
 
gr. Rlx
回复

使用道具 举报

0

主题

301

帖子

301

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-5 19:21:47 | 显示全部楼层
rlx,
 
Here is function listpol:
 
  1. ;;                                                                            ;;; listpol     by ymg    (Simplified a Routine by Gile Chanteau               ;;;                                                                            ;;; Parameter:  en,  Entity Name or Object Name of Any Type of Polyline        ;;;                                                                            ;;; Returns:    List of Points in Current UCS                                  ;;;                                                                             ;; Notes:      On Closed Polyline the Last Vertex is Same as First)           ;;;                                                                            ;(defun listpol (en / i l)  (repeat (setq i (fix (1+ (vlax-curve-getEndParam en))))     (setq l (cons (trans (vlax-curve-getPointAtParam en (setq i (1- i))) 0 1) l))  ))
 
Included listpol the following attachment.
Also a few changes in delvertex (A little bit more concise)
 
To be complete would need to make sure that it is UCS compliant and maybe a small
modification to straight pipe input to remove the requirement of orthomode.
 
ymg
Pipe V3.0.lsp
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-12 19:48 , Processed in 0.526052 second(s), 62 queries .

© 2020-2025 乐筑天下

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