赞
踩
<pre name="code" class="csharp">
- <pre name="code" class="csharp"><span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"></span><pre name="code" class="csharp">public void set_Python_Argv()
- {
- IFeatureLayer pFeatureLayer = (IFeatureLayer)m_pLayer;
- IDataLayer dl = (IDataLayer)m_pLayer;
- IWorkspaceName ws = ((IDatasetName)(dl.DataSourceName)).WorkspaceName;
- string path = ws.PathName;
-
- //设置脚本参数
- string sArguments = @"shape_analyze.py";<span style="white-space:pre"> </span>//这里是python的文件名字
- string file_name = m_pLayer.Name;<span style="white-space:pre"> </span>//要被传入的文件名,不含后缀
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。