EaBIM

标题: [用户交互] 关键字设置 [打印本页]

作者: 萧闫子    时间: 2014-1-8 16:36
标题: [用户交互] 关键字设置
This post extends the polyline-creation jig shown in the previous entry to support the use of keywords both for arc segments and for undo.
A few notes:
I removed the use of a separate vertex list, as it proved to be less necessary than needed
This implementation supports Undo, and the toggling between Line segment and Arc segment entry
Arc segments have a fixed bulge of 1.0, which is actually quite useful if drawing a cloud, but not really useful for much else. Generally the bulge should be adjusted according to the position of the cursor relative to the previous point, which may be something I attempt in a future post
I've also streamlined some of the other parts of code (such as using the basepoint in the jig - which we don't actually need, as we allow the polyline to draw itself)
The code has become quite a bit more complex, and could probably do with some additional performance tuning, but it should allow you to get the idea of what can be done (and one way of approaching it). I should also say that - and this holds true for any of the code samples posted in this blog - it should be thoroughly tested before being integrated into your own application. Hopefully that goes without saying...
Here's the C# code:




作者: 悠悠筱荷    时间: 2014-3-10 13:27
顶起来…………
作者: 严英华    时间: 2014-3-11 11:06
谢谢BIM大神…
作者: 龙龙..!    时间: 2014-3-11 11:09
顶起来…………
作者: JHXT杰西卡    时间: 2014-3-11 11:18
楼主辛苦……
作者: dglei88    时间: 2014-3-14 11:19
顶!!!!!!!!!!
作者: audigy    时间: 2014-3-14 11:23
(*^__^*) 嘻嘻……
作者: 影馨    时间: 2014-3-14 11:28
顶!!!!!!!!!!!!!!!!!!!!!!!!!
作者: 拉登    时间: 2014-3-14 11:34
路过!!! 帮顶……
作者: xy666    时间: 2014-5-22 15:34
顶起来…………




欢迎光临 EaBIM (https://eabim.net/) Powered by Discuz! X3.2