Invisible (Sheetmetal) parameters in ReferenceParameters collection?

Invisible (Sheetmetal) parameters in ReferenceParameters collection?

miechh
Collaborator Collaborator
406 Views
2 Replies
Message 1 of 3

Invisible (Sheetmetal) parameters in ReferenceParameters collection?

miechh
Collaborator
Collaborator

 

I would like to change the custom properties of all the renamed parameters in all parameter collections. For this I already found some code snippets that look at the property "Renamed", when it's true, this is a parameter to change its properties of. But when running the code, and having a watch on what parameters are parsing through the code, via the API I found out that in the ReferenceParameters collection are more parameters of which the property "Renamed" is true than the parameter list in the Inventor Part environment shows (see picture below). The extra 9 parameters that are in the collection are all related to sheet metal parts, but my part is no sheet metal part. I've tried to find out how to distinguish the sheet-metal-reference parameters (which are not visible in the parameters list) from the driven parameters that I induced in my part, but no success. Even though the 'visible'-property of all sheet metal parameters is set to "True", they are invisible in the parameters list. Does anyone know how to skip the parameters not visible in the parameters list?

 

ParameterList.PNG


Product Design Suite 2024
Inventor 2024 (v 28.20.27200.0000), Vault Basic 2024
Fusion 360
HP Workstation Z4
Intel Xeon 3.4GHz
32GB RAM
Windows 10 Professional (64bit)
0 Likes
Accepted solutions (1)
407 Views
2 Replies
Replies (2)
Message 2 of 3

HermJan.Otterman
Advisor
Advisor
Accepted solution

Hello Miechh

 

the parameters ARE visible in your parameter list. except they are not alle grouped under the reference parameters.

in the (API) componentdef.parameters there are 3 collections (A)

- User parameters

- reference parameters

- model parameters

 

under the componentdef.parameters you see all these parameters.

 

I don't think there is a property telling that a parameter is a sheetmetal parameter

all the parameters used standard for sheetmetal are listed under the componentdef.parameters.referenceparameters in the obeject model

 

so you know the names of them, you could use that to skip them.

 

I think your template was a sheetmetal part, converted to a normal part, that is why you have the sheetmetal parameters.

If you start with a normal part template that ships with inventor, you don't have the sheetmetal parameters.

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 3 of 3

miechh
Collaborator
Collaborator

Thanks HermJan,

 

These parameters are indeed always the same, so in my code I filter these out. It's working now.


Product Design Suite 2024
Inventor 2024 (v 28.20.27200.0000), Vault Basic 2024
Fusion 360
HP Workstation Z4
Intel Xeon 3.4GHz
32GB RAM
Windows 10 Professional (64bit)
0 Likes