PythonでのPPGも理解できたかな~
※もともと一気に書き出すのはオプションでした orz
修正
Python
#Export2Mari v0.11 # 2011 06 08 from win32com.client import constants as c app = Application log = app.Logmessage cp = XSIFactory.CreateObject("CustomProperty") cp.Name = "ExportObjects 2 Mari" cp.AddParameter3('fileDirectory', c.siString) #デフォルトディレクトリ cp.fileDirectory.Value = 'O:\Mari' ly = cp.PPGLayout ly.AddGroup("Export") ly.AddRow() ly.AddItem('fileDirectory','Directory',c.siControlFolder) ly.AddButton("Export") ly.EndRow() ly.EndGroup() app.InspectObj(cp) ly.Language = 'Python' ly.Logic = ''' from win32com.client import constants as c app = Application log = app.Logmessage def Export_OnClicked(): dir = str(PPG.fileDirectory.Value) data = dir + "/" log('Export : ' + data) #log(data) app.ObjExport(data,1, "", "", "", "", "", "", "", "", 0, False, False, "", False) '''
0 件のコメント:
コメントを投稿