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.

Custom table issues

wayne_sauder
wayne_sauder Member, csevp Posts: 696 PRO

So I have been using Claude to write a couple of custom feature scripts. It has worked well for the tools, but then I realized that I needed custom tables to get info into my drawings. Claude wrote the custom table script, and it works with one hiccup. If I use the tool to create two or more parts in a parts studio, I can get the custom table to only show one part, and all looks good at both the parts studio level and the drawing tab; however, as soon as I go to release the drawing, it brings up all the parts in the parts studio as being tied to the drawing. Claude and I have noodled on this for a while and so far haven't found a way to break this. I am not proficient with code, so I am wondering whether this is beyond custom tables or if I'm overlooking something.

Here is the latest thing Claude guessed might be an issue but offered no good solution.

Two other things in my code could add to it, and both are guesses:

  • Each table scans every wire body in the Part Studio to find its Nth tube, so the evaluation touches all tubes.
  • Each row links to its tube’s wire through tableRow(..., entities). I could remove that link, but I doubt it changes the Part Studio-level reference.