#1
|
|||
|
|||
BOM customization
Hi everybody, I have a question for you: is it possible to register a BOM attribute that multiply an already existing attribute for another. I mean, for exemple, I have to multiply the weight of a part for the quantity of that part in my assembly. Quantity an weight (peso) attributes are already defined:
(docu::docu-unregister-bom-attr-all) (if bom3d-setup-plist-for-am (progn (docu::docu-register-bom-attr :attr-type "DOCU_BOM_QUANTITY" :attr-title "Quantita" :attr-display t :attr-value-fnc nil) ;; system BOM attribute (if (string= (ci-loader::ci-fast-get-var bom3d-key-plist "codice" bom3d-setup-plist-for-am) "true") (if (string= (ci-loader::ci-fast-get-var bom3d-key-plist "peso" bom3d-setup-plist-for-am) "true") (docu::docu-register-bom-attr :attr-type "bom3d-peso-attr-cont" :attr-title "Peso" :attr-display t :attr-value-fnc #'ci-goldtop::bom3D-attr-get-peso) Thank you john |
#2
|
||||
|
||||
Re: BOM customization
Hi,
you would like to get a bom like this: Code:
| pos |name | qty |weight | sum weight | | 1 | A | 1 | 10g | 10g | | 2 | B | 1 | 15g | 15g | | 3 | V | 2 | 20g | 40g | | 4 | X | 3 | 12g | 36g | And you are looking for the way to get the code for the function to be registered for the last column? show us the code of ci-goldtop::bom3D-attr-get-peso, than it's easier to help. -------- one request.. next time you are using code please wrap it with the [ code ] tag. (since you know about the color tag, I don't have to explain more). That improves code readablility
__________________
|
Tags |
annotation, bom, customization |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|