用VB.net计算坐标点
我正在尝试构建一个坐标系统,但在如何...方面遇到了麻烦。
到目前为止,我拥有的是一个允许用户输入长度的文本框。该长度是用户定义的,但长度永远不会小于 610,因为这是我们用来构建木框架的最小单位尺寸。木框架的总长度是无限的(不是真的,但这是我想要的)木框架的梁每隔 610 毫米设置一次(这是法律要求)所以我希望我的 vb.net 设置以 610 为间隔绘制每个梁的坐标,然后将该坐标系统写入基于文本的 *.SCR 文件
AutoCAD 使用脚本文件自动绘制程序来绘制 180mm x 50mmx 50mm 的梁
BOX…. This emplys the AutoCAD tool needed for uses
0,0,0…This emplys a starting or base point
180,50,50…this is the end point that completes the beam
如您所见,该脚本非常基本我想要一个框架,并在文本框中输入 1260 我知道我的梁在脚本中看起来像下面这样,
Box
0,0,0
180,50,50
Box
0,660,0
180,660,50
Box
0,710,0
180,760,50
Box
0,810,0
180,860,0
Box
0,910,0
180,960,50
Box
0,1110,0
180,1160,50
Box
0,1210,0
180,1260,50
我每次都需要从构建之前的构建中构建一个新的参考点,所有这些坐标都需要在 VB.net 中计算出来,然后记录到基于文本的 *scr文件
我怎样才能实现这个目标?有人向我指出了阵列的方向,但我对此表示怀疑???
I am trying to build a coordinates system but am having trouble with how to..
What I have sofar is a textbox that allows the user to enter a length. This length is user defined but never smaller then 610 in length since this is the minimum unit size we use to build timber frames. The overall length of a timber frame is infinite (well not really, but it is for what I want) the timber frame has beams every 610mm set apart from each other (this is a legal requirement) so I want my vb.net to set coordinates for each beam at intervals of 610 then write that coordinates system to a text based *.SCR file
AutoCAD uses the script file to automate drawing procedures to draw a beam of 180mm x 50mmx 50mm
BOX…. This emplys the AutoCAD tool needed for uses
0,0,0…This emplys a starting or base point
180,50,50…this is the end point that completes the beam
As you can see the script is very basic lets say I want a frame and in my textbox I type 1260
I know that my beams would look like the following in the script
Box
0,0,0
180,50,50
Box
0,660,0
180,660,50
Box
0,710,0
180,760,50
Box
0,810,0
180,860,0
Box
0,910,0
180,960,50
Box
0,1110,0
180,1160,50
Box
0,1210,0
180,1260,50
I need to build a new reference point each time from building of the previous, all these coordinates need to be worked out in VB.net and then recorded to the text based *scr file
How can I achieve this? I was pointedout towards the direction of arrays but doubt that???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
算法不清楚。
查看每一步的增量:
盒子
0,0,0
180,50,50
盒子
0,660,0 + 660
180,660,50 + 610
盒子
0,710,0 + 50
180,760,50 + 100
the algorithm isn't clear.
see the increments at each step:
Box
0,0,0
180,50,50
Box
0,660,0 + 660
180,660,50 + 610
Box
0,710,0 + 50
180,760,50 + 100