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.

Datetimes in FeatureScript?

maxwell_smartmaxwell_smart Member Posts: 11

I do a lot of 3D print prototyping with onshape, and I've started to heavily use the convert to expression feature in sketch text elements.

I was wondering if there is a way to also include the current date/time in that so if I have a bunch of parts I know what the newest one is.

I realize this might be hard on the kernel because it would need to be re-evaluated every change (iiuc). I feel like something might be possible where it is delayed until export, which is the only time I'd really need to have the datetime actually part of the model.

Thanks

Comments

  • EvanReeseEvanReese Member, Mentor Posts: 2,117 ✭✭✭✭✭

    I'm pretty sure there's a deliberate avoidance of any functionality that could make a part regenerate differently with the exact same inputs, so I don't expect you'll ever have this as a live thing, but I could imagine it as a "click to update" kind of situation. Best I've got for now is to make a variable feature with a string of the date and update that manually. It would at least populate to all of the places it's used in that model. There is likely also a way to do it via the API, but I don't know enough about that.

    Evan Reese
  • maxwell_smartmaxwell_smart Member Posts: 11

    Thanks! yeah that was basically how I was going to do a workaround.

Sign In or Register to comment.