Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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_sparksowen_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

Best Answers

  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,210
    Answer ✓
    That'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 Inc
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,210
    Answer ✓
    This 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 Inc
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Answer ✓

    Thanks 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 Ltd

Answers

  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    edited May 2018
    Thanks Neil. 

    Is there anyone's desk that I can bribe you to loom over to make it happen? :p (As a future release, please don't go to any trouble today.)

    Cheers,

    Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    @owen_sparks

    I think the best looming may actually be creating an IR for this.
    Jake Rosenfeld - Modeling Team
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Thanks Jake, that I can do.
    Cheers, Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,210
    Answer ✓
    That'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 Inc
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    That's fine, I think it's simple enough that I'll just add it (not next release, but "coming soon").
    Excellent, thanks for that, much obliged.

    Have a good weekend, Cheers Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,210
    Answer ✓
    This 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 Inc
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Outstanding, thank you @ilya_baran, I'll make good use of it on Monday.

    Cheers,
    Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Answer ✓

    Thanks 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 Ltd
Sign In or Register to comment.