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.

Cross Highlight with custom table

test_user291test_user291 Member Posts: 5

Hi,

I am using custom tables but i can't manage to get the cross hightlight between the row and the corresponding part. Do you know if there is a way to activate it ? Thank you for your answer.

Answers

  • chadstoltzfuschadstoltzfus Member, Developers, csevp Posts: 150 PRO

    Hard to know exactly what's not working without seeing the code. But all you should have to do is put the query to the entities you want to highlight in the tableRow function.

    So just

    tableRow({ "columnId" : columnValue }, queryToHighlight);
    

    Applications Developer at Premier Custom Built
    chadstoltzfus@premiercb.com
  • MichaelPascoeMichaelPascoe Member Posts: 2,051 PRO

    @chadstoltzfus nailed it.

    Don't forget to complete Onshape's FeatureScript Fundamentals Course.

    CADSharp does cover custom tables in detail in our CADSharp FeatureScript Course. But you should be set if you do what Chad mentioned.

    It depends on your specific application but I've found that sometimes it's nice to grab all edges and faces of the part and pass those into the query. That way if you select any edge of the part, it will highlight it in the table row.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
  • test_user291test_user291 Member Posts: 5

    Great ! Thank you very much. It works well now from CustomTable to 3D but not from 3D to CustomTable. Is it normal ? Is there a way to have the cross highlight in both ways ? Thank you for your answer.

Sign In or Register to comment.