'autore: rossano の praderi
「クレアト: 2019年02月07日
メニュー
'csvpathをデフォルトで編集することで出力パスを変更できます。パスはアセンブリファイルと同じです。
'csvpath = ("c:\inventor\") 「パスを変更したら、最後に \ を保ちましょう」
csvpath = string.concat(thisdoc.path , "\")
メニュー
' aggiunto variabili per semplificazione
stl = "strutturata - タッティ i livelli"
ssl = "strutturata - singolo livello"
sp = "ソロパティ"
このapplication.activedocumenttype = documenttypeenum.kassemblydocumentobject の場合 それから
dim odoc をアセンブリドキュメント = このアプリケーション.activedocument
bom = odoc.componentdefinition.bom として空白
bomexporter = inputlistbox("selezionare il tipo di bom da esportare:", new string() { ", stl, ", sl, "", sp, d0, title:= "bom export", リスト名 := "tipo bom")
bomexporter <> "" の場合、
dim obomview として bomview
ケースを選択 bomexporter
ケース stl
' strutturata tutti i ライブレイ
obom.constructdviewfirstlevelonly = false を省略
obom.constructdviewenabled = true の
obomview = obom.bomviews.item("structed") ' verificare con versione italiana
ケースsl
' strutturata primo ライブロ
obom.constructdviewfirstlevelonly = true
obom.constructdviewenabled = true の
obomview = obom.bomviews.item("structed") ' verificare con versione italiana
ケーススプ
ソロ・パティ
obom.partsonlyviewenabled = true の
obomview = obom.bomviews.item("parts only") "verificare con versione italiana
端の選択
' il nome del file cambia a Seconda della tipologia di bom scelta
csvpath = string.concat(csvpath, thisdoc.filename(false), "_", bomexporter, ".xls")
お問い合わせ
obomview.export(csvpath、kmicrosoftexcelformat)
システムとして捕獲して下さい。 免責事項
messagebox.show(例:message)
エンドトライ
端 もし
その他
messagebox.show("devi は、esportare la lista materiali (bom), "ilogic export")
端 もし