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.

Can feature script write to file?

RootentityRootentity Member Posts: 21 ✭✭
I would like to play around with making a simple CAM feature script for drilling operations.  I think that the simplest way to integrate CAM into onshape would be as seperate operations in the feature tree that can be reordered. It would save on making an entirely new and seperate ui, but it's a useless endevour if the gcode can't be downloaded.

Can feature script create or write to a file/tab?

Comments

  • philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    Joshua - FeatureScript cannot write to a file, but it CAN write tonthr console - just use println(foo);
    when the feature has regenerated, you will have text that can be cut and pasted into a text file. 
    That fle can alsovthrn be uploaded (or 'updated') into a tab for versioning and storage. 
    Totally doable :)
    Philip Thomas - Onshape
Sign In or Register to comment.