CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-14-2010, 11:32 AM
john570 john570 is offline
Registered User
 
Join Date: Nov 2010
Posts: 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
Reply With Quote
  #2  
Old 11-20-2010, 09:03 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
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    |
did i misunderstand?

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
Reply With Quote
Reply

Tags
annotation, bom, customization


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:20 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.