<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[笑书生无用]]></title> 
<link>http://mdjing.com/index.php</link> 
<description><![CDATA[机械设计_机器人]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[笑书生无用]]></copyright>
<item>
<link>http://mdjing.com/read.php?209</link>
<title><![CDATA[[转载]VS2010项目在VS2005中打开]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[默认分类]]></category>
<pubDate>Tue, 20 Mar 2012 14:09:02 +0000</pubDate> 
<guid>http://mdjing.com/read.php?209</guid> 
<description>
<![CDATA[ 
	步骤整理自网上：<br/>1、在vs2010中将该项目的framework改为net 2.0（方法，右击项目=》属性=》应用程序=》目标框架=》选择net 2.0）；<br/><br/>2、将sln里中前两行：<br/>Microsoft Visual Studio Solution File, Format Version 10.00<br/># Visual Studio 2008<br/>修改为<br/>Microsoft Visual Studio Solution File, Format Version 9.00<br/># Visual Studio 2005 <br/><br/>3、将.csproj文件中的：<br/>[codes=html]<br/><Import Project="$(MSBuildToolsPath)&#92;Microsoft.CSharp.targets" /> <br/>[/codes]<br/>修改为 <br/>[codes=html]<br/><Import Project="$(MSBuildBinPath)&#92;Microsoft.CSharp.targets" /><br/>[/codes]<br/><br/>Tags - <a href="http://mdjing.com/tag.php?tag=vs2005" rel="tag">vs2005</a> , <a href="http://mdjing.com/tag.php?tag=open" rel="tag">open</a> , <a href="http://mdjing.com/tag.php?tag=vs2010" rel="tag">vs2010</a> , <a href="http://mdjing.com/tag.php?tag=project" rel="tag">project</a> , <a href="http://mdjing.com/tag.php?tag=%25E6%2589%2593%25E5%25BC%2580" rel="tag">打开</a> , <a href="http://mdjing.com/tag.php?tag=%25E9%25A1%25B9%25E7%259B%25AE" rel="tag">项目</a>
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?208</link>
<title><![CDATA[CATIA中批量导入三维坐标点]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[Catia]]></category>
<pubDate>Sat, 25 Feb 2012 12:55:10 +0000</pubDate> 
<guid>http://mdjing.com/read.php?208</guid> 
<description>
<![CDATA[ 
	利用这个网站<a href="http://forum.catia.com.pl/viewtopic.php?f=2&t=513&start=10&view=print" target="_blank">http://forum.catia.com.pl/...</a>提供的宏可实现在CATIA中批量导入存储在txt文档中的三维坐标点。由于用的是vbs，需要删除掉宏代码中Dim定义部分，否则会报错。<br/>删除后的宏代码如下：<br/><br/>[codes=vb]<br/>Language="CATSCRIPT"<br/>Sub CATMain() <br/>set oPart=CATIA.ActiveDocument.Part <br/>set hsf = oPart.HybridShapeFactory <br/>set hyb = oPart.HybridBodies <br/>set NewSet=hyb.Add() <br/>NewSet.Name="curve2" '增加的几何图形集的名称<br/><br/>Set oFileSys = CATIA.FileSystem <br/>Set oFileIn = oFileSys.GetFile("E:&#92;CATIA&#92;xyz2.txt") '存储三维点坐标的txt文档路径<br/>Set oStream = oFileIn.OpenAsTextStream("ForReading") <br/>sLine = oStream.ReadLine <br/>NumberOfPoints = 0 <br/><br/>While (sLine <> "") <br/>pointCoords = Split(sLine, " ")&nbsp;&nbsp;<br/>NumberOfPoints = NumberOfPoints +1 <br/>set NewPoint=hsf.AddNewPointCoord (pointCoords(0),pointCoords(1),pointCoords(2))<br/>NewSet.AppendHybridShape NewPoint<br/>oPart.Update <br/>sLine = oStream.ReadLine <br/>Wend <br/><br/>oStream.Close <br/>oPart.Update <br/>End Sub <br/><br/>[/codes]<br/>Tags - <a href="http://mdjing.com/tag.php?tag=catia" rel="tag">catia</a> , <a href="http://mdjing.com/tag.php?tag=import" rel="tag">import</a> , <a href="http://mdjing.com/tag.php?tag=points" rel="tag">points</a> , <a href="http://mdjing.com/tag.php?tag=%25E6%2589%25B9%25E9%2587%258F" rel="tag">批量</a> , <a href="http://mdjing.com/tag.php?tag=%25E5%25AF%25BC%25E5%2585%25A5" rel="tag">导入</a> , <a href="http://mdjing.com/tag.php?tag=%25E4%25B8%2589%25E7%25BB%25B4%25E5%259D%2590%25E6%25A0%2587%25E7%2582%25B9" rel="tag">三维坐标点</a>
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?207</link>
<title><![CDATA[[C#]设置窗体背景色为渐变色]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[默认分类]]></category>
<pubDate>Tue, 07 Feb 2012 03:37:25 +0000</pubDate> 
<guid>http://mdjing.com/read.php?207</guid> 
<description>
<![CDATA[ 
	<br/>在<a href="http://www.codeproject.com/Articles/11417/Gradient-Forms-The-Easy-Way" target="_blank">http://www.codeproject.com...</a>提供了一种简单的方法：他在BaseForm类中自定义了三个窗体的三个属性color1,color2和ColorAngle,然后进行窗体绘制。使用时只需将他提供的BaseFormGradient.cs添加到项目里，让背景需要渐变的窗体继承“BaseFormGradient”，然后就可以在窗体的属性中设置这些值达到背景渐变的效果。<br/>Tags - <a href="http://mdjing.com/tag.php?tag=c%2523" rel="tag">c#</a> , <a href="http://mdjing.com/tag.php?tag=gradient" rel="tag">gradient</a> , <a href="http://mdjing.com/tag.php?tag=forms%25E7%25AA%2597%25E4%25BD%2593" rel="tag">forms窗体</a> , <a href="http://mdjing.com/tag.php?tag=%25E8%2583%258C%25E6%2599%25AF" rel="tag">背景</a> , <a href="http://mdjing.com/tag.php?tag=%25E6%25B8%2590%25E5%258F%2598" rel="tag">渐变</a>
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?206</link>
<title><![CDATA[在matlab中绘制箭头]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[MATLAB]]></category>
<pubDate>Fri, 30 Dec 2011 03:26:25 +0000</pubDate> 
<guid>http://mdjing.com/read.php?206</guid> 
<description>
<![CDATA[ 
	在mathworks.com上搜了下arrow,有不少相关的函数，试用了几个，感觉arrow3最好：<a href="http://www.mathworks.com/matlabcentral/fileexchange/14056-arrow3-version-5" target="_blank">http://www.mathworks.com/m...</a> 
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?205</link>
<title><![CDATA[【CAA】自定义工具条添加按钮图片]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[Catia]]></category>
<pubDate>Tue, 05 Jul 2011 13:12:35 +0000</pubDate> 
<guid>http://mdjing.com/read.php?205</guid> 
<description>
<![CDATA[ 
	<br/>通过CAA在CATIA中自定义工具条的按钮时，如果给按钮命令添加图片不能正确显示出来，而按钮的功能正常。很可能是以下原因：CATIA中不能读入颜色深度比较大的图像，可以尝试将颜色深度降低。一种做法是在PS中将图像模式改为“索引颜色”，存储图像(BMP)时选择深度为8位或者4位。再mkmk一次试试。<br/>Tags - <a href="http://mdjing.com/tag.php?tag=catia" rel="tag">catia</a> , <a href="http://mdjing.com/tag.php?tag=%25E5%25B7%25A5%25E5%2585%25B7%25E6%259D%25A1" rel="tag">工具条</a> , <a href="http://mdjing.com/tag.php?tag=%25E6%258C%2589%25E9%2592%25AE" rel="tag">按钮</a> , <a href="http://mdjing.com/tag.php?tag=%25E5%259B%25BE%25E7%2589%2587" rel="tag">图片</a> , <a href="http://mdjing.com/tag.php?tag=%25E9%25A2%259C%25E8%2589%25B2%25E6%25B7%25B1%25E5%25BA%25A6" rel="tag">颜色深度</a>
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?201</link>
<title><![CDATA[感谢一下海克斯康的技术支持]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[默认分类]]></category>
<pubDate>Sat, 19 Feb 2011 16:30:47 +0000</pubDate> 
<guid>http://mdjing.com/read.php?201</guid> 
<description>
<![CDATA[ 
	<br/>&nbsp;&nbsp;&nbsp;&nbsp; 今天是周末，不过我们还在用激光跟踪仪对机器人进行标定。标定后需要对数据进行处理以确定DH参数，于是想将TMAC采得的数据导入到PC-DIMS中处理。开始我想当然的把数据存为".XYZ"格式，却总是行不通，PC-DIMS中虽然可以读入数据文件，但是图形窗体中不生成对应的几何实体，求助于海克斯康的技术支持朱先生，他让我联系汤先生，恰好汤先生马上要登机，但他及时的提醒我要采用导入ASCII格式的文件才能是我想要的结果。于是我照PC-DIMS中提供的帮助，创建规则集，在进行到最后一步时却提示我“无法加载转换dll”。再次致电朱先生，确认在2010版本中转换的功能已经免费提供给用户了，但我机子上软件就是不让我导。最后将数据传给朱先生，让他在公司里帮忙转换，因为版本问题又往返了很多次，但电话中我没有感觉到他们有一丝的不耐烦。<br/>&nbsp;&nbsp;&nbsp;&nbsp;问题解决后，我很想在久未更新的博客上真诚的感谢下海克斯康的技术支持们，包括张先生、汤先生、朱先生和刘先生，谢谢你们在本该休息周末还细致的帮我解决问题，赞赏你们忠实的履行了对客户承诺。<br/>
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?199</link>
<title><![CDATA[catia+CAA+RADE安装时VC开发环境设置]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[Catia]]></category>
<pubDate>Tue, 30 Nov 2010 02:36:25 +0000</pubDate> 
<guid>http://mdjing.com/read.php?199</guid> 
<description>
<![CDATA[ 
	<br/>catia+CAA+RADE安装指南可参见<a href="http://www.cartech8.com/thread-380919-1-1.html" target="_blank">http://www.cartech8.com/th...</a><br/>安装完成后要在vc中的调用RADE的菜单，需要在vc中手动添加，具体如图：<br/>1. 打开vc ，进入"Tools"菜单栏--> "customize"，在弹出的设置窗体中选择"Add-ins and Macra Files"勾选相应选项.<br/><a href="http://mdjing.com/attachment.php?fid=56" target="_blank"><img src="http://mdjing.com/attachment.php?fid=56" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>2. 重启之后即可见到对应的菜单。<br/><a href="http://mdjing.com/attachment.php?fid=57" target="_blank"><img src="http://mdjing.com/attachment.php?fid=57" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>另外，详细的安装过程及入门教程可参见以下附件，来源于网络。<br/><a href="attachment.php?fid=58">点击这里下载文件</a><br/>Tags - <a href="http://mdjing.com/tag.php?tag=catia" rel="tag">catia</a> , <a href="http://mdjing.com/tag.php?tag=caa" rel="tag">caa</a> , <a href="http://mdjing.com/tag.php?tag=rade" rel="tag">rade</a> , <a href="http://mdjing.com/tag.php?tag=vc" rel="tag">vc</a> , <a href="http://mdjing.com/tag.php?tag=%25E6%2595%2599%25E7%25A8%258B" rel="tag">教程</a>
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?198</link>
<title><![CDATA[[转载]批量导出autoCAD中点的坐标，存成文本文件]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[默认分类]]></category>
<pubDate>Sat, 30 Oct 2010 10:45:12 +0000</pubDate> 
<guid>http://mdjing.com/read.php?198</guid> 
<description>
<![CDATA[ 
	功能：CAD可以批量选择图形，筛选出其中的""point""点，并提取坐标生成文本文件。<br/>在AutoCAD的命令栏中输入appload ->在弹出的对话框中载入该Lisp文件，加载成功后关闭对话框 -> 然后在命令栏输入plscdzb ， 依照提示选择要导出的点，结束选择后即可保存为文本。<br/>把以下代码,复制到文本,再把文本后缀改为lsp文件,然后按以上运行.<br/><br/>(defun c:plscdzb()<br/>&nbsp;&nbsp; (princ "&#92;n选择所需输出的点:")<br/>&nbsp;&nbsp; (setq ss (ssget ))<br/>&nbsp;&nbsp; (setq n (sslength ss))<br/>&nbsp;&nbsp; (setq ff (open (getfiled "文件保存为" "c:/" "txt" 1) "w"))<br/>&nbsp;&nbsp; (setq i 0)<br/>&nbsp;&nbsp; (repeat n<br/>&nbsp;&nbsp; (setq spt (ssname ss i ))<br/>&nbsp;&nbsp; (setq ept (entget spt))<br/>&nbsp;&nbsp; (if (= (cdr (assoc 0&nbsp;&nbsp;ept)) "POINT")<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(progn<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq lxyz (cdr (assoc 10&nbsp;&nbsp;ept)))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq sx (rtos (nth 1 lxyz)))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq sy (rtos (nth 0 lxyz)))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq sz (rtos (nth 2 lxyz)))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq sxyz (strcat sx "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&nbsp;&nbsp;sy&nbsp;&nbsp;"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&nbsp;&nbsp;sz))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (write-line sxyz ff)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br/>&nbsp;&nbsp; )<br/>&nbsp;&nbsp; (setq i (+ i 1))<br/>&nbsp;&nbsp; );repeat<br/> )<br/>
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?197</link>
<title><![CDATA[难得周末]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[日记]]></category>
<pubDate>Sun, 17 Oct 2010 03:41:13 +0000</pubDate> 
<guid>http://mdjing.com/read.php?197</guid> 
<description>
<![CDATA[ 
	<br/>这个周末因为不能干活，正好实验室有两个师兄在附近工作，于是和潘、王同去了一趟他们的研究所。<br/>上午参观风洞，中午去了一趟北川。<br/>之前没有见过风洞，甚是期待。实地观看后，确实很壮观，不虚此行。同行的还有些老同志，尽管年纪比较大，但可能是做技术出身的关系，思维反应相当灵敏。其中有个是专业技术少将，为人极其平易近人，很务实的，在参观时，听有个讲解员讲的是些套话时，他便自己上去讲解，三言两语都在点上，后来才知道他是这个项目的总师，敬仰！感觉国家对这些大项目的支持力度还是很大的，他们研究所的条件都不错，配套设施完备，有这样好的环境，该可以专心科研了：（<br/>中午在北川，到了地震遗址，震撼！感觉五味杂陈，生命的脆弱、大自然力量的粗暴无情、看到“任何困难都难不倒英雄的中国人民！”标语时的感动、坚强的幸存者……后来看到了焕然一新的新北川，感觉甚是安慰，祝福在那里的人们有个安宁的生活。北川主要是山东省援建的，建的很好！通往北川的辽宁大道修得也不错。
]]>
</description>
</item><item>
<link>http://mdjing.com/read.php?196</link>
<title><![CDATA[猪]]></title> 
<author>mdjing &lt;mdongjing@163.com&gt;</author>
<category><![CDATA[默认分类]]></category>
<pubDate>Sun, 26 Sep 2010 16:38:04 +0000</pubDate> 
<guid>http://mdjing.com/read.php?196</guid> 
<description>
<![CDATA[ 
	<br/>终于把猪集齐了：）<br/><br/><a href="http://mdjing.com/attachment.php?fid=53" target="_blank"><img src="http://mdjing.com/attachment.php?fid=53" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><a href="http://mdjing.com/attachment.php?fid=54" target="_blank"><img src="http://mdjing.com/attachment.php?fid=54" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><a href="http://mdjing.com/attachment.php?fid=55" target="_blank"><img src="http://mdjing.com/attachment.php?fid=55" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a>
]]>
</description>
</item>
</channel>
</rss>
