Please wait a minute...
Chinese Journal of Engineering Design  2005, Vol. 12 Issue (4): 252-256    DOI:
    
Drawing layout optimization algorithmin in engineering CAD
 DU  Yan-Chen1, ZHOU  Zheng-Mao2
1. College of Medical Instrumentation, Shanghai University of Science and Technology,
Shanghai 200093, China; 2. Civil Infomatics Engineering Research Center under Ministry of Education, Tongji University, Shanghai 200092, China
Download: HTML     PDF(437KB)
Export: BibTeX | EndNote (RIS)      

Abstract  Drawing layout will directly influence drawing quality in automatic CAD drawing system. Through using expression, relation pairs and relation groups respectively to describe location relation of drawing blocks, alignment relation of drawing blocks and zoom relation of drawing blocks, an analysis model of drawing layout is presented. This model also takes variation of drawing layout area and relation between title bar and other drawing blocks into account. Optimization procedure is divided into two steps: firstly, an optimum combination, which satisfies all restrictions and could make the useable area of drawing blocks as large as possible is obtained; secondly, spaces among blocks could be optimized in both height and width directions to make distribution of drawing blocks on drawing as even as possible. On the precondition that each drawing block has three or less optional ratios, optimum layout effect is achieved in acceptable time. Layout test indicates that this algorithm is reliable, effective and its result is reasonable and could fulfill requirements of commercial applications.

Key wordsdrawing layout      expression      optimization algorithm     
Published: 28 August 2005
Cite this article:

DU Yan-Chen, ZHOU Zheng-Mao. Drawing layout optimization algorithmin in engineering CAD. Chinese Journal of Engineering Design, 2005, 12(4): 252-256.

URL:

https://www.zjujournals.com/gcsjxb/     OR     https://www.zjujournals.com/gcsjxb/Y2005/V12/I4/252


工程CAD中的排图优化算法

图纸中图块的排版问题直接影响到CAD自动出图系统的出图效果。通过使用表达式描述图块的位置关系,使用关系对表达图块的对齐关系,使用关系组表达图块的缩放关系,建立了分析排图问题的模型。该模型同时考虑了图框大小的变化及标题栏与其他图块之间位置关系的变化。优化过程分为两步,先求出一个最优组合,使得各图块占用可用区域的面积最大,同时要满足各种约束关系;接下来优化高度和宽度两个方向上的图块间距,使得图块在图面上的分布尽可能均匀。在每个图块不超过3个可选比例的前提下,实现在可接受的时间范围内排图效果的最优。实验例证表明,该算法是可靠、有效率的,结果是合理的,能够满足商品化软件的要求。

关键词: 排图,  表达式,  优化算法 
[1] Yumin HE,Ying HAN,Jing ZHOU. Research on adaptive sliding mode control of tower crane based on improved fruit fly optimization algorithm[J]. Chinese Journal of Engineering Design, 2023, 30(3): 271-280.
[2] NI Zi-jian, LI Wen-qiang, TANG Zhong. Ontology semantic mining and functional semantic retrieval method based on network representation learning[J]. Chinese Journal of Engineering Design, 2021, 28(5): 539-547.
[3] CHENG Bin, JING Bing-xue. Process route optimization based on bacteria foraging and ant colony algorithm[J]. Chinese Journal of Engineering Design, 2020, 27(5): 600-607.
[4] SUN Yue-hai, TANG Er-xing. Optimal design of basic parameters of spiral bevel gears[J]. Chinese Journal of Engineering Design, 2020, 27(5): 616-624.
[5] ZHAO Dong-bo, YAO Ling-ling, YUAN Kun-kun, LU Jin-gui. Multi-objective optimization for four-bar mechanism of hydraulic support based on particle swarm optimization algorithm[J]. Chinese Journal of Engineering Design, 2017, 24(4): 433-439.
[6] HUANG Xiao-qian, WANG Feng, TAN Yang-hong, WANG Rui, SHAO Jing-ke, CHEN Chun. Coordinated scheduling of electric vehicles and renewable generation considering vehicle-to-grid mode[J]. Chinese Journal of Engineering Design, 2016, 23(1): 67-73.
[7] LI Fang, LING Dao-Sheng. Survey of the developing in engineering structural optimization design[J]. Chinese Journal of Engineering Design, 2002, 9(5): 229-235.