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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to reduce &fam.inst.param.name in 2D region?

rvlasic
5-Regular Member

How to reduce &fam.inst.param.name in 2D region?

 

Dear all,

 

 

 

I would like to ask you about some possibility to reduce the name of parameter in 2D region on drawing.

 

In the Family table in a Part there is a Feature Parameter named “LENGTH”

 

I would like to show this on the drawing. So I will use the 2D Region. For showing the Name of parameter I will use “&fam.inst.param.name”. But in the cells is showing “LENGTH:FID_1354”.

 

Is there some possibility to show only “LENGTH” without “:FID_1354”?

 

For example:

 

For showing number of decimal places we use in “&fam.inst.param.value” sign “[.1]”. Exist something like this also for the name?

 

 

 

Thank you for your meaning.

 

Best regards

 

Roman

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

  • I opened konzola.prt
  • I moved relation from Initial section to Post Regeneration section (see combo box in bottom right corner of Relations dialog box)
  • I regenerated part
  • I verified all instances
  • I saved part

  • I opened trial.asm
  • I regenerated assembly (and assigned density, when asked)
  • I saved assembly

Now everything is in GREEN state.

MH


Martin Hanák

View solution in original post

9 REPLIES 9
mender
6-Contributor
(To:rvlasic)

I have not tried this myself, but this may work:

In the region with fam.inst.param.name, use Repeat Region > Relations to make a local parameter 'myname', and a relation to drive it from fam_inst_param_name and do such processing as is desired (here, searching for : and getting the substring up to but not including the colon), and call out myname instead of fam.inst.param.name.

Give it a try?

Hi,

I tested your suggestion without success.

Working solution:

  • in generic model, define Post Regeneration relation ... MYLENGTH=LENGTH:FID_1354
  • remove LENGTH:FID_1354 parameter from family table
  • add MYLENGTH parameter to family table
  • verify all family table instances

MH


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

Hi Martin,

thank you for your help.

I have to say... I know this way. But here i have another problém:

When i done this and verified instances=> the part has the GREEN sign. If I open the part second one (some instance) it isn't in GREEN but has a YELLOW sign.

And the same thing is by using the part in assembly.

and the second thing: there is the critical warning:

Relation LENGTH=LENGTH:FID_1354 override family table values of instance D\:práce\konzola1<konzola>

Thank you for your reaction.

Best regards

Roman

PS: Sorry for my english

Hi,

can you upload your model ?

See How to Attach a File to a Discussion Reply document describing upload procedure.

MH


Martin Hanák

Hi,

FYI when I open instance of my test model, the semaphore light is YELLOW, too. Regeneration changes it to GREEN.

MH


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

Hi Martin,

I am sending some example. is not the real model, because it is a company knowledge. But the problém is the same.

I know that aftere regen it is going to GREEN. But with using in a biger assembly ... i am little bit neurotic

Thank you for your reaction

Best regards

Roman

Hi,

  • I opened konzola.prt
  • I moved relation from Initial section to Post Regeneration section (see combo box in bottom right corner of Relations dialog box)
  • I regenerated part
  • I verified all instances
  • I saved part

  • I opened trial.asm
  • I regenerated assembly (and assigned density, when asked)
  • I saved assembly

Now everything is in GREEN state.

MH


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

Martin,

thank you very much.

everything is GREEN and without any critical warning.

This is exactly what I need.

Thank you very much.

with respect

Roman

rvlasic
5-Regular Member
(To:mender)

Thank you Matthew,

I tried this, but do not go.

I create the relation LENGTH=fam_inst_param_name, but I am not sure what does mean "do such processing as is desired(here, searching for : and getting the substring up to but not including the colon)

And how to call out the LENGTH?

I tried, but all values was hiden.

Thank you very much

Roman

Top Tags