乐筑天下

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

[编程交流] Select polyline - Return list

[复制链接]

4

主题

17

帖子

13

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 22:54:05 | 显示全部楼层 |阅读模式
I'm working on a job where I have to extract co-ordinate data from 2D polylines.
 
 
I need to extract the co-ordinate information for each separate element of the polyline ( lines and radius's )
 
 
If its a line I need the start and end co-ordinates ( x & y )
If its a radius I need the start and end co-ordinates and the radius centre co-ordinates (x & y )
 
 
So I would like to run a command, it asks to select a polyline and then it returns a list / copies to the clipboard a list of co-ordinates. Each element on a separate line.
 
 
For example if the polyline consisted of a 2 lines and a radius connecting them it would return
  1. 0,0 0,9010,100 10,90, 0,90  10,100 100,100
 
 
the radius coordinates are start, centre, end ( normal autocad way )
 
 
Can anyone help ?
 
 
Thanks
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 23:04:30 | 显示全部楼层
My Polyline Information program should help you obtain the information that you require.
 
Lee
回复

使用道具 举报

4

主题

17

帖子

13

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 23:10:52 | 显示全部楼层
Lee, that's fantastic
 
 
Many thanks its indeed what I need.
 
 
Thanks Again
回复

使用道具 举报

4

主题

17

帖子

13

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 23:19:21 | 显示全部楼层
Lee, I think I've run into a small problem.
 
 
The polyline I'm using a is a closed polyline, it comprises of 9 radii and 9 lines.
 
 
The text file is only outputting 8 Radii and 9 lines
 
 
Any ideas ?
 
 
 
 
I had a play with other shapes, it seems to be missing off the last element ( line or rad ) hope you can offer a solution
 
 
 
Thanks
Scott
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 23:28:31 | 显示全部楼层
 
You're absolutely right Scott, thank you for spotting this bug with the program - given that the program is almost two years old, I'm surprised this hasn't been found before!
 
I'll look to implement a fix for the program as soon as possible.
 
Lee
回复

使用道具 举报

4

主题

17

帖子

13

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 23:36:33 | 显示全部楼层
Thanks Lee
 
 
I would greatly appreciate a fix, this is a most useful program for my daily 'choirs'.
 
 
Scott
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 23:40:48 | 显示全部楼层
 
I didn't realise you sang every day...!
 
Joking aside, I have now updated this program to version 1.2 to hopefully fix the problem with closed polylines. The new version can be downloaded from my site here (you may need to refresh the page if it has been viewed recently).
 
I'm glad you find the program useful!
 
Lee
回复

使用道具 举报

4

主题

17

帖子

13

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 23:48:17 | 显示全部楼层
Thanks Lee
 
 
yeah my singing is mostly composed on computer related insults
 
 
I should spend more time proof reading my typing's.
 
 
Enjoy your weekend
 
 
Scott
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 23:55:16 | 显示全部楼层
You're welcome Scott - enjoy your weekend also
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-11 03:02 , Processed in 0.510922 second(s), 70 queries .

© 2020-2025 乐筑天下

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