Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
MISSING IMPORTS IN STD SHEET METAL FEATURE?
shawn_crocker
Member, OS Professional Posts: 865 PRO
I have been adding a few customizations to the std, sheet metal model feature. I am noticing some normal code does not work in this feature as those the feature does not have some key imports. TableData does not work. I am also not able to use setVariable either. When using setVariable to code shows no errors but the sheet metal feature will completly fail.
CUSTOM SHEET METAL FEATURES | SHEET METAL PART (onshape.com)
CUSTOM SHEET METAL FEATURES | SHEET METAL PART (onshape.com)
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,683For performance reasons, it is recommended to import common.fs instead of geometry.fs (the default) and then add any specific libraries you need.Senior Director, Technical Services, EMEAI0
Answers
Some enums of the sheet metal library feature may be internal (i.e. missing the export keyword). If that’s the case, you’ll need to make a copy of those and change the name. You can see some examples of that in the hole FS UI I posted yesterday.
Thanks so much Neil. common directly solve the issue with TableData not being declared. And it doesn't seem to cause all the duplicate warnings