I want to change bom structure(FromNormal to Phantom)with respect to Particular custom property input
Ok you can..
use ilogic..
Best I can do with the information you supplied.......
hi,
before jletcher comes back, I wrote some iLogic code for your reference:
doc = ThisDoc.Document def = doc.ComponentDefinition thebom = def.BOM thebomview= thebom.BOMViews(1) thebomrow = thebomview.BOMRows(1) thebomrow.BOMStructure = 51971 'kPhantomBOMStructure
and the enum of BOMStructureEnum is:
Public Enum BOMStructureEnum kDefaultBOMStructure = 51969 kNormalBOMStructure = 51970 kPhantomBOMStructure = 51971 kReferenceBOMStructure = 51972 kPurchasedBOMStructure = 51973 kInseparableBOMStructure = 51974 kVariesBOMStructure = 51975 End Enum
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..
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.