Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bom structure(FromNormal to Phantom)

4 REPLIES 4
Reply
Message 1 of 5
karunanidhik
1278 Views, 4 Replies

bom structure(FromNormal to Phantom)

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

4 REPLIES 4
Message 2 of 5
jletcher
in reply to: karunanidhik

Ok you can..

 

use ilogic..

 

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

Message 3 of 5
xiaodong_liang
in reply to: jletcher

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

Message 4 of 5
jletcher
in reply to: xiaodong_liang

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..

Message 5 of 5
xiaodong_liang
in reply to: jletcher

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report