Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
I know I can make a note that displays the text of a parameter, but can I move the location of the note based on a parameter? Lets say my parameter is called catalog_num and is a string. The contents of that string can be "partname-left" or "partname-right". How can I make the note move based on the left or the right part of the string?
Solved! Go to Solution.
I'm using Creo 2 but you should be able to do this in WF4/5. Create a coordinate system in the model that appears in a view where you want the text to appear. Create a note in your drawing using the "on item" type and pick the coordinate system to place it. Go back to the part and create a relation:
if catalog_num == "partname-left"
$d10=50
else
$d10=-50
endif
Where d10 is dimension for the axis of the coordinate system that places it where you want and 50 or -50 is the postion you would like depending on whether or not . The $ in front of the d10 is to allow for negative values.
Few notes: the coordinate system placement is dependent on the placement of the view. The relation above has a default location of "partname-right" just in case there is a typo in the catalog_num. The relation above will work only if catalog_num is a parameter in the model, not the drawing.
I'm using Creo 2 but you should be able to do this in WF4/5. Create a coordinate system in the model that appears in a view where you want the text to appear. Create a note in your drawing using the "on item" type and pick the coordinate system to place it. Go back to the part and create a relation:
if catalog_num == "partname-left"
$d10=50
else
$d10=-50
endif
Where d10 is dimension for the axis of the coordinate system that places it where you want and 50 or -50 is the postion you would like depending on whether or not . The $ in front of the d10 is to allow for negative values.
Few notes: the coordinate system placement is dependent on the placement of the view. The relation above has a default location of "partname-right" just in case there is a typo in the catalog_num. The relation above will work only if catalog_num is a parameter in the model, not the drawing.
Thanks it is working great