Hierarchy list

S

Seagull

Guest
Hi All,

I have a skill code which dumps the cdf parameters of all the
instances in the current view

foreach(cv~>instances
fprintf(outPort " %s\n" inst~>name)
foreach(param cdfGetInstCDF(inst)~>parameters
fprintf(outPort " %s: %L\n" param~>name
param~>value)
) ;foreach
);foreach


Can anybody tell me how to get the cdf parameters of all the instances
for an hierarchy viewlist

Thanks and Regards

Murali
 
Get the master of each instance and run the same code on it.

Here is a basic coding example (warning: recursive), it needs some
LINT to work properly no doubt.

procedure(SEAGULLcdfGetInstCDF(cv)
foreach(inst cv~>instances
SEAFULLcdfGetInstCDF(inst~>master)
fprintf(outPort " %s\n" inst~>name)
foreach(param cdfGetInstCDF(inst)~>parameters
fprintf(outPort " %s: %L\n"
param~>name param~>value)
) ;foreach
)
)

On Jun 22, 11:33 pm, Seagull <emdha...@gmail.com> wrote:
Hi All,

I have a skill code which dumps the cdf parameters of all the
instances in the current view

foreach(cv~>instances
fprintf(outPort " %s\n" inst~>name)
foreach(param cdfGetInstCDF(inst)~>parameters
fprintf(outPort " %s: %L\n" param~>name
param~>value)
) ;foreach
);foreach

Can anybody tell me how to get the cdf parameters of all the instances
for an hierarchy viewlist

Thanks and Regards

Murali
 
Get the master of each instance and run the same code on it.

Here is a basic coding example (warning: recursive), it needs some
LINT to work properly no doubt.

procedure(SEAGULLcdfGetInstCDF(cv)
foreach(inst cv~>instances
SEAFULLcdfGetInstCDF(inst~>master)
fprintf(outPort " %s\n" inst~>name)
foreach(param cdfGetInstCDF(inst)~>parameters
fprintf(outPort " %s: %L\n"
param~>name param~>value)
) ;foreach
)
)

If you mean you already have a list you want to run it on, what is the
format of the list?
 

Welcome to EDABoard.com

Sponsor

Back
Top