乐筑天下

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

[编程交流] Fields & Viewports

[复制链接]

145

主题

590

帖子

446

银币

中流砥柱

Rank: 25

铜币
725
发表于 2022-7-6 11:04:42 | 显示全部楼层 |阅读模式
I have a question relating to fields and viewports.  I am creating maps to be registered with the land registry council.  I need to show the coordinates of the extents of the viewport in model space on the sheet layout.  I have been unable to find anything in fields.  Does anyone know anyway I may be able to do it?
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:12:02 | 显示全部楼层
Perhaps use a formula field that uses the center/width/height properties of the viewport to determine the extents.
回复

使用道具 举报

4

主题

940

帖子

961

银币

初来乍到

Rank: 1

铜币
12
发表于 2022-7-6 11:19:27 | 显示全部楼层
Here's a workaround... kinda cumbersome
 
In Paperspace create points at the corners of the viewport.
Use the Chspace command to move the points to Modelspace.
In Modelspace create Fields for the points using the Position property.
Again use the Chspace command to move the fields to Paperspace.
回复

使用道具 举报

145

主题

590

帖子

446

银币

中流砥柱

Rank: 25

铜币
725
发表于 2022-7-6 11:24:29 | 显示全部楼层
Yes but I'm looking to get the coords at the extents of the viewport in model space not in paper space!!!
回复

使用道具 举报

4

主题

940

帖子

961

银币

初来乍到

Rank: 1

铜币
12
发表于 2022-7-6 11:34:28 | 显示全部楼层
Hence the use of the Chspace command
回复

使用道具 举报

145

主题

590

帖子

446

银币

中流砥柱

Rank: 25

铜币
725
发表于 2022-7-6 11:39:00 | 显示全部楼层
How does that work now.  I know about chspace but how does that help me?
回复

使用道具 举报

4

主题

940

帖子

961

银币

初来乍到

Rank: 1

铜币
12
发表于 2022-7-6 11:43:15 | 显示全部楼层
It'll give you the model space coordinates of the corners of the viewport.
Have you tried the procedure given in post #3?
回复

使用道具 举报

CJJ

1

主题

16

帖子

15

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 11:49:02 | 显示全部楼层
 
I've done this in the past, and then just do a LIST on the points to get the information I needed. Good idea using Fields and moving them back into paperspace, I never thought of that. Thanks!
回复

使用道具 举报

145

主题

590

帖子

446

银币

中流砥柱

Rank: 25

铜币
725
发表于 2022-7-6 11:55:18 | 显示全部楼层
Thanks for the suggestions guys.  I have done it the way setout in #3 but was hoping to make it a bit more automated.
Thanks anyway.
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 11:58:45 | 显示全部楼层
 
I was thinking the same thing, but how would you convert the coordinates from Paper to Model?
 
 
I always have an LWPolyline drawn in Model that is an exact replicate of my viewport. You could always use fields and extract XYZ information from something like that (or just have it place POINTS as Larry said). Granted, it would be garbage if the user moved the LWPolyline/POINT(s)/Viewport view.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 11:24 , Processed in 0.391199 second(s), 72 queries .

© 2020-2025 乐筑天下

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