Skip to main content
1-Visitor
October 29, 2016
Question

Enter Dimension Values into Part Description

  • October 29, 2016
  • 3 replies
  • 4578 views

I am trying to enter a dimension value, such as d1 into a parameter such as "Part_Decription."

I have tried using a relation statement like: Part_Description = "PIPE" + istr(@d1). All that this gives me is: PIPE istr(@d1)

What I am trying to do is extract the ID and OD from a tube and place it into my part description. I would also like to do the same thing for the length of the pipe.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

3 replies

1-Visitor
October 29, 2016

itos() is the function you want.

mlocascio1-VisitorAuthor
1-Visitor
October 29, 2016

What does the relation look like? I am guessing it will look something like: Part_Description = "Pipe" + itos(@d1)   Is that correct?

1-Visitor
October 29, 2016

I expect you don't need the "@" sign either. Creo already knows that d1 is a parameter.

1-Visitor
October 31, 2016

Depending upon your needs, you can create a note in the model and set the parameter to report it. Once you create a note, a new option will appear from the "Type" drop down list as in the following images.

The reason why I said, "Depending upon your needs...", is because this is quirky and PTC doesn't want to make it as awesome as it can be. You can craft the note like you would on the drawing, but it will only show the note number in the parameters. I find myself opening a family table instance, or an assembly BoM containing the component, to see what the value actually looks like in the end. I can tolerate that, but here's the worst of it: if you make a family table of your component, and then show a family table driven repeat region parts list on the drawing, all the values will report what the generic is set to.

It sucks, I know. That is why I typically only use this method for reusable hardware, like internal nuts, bolts, etc, that sort of don't have their own drawings (I don't want to try and explain this internal mess when there are clearly better ways). In doing so, they are always only used in assemblies and in an assembly driven repeat region BoM, this function works as you would expect. I think there is something going on with a secondary validation that enables the BoM table to show correctly.

Problem Reference:

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS177911

mlocascio1-VisitorAuthor
1-Visitor
November 3, 2016

I want to thank you for all of your assistance. It took me a day to learn how to do what I wanted to do, but it was worth it.