cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Creating relation for Note parameter to note

KB_9100625
5-Regular Member

Creating relation for Note parameter to note

Hi i want to create a relation that creates a note parameter. like note A

KB_9100625_1-1659544985840.png

 

 

 i can make number parameters, strings parameters,  etc. but not a note parameter (the current parameter is a string i want it to be a note parameter

KB_9100625_0-1659542570027.png

KB_9100625_0-1659544967818.png

 

 

ACCEPTED SOLUTION

Accepted Solutions
tbraxton
22-Sapphire I
(To:KB_9100625)

Yes, here is a sample drawing and model (Creo 7) that implements the scheme you describe above.

 

There is a parameter generated within a model note as seen here. That can be used in a relation.

tbraxton_0-1659553656813.png

 

Here are the model parameters used to generate the note seen in the drawing

 

tbraxton_1-1659553811146.png

 

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

View solution in original post

16 REPLIES 16
tbraxton
22-Sapphire I
(To:KB_9100625)

You can use a parameter value within a note which is what I gather you are attempting. Once the value of Gen_Note1 is defined you can then use that value in a note by using the following syntax "&Gen_Note1" .

 

Keep in mind that if the string value of a parameter is lengthy then using it to generate a note is not the best way to handle this in Creo IMO.

 

One option is to define your standard notes in a text editor (i.e. MS Word) and include the parameter names for values that will vary when the note is placed into a model or drawing. This will make it easier to maintain the standard notes and enable re-use.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
KB_9100625
5-Regular Member
(To:tbraxton)

no I'm trying to create the parameter gen_note1 as a note parameter through a relation like parameter A here

KB_9100625_0-1659544936782.png

 

 

tbraxton
22-Sapphire I
(To:KB_9100625)

I am still not clear one what you are attempting to do.

 

Your goal is to create a parameter "A" of type note by evaluating a relation in a part model?

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
KB_9100625
5-Regular Member
(To:tbraxton)

so there are 5 parameter types real number, string, interger, yes no, and Note. I want to create a note parameter through a relation instead of the + symbol. 

I can make the other parameters through relations like note="1" for sting or note='1' for numbers but i cant figure out the command to make a note parameter called Gen_note similar to the parameter seen in A

tbraxton
22-Sapphire I
(To:KB_9100625)

 I am not aware of how to do this but am elaborating on some thoughts about how it might be done.

 

Creo parameters of type note properties:

◦ Note—The value for this parameter is the ID of a model note.

 

In order to designate the ID of a model note that note must exist prior to the creation of the parameter. This is why if you create a parameter in a model without a note you can not even select the note type.

 

If we assume at least one note is present in the model (Note_0) then you would need to create a relation that could obtain the note ID and assign it to a parameter "Gen_Note" and set it to type note. I am not aware of any method for a relation to "query" the model to obtain an annotation ID from an existing note. It is in theory is possible to assign it to a parameter  but the only way I can see currently is if there is a set system syntax for a model note ID (an analog to FID:Feature_Name) to use in relations and you made an assumption about the existence of the note.

 

Maybe someone else can add if such a syntax exists for a model note ID when used in a relation.

 

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
KB_9100625
5-Regular Member
(To:tbraxton)

OK i think i could work with that. do you know if there is a way to relate the info in a note to a parameter. ie if the note says hello world can ti do something like &note and it would appear in the parameter?

tbraxton
22-Sapphire I
(To:KB_9100625)

Yes, here is a sample drawing and model (Creo 7) that implements the scheme you describe above.

 

There is a parameter generated within a model note as seen here. That can be used in a relation.

tbraxton_0-1659553656813.png

 

Here are the model parameters used to generate the note seen in the drawing

 

tbraxton_1-1659553811146.png

 

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
KB_9100625
5-Regular Member
(To:tbraxton)

so how do i find the info in the first screen shot?

tbraxton
22-Sapphire I
(To:KB_9100625)

Select note in the model tree RMB and select parameters from the drop down menu.

 

tbraxton_0-1659554476043.png

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
KB_9100625
5-Regular Member
(To:tbraxton)

i have a older version of creo so i cant open your example but i am getting a error when i try to use the

PTC_NOTE_TEXT

KB_9100625_0-1659556115252.png

 

tbraxton
22-Sapphire I
(To:KB_9100625)

What version of Creo are you using? I think annotations are not identical across builds as the MBD functionality has evolved. You need to access that parameter in the context of the annotation element (note). It is a parameter within the model note.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric


@KB_9100625 wrote:

OK i think i could work with that. do you know if there is a way to relate the info in a note to a parameter. ie if the note says hello world can ti do something like &note and it would appear in the parameter?


Hi,

maybe following information is the right one.

 

I found https://www.ptc.com/en/support/article/cs121489 article. It says that you can use following syntax:

MYPARAM=PTC_NOTE_TEXT:NID_AE_NOTE# (Where # is the ID of the 3D Model Note).

 

In attached Creo 4.0 model I used following relation:

x="<<< "+PTC_NOTE_TEXT:NID_NOTE_001 + " >>>"

 


Martin Hanák
KB_9100625
5-Regular Member
(To:MartinHanak)

that works! thank you!!!

KB_9100625
5-Regular Member
(To:MartinHanak)

only problem i have now is the string limit of 80 charaters

BenLoosli
23-Emerald II
(To:KB_9100625)

That is not a problem, it is a limitation. ☺

That has been the limit for parameters since Pro/Engineer V1, or when parameters were put into a table.

There have been many requests to expand it, but so far, PTC has not done it, even when they redid the parameter table UI a few years ago.

Your best workaround is multiple parameters concatenated when put into a note on the face of the drawing.

KB_9100625
5-Regular Member
(To:BenLoosli)

so my problem become trying to read these parameters as one whole note into our 3D PDF system 

Announcements


Top Tags