乐筑天下

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

[编程交流] 动态生成。DCL fil公司

[复制链接]

1

主题

9

帖子

8

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 20:33:51 | 显示全部楼层
I have yet to find a way to use a slider to change the contents of a dialog box, but that is EXACTLY what I want to do.  If anyone here knows how to do that, it would be great to hear.  Thanks!
回复

使用道具 举报

7

主题

143

帖子

136

银币

初来乍到

Rank: 1

铜币
36
发表于 2022-7-5 20:38:16 | 显示全部楼层
I don't want to go out on a limb and say it's not possible because I've seen some pretty slick programming here in the forum, but I'm 99% sure it's not possible. Maybe you can regroup your info into a list or some other form that allows it to be displayed but also be edited. I think you have tried to make the tiles act as data instead of them displaying your data.
 
Could you explain a bit more about the interaction between the prints and the layers that are listed below the prints?
This would help to think about an alternative way of displaying everything.
回复

使用道具 举报

1

主题

9

帖子

8

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 20:40:23 | 显示全部楼层
The layers essentially are the prints.  There are a whole host of layers that are on for every print (Architecture, Annotation, Hang Schedule, etc.).  Each print turns on the scenery for a different layer (or multiple scenes depending on the nature of the print).  So in the example below, you get a plan for 11scene, a section for 11scene, a plan for 12 scene, and you get scene 21 and 31 on the same printout so that gets two layer names.  The dropdown menus fill themselves with all of the layers named "*-Scenery_Layout".
 
205835zfc00em4111e0jl4.jpg
 
Does that make sense?
回复

使用道具 举报

7

主题

143

帖子

136

银币

初来乍到

Rank: 1

铜币
36
发表于 2022-7-5 20:42:32 | 显示全部楼层
I've reread your first post as well to get a good concept of what you are trying to achive. What I've understood is that you would like to create a dialog to help ease the creation of print sheets. The list should be visible on the dialog for those creating the list. I would say the dialog should create an association list of information and be shown on the dialog. This association list could be listed like this (pseudo code):
 
  1. (SETQ PRINT-LIST[indent]     '([/indent][indent][indent]         (PRINT-SCENE (ADDITIONAL-SCENE) INT-PRINT-STATUS)[/indent][/indent][indent][indent]         (PRINT-SCENE (ADDITIONAL-SCENE ADDITIONAL-SCENE) INT-PRINT-STATUS)[/indent][/indent][indent][indent]         (PRINT-SCENE () INT-PRINT-STATUS)[/indent][/indent][indent][indent]         (PRINT-SCENE () INT-PRINT-STATUS)[/indent][/indent][indent]     )[/indent])
PRINT-LIST is the name of your print list. (Which you can name something else to fit)
PRINT-SCENE is the atom representing the main print sheet.
ADDITIONAL-SCENE is a list of additional layers to the scene. This list could be empty (NIL) or contain as many additional layers as needed.
INT-PRINT-STATUS is the atom from the type of print. Either Plan or Section. Data entered here is either 0 or 1 and can't be NIL.
 
As far as the dialog box is concerned, I would show a text box showing the currect state of the print list. Adding, deleting or rearranging sheets can be done with buttons on the dialog like you have now. The association list should be the one piece of information which is to be used for displaying and printing of the sheets. User interaction with the dialog should rewrite the list accordingly. With this list you can extract the information quite easily.
回复

使用道具 举报

1

主题

9

帖子

8

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 20:46:09 | 显示全部楼层
I think this idea could work, and I've already got the code set up to write association lists for each print.
 
In this situation, do you have any thoughts about how to modify the contents of the list?  Should that be a second dialog box that opens via another button?
回复

使用道具 举报

7

主题

143

帖子

136

银币

初来乍到

Rank: 1

铜币
36
发表于 2022-7-5 20:50:20 | 显示全部楼层
I think you could get away with all the functionality on one dialog. The actual print list displayed at the bottom and buttons for adding, deleting and rearranging at the top.
回复

使用道具 举报

7

主题

143

帖子

136

银币

初来乍到

Rank: 1

铜币
36
发表于 2022-7-5 20:52:20 | 显示全部楼层
Something maybe like this:
205837yolzen2t23x2opj7.jpg
回复

使用道具 举报

1

主题

9

帖子

8

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 20:55:55 | 显示全部楼层
Yeah, I think I could make that work.  Thanks so much for your help!
回复

使用道具 举报

7

主题

143

帖子

136

银币

初来乍到

Rank: 1

铜币
36
发表于 2022-7-5 21:00:01 | 显示全部楼层
Glad to help. When making dialogs you always have to think of the person using it and if it makes sense. Plus you don't want to program yourself into a dead end. I feel using an association list for the data gives you a lot of possibilities to reuse the information. You can write little tools to populate a list or to extract info and reformat into a text to create a report. Endless possibilities...
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-12 01:01 , Processed in 0.842358 second(s), 70 queries .

© 2020-2025 乐筑天下

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