bom structure(FromNormal to Phantom)

bom structure(FromNormal to Phantom)

Anonymous
Not applicable
1,454 Views
4 Replies
Message 1 of 5

bom structure(FromNormal to Phantom)

Anonymous
Not applicable

I want to change bom structure(FromNormal  to Phantom)with respect to Particular custom property input

0 Likes
1,455 Views
4 Replies
Replies (4)
Message 2 of 5

jletcher
Advisor
Advisor

Ok you can..

 

use ilogic..

 

Best I can do with the information you supplied.......

0 Likes
Message 3 of 5

xiaodong_liang
Autodesk Support
Autodesk Support

hi,

 

before 

doc = ThisDoc.Document
def = doc.ComponentDefinition 
thebom = def.BOM
thebomview= thebom.BOMViews(1)
thebomrow = thebomview.BOMRows(1)
thebomrow.BOMStructure  = 51971 'kPhantomBOMStructure  

Public Enum BOMStructureEnum
  kDefaultBOMStructure = 51969
  kNormalBOMStructure = 51970
  kPhantomBOMStructure = 51971
  kReferenceBOMStructure = 51972
  kPurchasedBOMStructure = 51973
  kInseparableBOMStructure = 51974
  kVariesBOMStructure = 51975
End Enum

0 Likes
Message 4 of 5

jletcher
Advisor
Advisor

Well I'm back but I don't see how what you have helps him your code changes  the BOM but not how he wants I think..

 

 

He wants to do it with "Particular custom property input" you have no way for him to input or if it is already input into his part you have no way of looking for the "Particular custom property input".

 

This is why he got short answer and no this is how..

 

He would have to let us know the "Particular custom property input" to be able to write a code for him..

0 Likes
Message 5 of 5

xiaodong_liang
Autodesk Support
Autodesk Support

I agreed your observation from his short words. At least, however it could be a little bit hint for him to know how to change bom structure. As to the custom property, we could see what he will say.

0 Likes