Skip to main content
1-Visitor
August 23, 2013
Solved

text driven by multiple parameters on a solid model

  • August 23, 2013
  • 4 replies
  • 3218 views

I would like to add a text on my gear (solid part) using data from my parameters.

Normally I would write: "Mod &m, &z teeth" refering to my parameters with the "&".

Sadly the text line does not accept this.

Any suggestions?

Clipboard02.jpg


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.
Best answer by JonathanHodgson

You could use a relation to generate a string parameter, converting the numbers to strings within it.

I think it would be something like:

label = "Mod " + itos(m) + ", " + itos(z) + " teeth"

and then choose the 'label' parameter for your text, as already shown.

This gets a little more tricky if m is not an integer - this has been covered elsewhere though.

4 replies

1-Visitor
August 23, 2013

Hi, split the note up into 4 elements within the one feature. First bit, would be manually entered text "mod", constrain/dimension it, next bit would be use parameter, select your parameter "M", constrain/dimension it, relative to the "mod" text. Repeat the procedure, for number of teeth text. Hopefully, this makes sense to you.

Hopefully, i have understood your problem.

John

bp_011-VisitorAuthor
1-Visitor
August 23, 2013

Thanks,

It makes sense, I was just hoping there would be an easier way..

for example, is there a way to make a new parameter which contains the combined text and use this?

1-Visitor
August 23, 2013

How about you make the value of a single parameter read (string) "mod 3 118 teeth". Not quite ideal, but its a work around.

John

14-Alexandrite
August 23, 2013
13-Aquamarine
August 23, 2013

You could use a relation to generate a string parameter, converting the numbers to strings within it.

I think it would be something like:

label = "Mod " + itos(m) + ", " + itos(z) + " teeth"

and then choose the 'label' parameter for your text, as already shown.

This gets a little more tricky if m is not an integer - this has been covered elsewhere though.

bp_011-VisitorAuthor
1-Visitor
August 23, 2013

Works like a charm, thanx!

Patriot_1776
22-Sapphire II
August 27, 2013

Note: You can also string together string parameters as well, like this:

PART_NUMBER = DRAWING_NUMBER + DASH_NO

NOMENCLATURE = DESCRIPTION1 + SPACE + SIZE

MATERIAL = ASMSPEC1 + SPACE + ASMSPEC2

So, I'm sure you can also string together any combination of integer and string parameters to get what you want.