Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Can we use FS to set the "Exclude from BOM" property.
owen_sparks
Member, Developers Posts: 2,660 PRO
Hi folks.
I have a part studio that uses configurations to create a laminated material.
I have the configuration table set a sensible PN and name description for just the first layer of the laminate but I'd like to exclude all the other layers from the BOM. Rather than set many values in a table for each config option I thought I'd use FS to set the exclude from BOM property.
setProperty(context, {<br> "entities" : definition.bodies,<br> "propertyType" : PropertyType.Exclude from BOM,
The auto complete doesn't seem to show such a setting, so my Q is "is this property exposed to FS?".
Thanks for your time,
Owen S.
Business Systems and Configuration Controller
HWM-Water Ltd
HWM-Water Ltd
Tagged:
0
Best Answers
-
NeilCooke Moderator, Onshape Employees Posts: 5,671Hi @owen_sparks - in short, no, though I don't see why not?
Here is the enum:export enum PropertyType { NAME, MATERIAL, APPEARANCE, DESCRIPTION, PART_NUMBER, VENDOR, PROJECT, PRODUCT_LINE, TITLE_1, TITLE_2, TITLE_3, CUSTOM }
Senior Director, Technical Services, EMEAI5 -
ilya_baran Onshape Employees, Developers, HDM Posts: 1,210That's fine, I think it's simple enough that I'll just add it (not next release, but "coming soon").Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc1
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,210This should be available as of the update we pushed yesterday (make sure you use the latest version of std).Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc2
-
owen_sparks Member, Developers Posts: 2,660 PROThanks again, 60 seconds of featurescript and I now have BOMs in "sensible mode".Happy Onshaper here.Cheers,Owen S.Business Systems and Configuration Controller
HWM-Water Ltd3
Answers
Here is the enum:
HWM-Water Ltd
I think the best looming may actually be creating an IR for this.
Cheers, Owen S.
HWM-Water Ltd
Have a good weekend, Cheers Owen S.
HWM-Water Ltd
Cheers,
Owen S.
HWM-Water Ltd
HWM-Water Ltd