Skip to main content
6-Contributor
September 2, 2021
Question

Read/write parameters on dimensions

  • September 2, 2021
  • 1 reply
  • 4991 views

I am using Creo Parametric 4.0 M140

I am trying to read and apply parameters on an annotation, specifically a driven dimension in a 3d model (PRO_DIMENSION or pfcITEM_DIMENSION). When I create a parameter on the modelitem, the parameter gets applied to the .prt that owns the dimension. How do I set a parameter on the actual dimension? What modelitem associated with the dimension owns the parameters? I can access these parameters manually by selecting parameters in the right click menu of the dimension so there must be a way of doing this programmatically.

1 reply

16-Pearl
September 3, 2021

HI @srosell,

 

Can you please tell me what are you trying to achieve by associating a parameter to the driving dimension?

 

Do you want the dimension to be controlled using a parameter?

 

Let me know your end requirement. I think i will be able to help you then.

 

Regards,

Deepak

srosell6-ContributorAuthor
6-Contributor
September 7, 2021

I have created a custom Modelcheck that reports on overwritten dimensions. There are a few instances where an overwritten dimension is valid so I want the user to have the ability to ignore a found overwritten dimension so it does not pop up in future Modelchecks. My thought was I would add a parameter to the dimension that would mark it as ignored. The problem I'm running into though is that i cant seem to apply a parameter to the dimension modelitem.

September 7, 2021

instead of attaching a parameter to a dimension make a string parameter to hold dimension id's to ignore, make id's comma-delimited. your checks would be as simple as checking for a substring within a main string.