Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

external parameter

html26

New member
hello
i'm driving my parameters by an external file .lst witch i connect with pro/engineer by the config.pro option : "restricted_val_definition"
i'm asking for this:
if i insert in my model a parameter for exemple "FRED" can i get a window parameter leting me to choose all others FRED values?? or if i insert a parameter "GAMA" can i have a window parameter leting me to choose all GAMA values??


2008-01-14_163125_File.lst.zip
Edited by: html26
 
I've no experience with restricted paramater usage but to
rephrase the question; you want an interface something like that
available when placing a Family Table part instance?


If you haven't seen it already; Help / Fundamentals / Relations
and Parameters / Restricted Value Parameters / To Create a
Restricted Value Parameter; item 6 ... Whew! Those path names
get long ... might help.
 
no, it is not that.
i would like in the format table drawing to get a cel with &MATERIAL and another cel with &DESIGNER (see my file.lst)
So, for exemple in the 3D model i give for the MATERIAL parameter GAMA as a value, i will get in the format table drawing GAMA in the MATERIAL CEL, and in the DESIGNER CEL I want the posibility leting me to choose the DESIGNER parameter value (FRED, HANS, or Gall). is that possible??
 
Sorry, probably couldn't help anyway, but
PLEASE indicate the version number --- WF3 ---
so no more of us version challenged individuals
waste time downloading.
 
since this was brought up;
When you apply definitions, the system updates model definitions using the restriction definition file.
To apply definitions, specify the directory path to restriction definition file by setting the configuration option restricted_val_definition.
Note: The restriction definition file is loaded only at Pro/ENGINEER startup.

I point the restricted_val_definition to a file in my startup dir.. the example I found in help...
[url]http://www.kxcad.net/proe/fundamentals/fund_seven_sub/exampl e__sample_restriction_definition_file.htm [/url]
and I get;
The External File for Restricted Parameters was not loaded because of wrong format.
on startup... have simplified to just num_1..still have error... any insights?
 
I don't do much detailing so I'm really rusty on this stuff.


If I should try to do what you're doing ...


_ You have a table (or notes?) in your format.
_ When you create a drawing using the format (not template)
you want the drawing to pull the material value from the
part file and ->prompt<- for the designer to be picked
from a list of values.


... Correct?
 
i don't know so why!!! the file is imported well in Wildfire 3.0 without error





Is it a WF3 thing ? As I'm trying with WF2... the restricted_val_definition option is there in 2...and I get the load error on startup..


It would be nice to have the parameter values as picks
 
i'm using Wildfire 3.0 M120.

Here i will explain well the problem.
The solution that i want is a relation using "if"
I want that if the DESIGNER is FRED, i would get GAMA as MATERIAL.
And if DESIGNER is Gall, i would like to have Aluminium as MATERIAL.
I want this to be done automatically.
I can do this manually as in my drawing file, but i would like it to be automatic.


i want write relation witch look like that:
IF &DESIGNER=FRED
MATERIAL=GAMA
IF &DESIGNER=Gall
MATERIAL=Aluminium

So,
when modeling a part, and making its drawing, in the format table, i
would like the information above. If DESIGNER is FRED, in the other
cel, i would like to have GAMA as MATERIAL, and if DESIGNER is Gall, i
would like to have Aluminium as MATERIAL.

that's all
 
Can you just add the code to the part so that it sets the parameters to the correct values? Then you can get the information from the part in the drawing?

Jim
 
Bill,


In WF2:
Help / Fundamentals / Relations and Parameters / Parameters /
About Parameter Properties - it states that in order to define
a Restricted Parameter the config opt restricted_values must be
set to YES. I can't get it to swallow that. I also get a format
error on startup trying to load a restriced value definition file.


- - - - - -


HTML26,


I'm with Jim; restrict the Designer param and create a relation
in start part(s) with conditional statements to set the Material
param ...


Material = "" /* no valid designer, no material can be spec'd
/* without coming here and seeing the rels.
IF Designer == "Bill"
Material = "Bill stuff"
ENDIF
IF Designer == "Bob"
Material = "Bob stuff"
ENDIF
...


Thinking about it; what more do you need than that, forget the
parameter restriction and fire the ones that can't figure it out?


smiley2.gif
 
jeff...


it states that in order to define
a Restricted Parameter the config opt restricted_values must be
set to YES.


I can't get it to swallow that. I also get a format
error on startup trying to load a restriced value definition file.





No not yes ... but a file name such as res_vals.lst.. or what ever your file name is.


I tryed html's file but still get same format error.. but it at least tries to load that file....





ND_ParamDefArr_K01 = {


{ Name = DESIGNER


Type = string


Default = ''


Enum = {'FRED', 'HANS', 'Gall'}


},


{ Name = MATERIAL


Type = string


Default = ''


Enum = {'GAMA', 'Aluminium', 'Steel', 'Zinc', 'silver'}


},


{ Name = COLOR_MATERIAL


Type = string


Default = ''


Enum = {'white', 'black', 'grey', 'light'}


}


}
 
oNE THING TO MENTION ON RELATIONS. Oops... Drafting mode.

When setting a string to a blank, I have noticed that " " works better than "". Sometimes if you do not put a space in the string it will revert to the previous value.

Just something to look out for.

Jim
 
> No not yes ... but a file name
> such as res_vals.lst.. or what
> ever your file name is.


I can't get restricted_values (yes) to go.
I can get config opt restricted_val_definition (path) to go.


I also get nothing clicking a param cell in the Restricted column.
(Tools / Parameters)


My thinking is that this is one of those partly done deals in WF2
and won't work (?).


> " "


Had never seen that, Jim. Thanks for the heads-up.



Edited by: jeff4136
 
I may have been mistaken, but it seems I had this happen in the past. Just keep na eye out for it and if you have a problem with not being able to reset, this would be the cause.

Jim
 
conrat...bingo


it has to be;


Type = string


Default = ' ' ..... not..... Default = ''


with a space btwn the '


smiley32.gif
smiley32.gif
smiley32.gif



loads fine and carrys in the ranges and pick values
 
Hi,


I tried to load the file. Proe says that it read the file, but it is not loading the parameters. I couldnot find the parameter 'restricted_values' in the config opt.


Regards,
Shankar
 

Sponsor

Articles From 3DCAD World

Back
Top