随笔分类 -  .net

xml数据改动
摘要:public void reXml ( string namepngname ) { XmlDocument doc = new XmlDocument(); doc.Load(_xmlpath); /*Xm... 阅读全文

posted @ 2014-08-25 17:44 盖天00 阅读(166) 评论(0) 推荐(0)

c# 调用外包程序 等待处理完成结果
摘要:string root = @"J:\yaoqianshu"; string pythonPath = "解压缩拷贝启动动画测试(新).py"; string ccccPath = ""; ProcessStartInfo myPro... 阅读全文

posted @ 2014-05-29 10:32 盖天00 阅读(348) 评论(0) 推荐(0)

3dmax 中使用dotnet 对数据保存读取 (bip工具数据一部分)
摘要:1 struct gt_cl_hp_bipxml 2 ( 3 -- 把数据保存成 xml 格式 4 fn bipXml bipPaths frames filePath= 5 6 ( 7 if bipPaths.count >0 then 8 ( 9 XmlDocumentXDoc = dotNetobject "System.Xml.XmlDocument"10 dotnetPath = dotNetClass "System.IO.Pat... 阅读全文

posted @ 2013-03-08 14:07 盖天00 阅读(858) 评论(0) 推荐(0)

max 中 dotnet 中实现保保存xml 数据
摘要:-- 把数据保存成 xml 格式fn bipXml bipPaths frames filePath= ( if bipPaths.count >0 then ( XmlDocumentXDoc = dotNetobject "System.Xml.XmlDocument" dotnetPath = dotNetClass "System.IO.Path" dotnetDirectory =dotNetClass "System.IO.Directory" dotnetFile = dotNetCl... 阅读全文

posted @ 2013-03-08 11:36 盖天00 阅读(261) 评论(0) 推荐(0)

字符串转换成16 进制表示
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace _16__进制转换{ class Program { static void Main(string[] args) { string input = "Hello WorldA"; char[] values = input.ToCharArray(); // 字符转换成char 数组 ... 阅读全文

posted @ 2012-07-24 13:15 盖天00 阅读(561) 评论(0) 推荐(0)

字符转int 的几种方法
摘要:// 字符串转换成整数intnumVal = Convert.ToInt32("26");numVal++;Console.WriteLine(numVal); intnumVal = Int32.Parse("-105");Console.WriteLine(numVal);intj;Int32.TryParse("-109",outj);Console.WriteLine("j 的数值是:"+j);try{intm = Int32.Parse("abc");// 直接使用它转换会报错。 要加 阅读全文

posted @ 2012-07-24 12:53 盖天00 阅读(4471) 评论(0) 推荐(0)

max中用 .net 判断输入的邮箱地址是否合格。
摘要:pattern = "^([0-9a-zA-Z]([-\\.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$"; oo = dotNetclass "System.Text.RegularExpressions.Regex" oo.IsMatch "feedback@net-informatins.com" pattern --返回对错 2012-05-28 阅读全文

posted @ 2012-05-28 16:49 盖天00 阅读(227) 评论(0) 推荐(0)

。net 换字符
摘要:MaxString = "abcdefg"DotNetString = DotNetObject "System.String" MaxString DotNetString.Replace "a" "z" --返回值就是MaxScript中的StringDotNetString.toString() --从.net中取值 阅读全文

posted @ 2011-10-31 11:09 盖天00 阅读(205) 评论(0) 推荐(0)

dotNetClass "System.Windows.Forms.View").
摘要:if (splitViewRollout != undefined) and (splitViewRollout.isDisplayed) do (destroyDialog splitViewRollout)global splitViewRollout rollout splitViewRollout " Modifiers"(-- TreeViewfn initTreeView tv =( tv.checkboxes = true tv.sorted = true)fn addModifiers theNode theModifiers =( for m in the 阅读全文

posted @ 2011-10-08 19:46 盖天00 阅读(609) 评论(0) 推荐(0)

时间的表示
摘要:dnDateTime = dotNetObject "System.DateTime" 1972 03 08 18 30 0-- prints "8/03/1972 6:30:00 PM" -- Australianformat "%\n" (dnDateTime.toString())DateTime = dotNetClass "System.DateTime"date = DateTime.Parse "8/03/1972 6:30:00 PM"print (date.ToString() 阅读全文

posted @ 2011-10-08 19:40 盖天00 阅读(216) 评论(0) 推荐(0)

收集路径文件。
摘要:(local ofd = dotnetobject "System.Windows.Forms.OpenFileDialog"ofd.Filter = "XML Files (*.xml)|*.xml |(*.*)|*.*"ofd.RestoreDirectory = falseofd.multiselect = true if ofd.showDialog() == (dotNetClass "System.Windows.Forms.DialogResult").OK then ( local sFile = ofd.fileNa 阅读全文

posted @ 2011-10-08 19:33 盖天00 阅读(223) 评论(1) 推荐(0)

TabForm.MaximizeBox = false
摘要:(dotnet.loadassembly "System.Data"Color = dotNetClass "System.Drawing.Color"ScrollBars = dotNetClass "System.Windows.Forms.ScrollBars"-- Create Tabs Container tabControl1 = dotnetobject "system.windows.forms.TabControl"tabControl1.size = dotnetobject "sys 阅读全文

posted @ 2011-10-08 19:25 盖天00 阅读(500) 评论(0) 推荐(0)

创建类表
摘要:(Color = dotNetClass "System.Drawing.Color"ScrollBars = dotNetClass "System.Windows.Forms.ScrollBars"-- Create Tabs Container tabControl1 = dotnetobject "system.windows.forms.TabControl"tabControl1.size = dotnetobject "system.drawing.size" 395 195tabControl1.L 阅读全文

posted @ 2011-10-08 19:20 盖天00 阅读(186) 评论(0) 推荐(0)

messagebox 这样的操作
摘要:(-- setup dotnet classes / objectslocal mb = dotNetClass "System.Windows.Forms.MessageBox"local buttons = dotNetClass "System.Windows.Forms.MessageBoxButtons"local icons = dotNetClass "System.Windows.Forms.MessageBoxIcon"local defaultButton = dotNetClass "System.Wi 阅读全文

posted @ 2011-10-08 19:08 盖天00 阅读(204) 评论(0) 推荐(0)

zhao
摘要:(rollout rollmain "dotnet" (dotnetcontrol lst_test "System.Windows.Forms.Listbox" width:290 height:290 align:#centeron rolmain open do(dotnet.loadassembly "System.Data"constring="data source=.\SQLEXPRESS;Initial Catalog=YOUR_DATABASE_HERE;Integrated Security=True;C 阅读全文

posted @ 2011-10-08 18:59 盖天00 阅读(291) 评论(0) 推荐(0)

编辑控件
摘要:dotNetControl MsdnGroupBox "System.Windows.Forms.GroupBox" fn Msd =(MsdnGroupBox.Size=dotNetObject "System.Drawing.Size" 95 78MsdnGroupBox.Location=dotNetObject "System.Drawing.Point" 10 10 ) 阅读全文

posted @ 2011-09-19 14:46 盖天00 阅读(186) 评论(0) 推荐(0)

颜色的东西
摘要:global LR_DotNetColorPresetArrayrollout ColorChart "LoneRobot DotNet Preset Color Chart" width:556 height:597(local colorclass = dotnetclass "system.drawing.color"local ClipboardCache = dotnetclass "system.windows.forms.clipboard"local SystemColorPicker = dotnetobject & 阅读全文

posted @ 2011-09-19 11:24 盖天00 阅读(461) 评论(0) 推荐(0)

3D Gallery DotNet controls Picture Box
摘要:-------------------------------------- ---- 3D Gallery ---- ------------------------------------------20119.19 这个有好多的链接 这个现在运行是不通的。Global mc3DgalleryDialogGlobal mc2TextBoxDialogif mc3DgalleryDialog != undefined do destroyDialog mc3DgalleryDialogrollout mc3DgalleryDialog " 3DGallery II: Models& 阅读全文

posted @ 2011-09-19 10:35 盖天00 阅读(448) 评论(0) 推荐(0)

dotNetControl PictrueBox
摘要:(---加以张图片的控件。rollout windowPictureBox "Picture box"(dotNetControl pictureBox "System.Windows.Forms.PictureBox" height:100 width:100 align:#centeron windowPictureBox open do(imageFile = @"C:\Program Files (x86)\Autodesk\3ds Max 2008\ui\Icons\AtmosApp_24i.bmp" -- Point th 阅读全文

posted @ 2011-09-19 10:27 盖天00 阅读(324) 评论(0) 推荐(0)

导航