• このフォーラムは、www.cad3d.it/forum1 - イタリアのデザインコミュニティの機械翻訳です。いくつかの用語は正しく翻訳されていません。

マクロ「バッチ部品番号の名前」

  • Thread starter Thread starter marcofa
  • Start date Start date

marcofa

Guest
su eng-tips ho trovato la macro allegata.
essa dovrebbe cambiare il "numero parte" e renderlo uguale a "nome del file" , se non ho capito male. sarebbe utile per il "nuovo da" su product, dove il numero parte resta vecchio ed il nome file diventa nuovo.
poichè non riesco ad utilizzarla, qualcuno potrebbe provarla e spiegare come si fà?
grazie
marco
 

Attachments

su gtwiki ho trovato lo script che fà al caso mio, e cioè rinomina i "numeri parte" come il "nome file"
nel caso di product creato con il comando "nuovo da" i numeri parte non vengono cambiati, ma solo i nomi file.
eseguendo questo script dopo il comando nuovo da, si otterranno nuovi numeri parte coincidenti con i nuovi nomi file.
questo script è un catvba.
qualcuno potrebbe dirmi per favore come si lancia?
marco

partnumber renamer by file name

often, users will name the partnumber and file name differently.

to clear up some confusion,
the partnumber is the parameter that controls the catpart/catproduct name. it resides in the file and exists at the top of the digital project tree structure.
the file name is the title of the file, and it usually ends with ".catpart" or ".catproduct. it is only accessible from windows explorer or other directory structure interfaces. you can view a read-only version of this name in digital project under file > document properties > document.

in the process of developing an assembly, some users would like to coordinate differing the names. this script changes the partnumber to match the file name.

script download
click here to download the script.

http://www.gtwiki.org/mwiki/index.php?title=partnumber_renamer_by_file_name

important things to note
the changes are permanent. if you select a directory and choose the option to recursive cycle through all sub-directories, it will rename everything. there is no cancel or "stop script.
catproducts that hold onto changed catparts will lose the links. it's recommended that users only utilize this script for catpart directories, but the option is open.
when converting catproducts, you'll probably be prompted with the desk management dialog box. ignore this until the script has finished--it will not impact the performance of the code and you can cancel them all at the end of the procedure.
the equals sign (=) cannot be in the file name of a catproduct. you will be able to save the name, but the partnumber will not accept that string of characters. the script will not prompt you with an error and catparts allow equals signs in the file name and partnumber.
 
部品番号に応じてファイル名の対比、バッチ名が必要になります。 この変更を明らかにして、部品が投入されるネコ製品のリンクも管理します。
適切なマクロがある場合、誰が知っていますか?
お問い合わせ
 

Forum statistics

Threads
46,674
Messages
380,976
Members
2
Latest member
loop80
このフォーラムは、www.cad3d.it/forum1 - イタリアのデザインコミュニティの機械翻訳です。いくつかの用語は正しく翻訳されていません。

Members online

No members online now.
Back
Top