gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15947
  • QQ554730525
  • 铜币25339枚
  • 威望15364点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
阅读:2998回复:3

[下载]MicroStation MDL二次开发实例源代码

楼主#
更多 发布于:2007-07-13 11:20
<P>下载地址:</P>
<P><a href="attachment/2007-7/20077131119023367.rar">2007-7/20077131119023367.rar</a></P>
<P>希望大家多来这里讨论!<BR></P>
<P>每个步骤都有代码配合大家学习,资料的大致内容如下:</P>
<P><p><FONT face=宋体></FONT></p> </P>
<P ><FONT face="Times New Roman">1.              </FONT>从最简单最直观的程序入手:<FONT face="Times New Roman">place box<p></p></FONT></P>
<P >目标:<FONT face="Times New Roman">     </FONT>程序执行后在图上自动画一个正方形,边长<FONT face="Times New Roman">20</FONT>,中心在(<FONT face="Times New Roman">100</FONT>,<FONT face="Times New Roman">100</FONT>)<p></p></P>
<P >要点:<FONT face="Times New Roman">     mdlInput_sendKeyin<p></p></FONT></P>
<P >练习:<FONT face="Times New Roman">     </FONT>发送其它命令;<FONT face="Times New Roman">undo-redo</FONT>效果;<FONT face="Times New Roman">elemen t information</FONT>;视图操作<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">2.              </FONT>换一种实现方式<p></p></P>
<P >要点:<FONT face="Times New Roman">     mdlLine_create<p></p></FONT></P>
<P ><FONT face="Times New Roman">           mdlElement_draw<p></p></FONT></P>
<P ><FONT face="Times New Roman">           mdlElement_add<p></p></FONT></P>
<P >练习:<FONT face="Times New Roman">     </FONT>其它元素类型的<FONT face="Times New Roman">create</FONT>函数,如<FONT face="Times New Roman">arc</FONT>、<FONT face="Times New Roman">text</FONT>等;<FONT face="Times New Roman">undo-redo</FONT>效果;<FONT face="Times New Roman">elemen t information<p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">3.              </FONT>自动显示<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>程序执行后能够在视图<FONT face="Times New Roman">1</FONT>中自动全屏显示,直接看到运行的结果<p></p></P>
<P >要点:<FONT face="Times New Roman">     mdlView_fit<p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">4.              </FONT>元素的组合<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>生成的图形是一个整体(<FONT face="Times New Roman">group</FONT>)<p></p></P>
<P >要点:<FONT face="Times New Roman">     mdlCell_create<p></p></FONT></P>
<P ><FONT face="Times New Roman">           mdlEldscr_new<p></p></FONT></P>
<P ><FONT face="Times New Roman">complex element, elment descriptor<p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">5.              </FONT>交互操作<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>由用户指定生成图形的位置(中心点的坐标)<p></p></P>
<P >要点:<FONT face="Times New Roman">     mdlState_setFunction<p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">6.              </FONT>动态显示<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>程序执行后即动态显示,左键放置图形<p></p></P>
<P >要点:<FONT face="Times New Roman">     <p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">7.              </FONT>命令<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>定义一个命令,用户键入该命令时进入交互动态显示<p></p></P>
<P >要点:<FONT face="Times New Roman">     </FONT>资源文件,命令的实现<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">8.              </FONT>命令设置框(<FONT face="Times New Roman">Tool Settings</FONT>)<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>激活命令后,在命令设置况中输入参数(边长),默认值<FONT face="Times New Roman">20<p></p></FONT></P>
<P >要点:<FONT face="Times New Roman">     </FONT>对话框的设计<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">9.              </FONT>图表工具板<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>将前面的命令做出图标<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">10.          </FONT>元素的操纵<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>增加一个图标命令,对选中的元素放大<FONT face="Times New Roman">2</FONT>倍<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">11.          </FONT>元素的筛选<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>只能选中指定图层和颜色的元素进行放大<p></p></P>
<P >要点:<FONT face="Times New Roman">     mdlElementUnion</FONT>结构<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">12.          </FONT>图形文件的处理<p></p></P>
<P >要点:<FONT face="Times New Roman">     </FONT>顺序读<FONT face="Times New Roman">/</FONT>操纵全部元素<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">13.          </FONT>另一种筛选方式<p></p></P>
<P >要点:<FONT face="Times New Roman">     scan<p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">14.          </FONT>非图形信息的保存和操作——注记关联<FONT face="Times New Roman">annolink<p></p></FONT></P>
<P >目标:<FONT face="Times New Roman">     <p></p></FONT></P>
<P >要点:<FONT face="Times New Roman">     linkage</FONT>,<FONT face="Times New Roman">scan<p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">15.          </FONT>关联检查<FONT face="Times New Roman">chkanlink<p></p></FONT></P>
<P ><FONT face="Times New Roman">16.          </FONT>关联修改<FONT face="Times New Roman">modanlnk<p></p></FONT></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">17.          Tcb</FONT>及环境变量、参数设置<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">18.          </FONT>数据库操作<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">19.          </FONT>工作单位的调整<p></p></P>
<P >目标:<FONT face="Times New Roman">     </FONT>将<FONT face="Times New Roman">KM-M</FONT>的图改为<FONT face="Times New Roman">M-MM</FONT>单位<p></p></P>
<P ><p><FONT face="Times New Roman"> </FONT></p></P>
<P ><FONT face="Times New Roman">20.          VC</FONT>编辑环境<p></p></P>
<P ><FONT face="Times New Roman">21.          </FONT>动态连接库技术<p></p></P>
<P ><FONT face="Times New Roman">22.          Application Design<p></p></FONT></P>
喜欢0 评分0
fishxf
路人甲
路人甲
  • 注册日期2006-12-27
  • 发帖数3
  • QQ
  • 铜币109枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2007-09-01 00:52
<P>这是安图 赵北站的教程吧? 是microstation J 的代码了。在V8下不能用的 。</P>
举报 回复(0) 喜欢(0)     评分
whmwxhanshan123
路人甲
路人甲
  • 注册日期2006-06-17
  • 发帖数3108
  • QQ
  • 铜币6445枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2007-09-01 14:43
<P><STRONG>MicroStation MDL二次开发实例源代码</STRONG></P>
<P><STRONG>ok</STRONG></P>
举报 回复(0) 喜欢(0)     评分
bobosky
路人甲
路人甲
  • 注册日期2003-08-04
  • 发帖数112
  • QQ
  • 铜币492枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2007-11-20 02:13
好东西啊
举报 回复(0) 喜欢(0)     评分
游客

返回顶部