The PTC Community will be on read only status starting March 23rd in preparation for moving our platform to a new provider. Read more here
I created a script as shown in the image and saved it as a .lst file. I also referenced the same file in config.pro. However, when I create a new parameter in Creo, the dropdown list does not appear.
Please help me resolve this issue.
Note - I also tried with .txt file instead of .lst
Creo Version - 11.0.5.0
Create lst file and reference it config.pro
In parameters dialog select Tools>Update Restriction Definition, Check the box to Convert model non-restricted... and apply.
Please confirm you went through this exhaustive article : https://www.ptc.com/en/support/article/CS51011
I personally added the block examples and the animations back then so you could re-use them easily.
by comparison, it seems like you try to create an enum list with a default value.
In the article, enum examples don't have a default value.
First to confirm this assumption, please comment the Default line or re-use one of the examples and iterate from there.
Hi @remy ,
I have checked the article you have shared. I already fixed the issue.
Currently I am exploring how to add the empty values in enum in restricted Parameters. Please see the below from my lst file. Can you please help me on this?
ND_ParamDefArr_K01 = {
{ Name = BOM
Type = string
Default = ''
Enum = { '', 'Normal', 'Reference' }
Access = full
}
}
As far as I understand, we cannot assign null values to an enum. Is there any alternative way to achieve this?
So your request has shifted and you need to add a default value on an enum on one hand and that default value needs to be empty on the other hand.
Try the space character :
ND_ParamDefArr_K01 = {
{ Name = BOM
Type = string
Default = ' '
Enum = { ' ', 'Normal', 'Reference' }
Access = full
}
}
