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.

Regarding edit logic function

konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
edited March 2021 in FeatureScript
There is a feature which imports some part studio bodies with attributes by means of instantiator and depending on attribute values it is desireble to switch feature definition to some state. I cannot resolve the attribute query inside edit logic function because I beleve the entities don't exist in context yet. And I do not want to perform import inside edit logic to just get some attribute flag, I'm not sure if it is even possible, but anyway it would be too time consuming. So the question is: is there any approach to interact with edit logic function (or widely - with definition state) from inside of the feature function thread? Im my case I just want the attribute value of imported entity to affest some enum value of definition.

Best Answer

  • caden_armstrongcaden_armstrong Member, User Group Leader Posts: 127 ✭✭✭
    Answer ✓
    Are you trying to pass information from the main feature thread back into the editing logic function? 
    You can only go from editing logic -> main feature, not the other way around.

Answers

  • caden_armstrongcaden_armstrong Member, User Group Leader Posts: 127 ✭✭✭
    Answer ✓
    Are you trying to pass information from the main feature thread back into the editing logic function? 
    You can only go from editing logic -> main feature, not the other way around.
Sign In or Register to comment.