Can FeatureScript use a document name to set part attributes?

RhettRobinson
RhettRobinson Member Posts: 250 ✭✭✭✭

I recently made a FeatureScript to help color code parts according to a company SOP. It basically has a drop down of the part type and then sets the appearance of the part accordingly. Is it possible to have FeatureScript read the name of a document (the documents this would apply to all follow a strict naming procedure) to eliminate the need for the drop down altogether?

Comments

  • _anton
    _anton Member, Onshape Employees Posts: 555 image

    Nope - if we allowed that, renaming the doc would make everything regenerate. You could import a configured variable studio that generates some data you then process in a custom feature?

  • RhettRobinson
    RhettRobinson Member Posts: 250 ✭✭✭✭

    That makes sense why that would not be a good thing. It seems that my solution is what will work moving forward then to keep things simpler.