乐筑天下

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

[编程交流] x,y,z extraction by selecting

[复制链接]

8

主题

25

帖子

17

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-5 23:42:04 | 显示全部楼层 |阅读模式
Hii all i have got a lisp file from internet which will extract x,y,z coordinates by selecting all objects...
 
but i am not able to select objects.. when i am selecting it says "Select objects: 0 found, 0 total"
 
please help:(
 
  1. (defun C:WPOINT ( / ss fd file)(cond( (not (setq ss (ssget '((0 . "POINT,INSERT"))))))( (not (setq file (getfiled "Export Points" "" "csv" 1))))( (not (setq fd (open file "w")))(alert "Unable to open file for output"))(t (repeat (setq i (sslength ss))(write-point(ssname ss (setq i (1- i)))fd6))(close fd)))(princ))
回复

使用道具 举报

4

主题

68

帖子

69

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 23:51:09 | 显示全部楼层
Hi,
 
only Points and Inserts (Blockreferences) will selected:
 
  1. ( (not (setq ss (ssget '((0 . "[color=blue]POINT,INSERT[/color]"))))))
Are you sure there are those objects in your drawing?
 
regards
Wolfgang
回复

使用道具 举报

8

主题

25

帖子

17

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-5 23:56:24 | 显示全部楼层
61072-FR0.dxf
 
please find the drawing...
 
i think only lines are there.. please help
 
regards,
nithin
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 00:00:51 | 显示全部楼层
Along being limited to points and block instances (as already noted), your code is calling a WRITE-POINT function, whose definition seems to don't be included.
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 00:03:57 | 显示全部楼层
To extract the coordinates of your lines may want to check the built-in DATAEXTRACTION command.
回复

使用道具 举报

4

主题

2143

帖子

2197

银币

限制会员

铜币
-24
发表于 2022-7-6 00:09:22 | 显示全部楼层
nithink55,
 
 
Please read the Code posting guidelines and edit your original post to include the Code in Code Tags, not Quote Tags.
回复

使用道具 举报

4

主题

68

帖子

69

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-6 00:14:05 | 显示全部楼层
Look her:
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Extract-Point-Data-CALLING-ALL-LISP-GURUS/td-p/885377
回复

使用道具 举报

8

主题

25

帖子

17

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 00:20:15 | 显示全部楼层
Is there any lisp code to extract x,y,z points of selected object ( not by selecting each points of objects)...
回复

使用道具 举报

8

主题

25

帖子

17

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 00:24:07 | 显示全部楼层
Yes Mr. wkplan i have taken code from that site...but problem comes when selecting objects...... "Select objects: 0 found, 0 total"
回复

使用道具 举报

8

主题

25

帖子

17

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 00:27:12 | 显示全部楼层
  1. (defun C:WPOINT ( / ss fd file)(cond( (not (setq ss (ssget '((0 . "POINT,INSERT"))))))( (not (setq file (getfiled "Export Points" "" "csv" 1))))( (not (setq fd (open file "w")))(alert "Unable to open file for output"))(t (repeat (setq i (sslength ss))(write-point(ssname ss (setq i (1- i)))fd6))(close fd)))(princ))
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-11 00:35 , Processed in 0.472527 second(s), 72 queries .

© 2020-2025 乐筑天下

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