Skip to main content
15-Moonstone
December 6, 2019
Question

Family table parameters in drawing

  • December 6, 2019
  • 1 reply
  • 9757 views

Hi,

 

I have created a family-table that has some instances. Then I created a drawing of the generic and replaced it with one of the instances of the family-table. In this drawing I want to display the name of the current instance. I want to create a simple (no repeatregion) table that shows the instance name and the common name of the current instance:

 

I tried the following:

 

FamilyTableInstanceName:         |         &fam.inst.name

 

I also tried &fam.inst.param.value and &fam.inst.param.name

 

Creo recognizes the parameter as parameter, but no instance-name is displayed. I also tried to switch symbols, but it doesn't show any value.

 

&fam.inst.param.value is automatically replaced with &fam.inst.param.value:1 and when I switch symbols it shows: fam.inst.param.value, but not the name of the instance.

 

Displaying other parameters of the assembly like &length:1 works.

 

So how can I show the current name of the instance (instance name and common name) in a drawing ?

 

Thanks,

Maik

 

 

 

1 reply

24-Ruby III
December 6, 2019

Hi,

if you create drawing of family table instance (part), then you can use:

  • &model_name to show instance name
  • &PTC_COMMON_NAME to show instance common name
  • &paramname to show instanace parameter value

 

15-Moonstone
December 6, 2019

Thanks Martin. It works perfectly.

 

Now I'd like to save every drawing as *.pdf-File.

To do so I tried to created a mapkey. In this mapkey I go to File -> Save as -> PDF

The Filename in this Dialog-Box per default is the name of the drawing. But I want it to be the Instance-Name(&model_name + ".pdf"). It there a possibility to input the Instance-Name automatically ? Maybe it possible to insert a parameter in the Mapkey-code ? So I don't have to stop the Mapkey and insert it manually every time I execute the mapkey.

 

My plan is to somehow automatically open every instance (>50 instances) and execute the mapkey that replaces the drawing-model and saves it as .pdf-File. Is Creoson the easiest option to do that or are there other ways as well ?

 

Thanks

24-Ruby III
December 6, 2019

@MaikTheBike wrote:

Thanks Martin. It works perfectly.

 

Now I'd like to save every drawing as *.pdf-File.

To do so I tried to created a mapkey. In this mapkey I go to File -> Save as -> PDF

The Filename in this Dialog-Box per default is the name of the drawing. But I want it to be the Instance-Name(&model_name + ".pdf"). It there a possibility to input the Instance-Name automatically ? Maybe it possible to insert a parameter in the Mapkey-code ? So I don't have to stop the Mapkey and insert it manually every time I execute the mapkey.

 

My plan is to somehow automatically open every instance (>50 instances) and execute the mapkey that replaces the drawing-model and saves it as .pdf-File. Is Creoson the easiest option to do that or are there other ways as well ?

 

Thanks


Hi,

if I were you I would generate&play trail file. I can give you more information if you send me your trail file.

  1. launch Creo
  2. open drawing
  3. apply Date&time command
  4. replace drawing model
  5. save PDF (enter requested file name)
  6. exit Creo
  7. locate latest trail file and send it to me

Also open family table in Excel and copy instance name list into txt file and send it to me.

 

I will prepare BASIC program which takes trail filetxt file as input and generates new trail file for you. This BASIC program repeats block containing replace+save_PDF commands 50-times and puts requested name into every block. Then you simply play this new trail file.