Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

occpCreateProp

occpCreateProp(
t_name 
g_value @key (nonInheritable nil) (noEval nil)
)
=> r_occpProp / nil

Description

Creates an occurrence property structure. It is returned from the occpGet<Type>Prop family of functions and provided as an argument to the occpSet<Type>Prop family of functions.

Arguments

t_name

The name of the property.

g_value

The value of the property.

nonInheritable

Specifies that the property value is non-inheritable. The default value of nil indicates that the property value is inheritable.

noEval

Specifies that the property value is not subject to evaluation. The default value of nil indicates that the property value is subject to evaluation.

Value Returned

r_occpProp

The property name structure, as returned by occpCreateProp.

nil

The occurrence property structure could not be created.

Example

> MyProp = occpCreateProp("variant" "lowPower" ?noEval t)
> printf("name=%s value=%L nonInheritable=%L noEval=%L\n" 
    MyProp->name  MyProp->value  MyProp->nonInheritable  MyProp->noEval)
name=variant value="lowPower" nonInheritable=nil noEval=t
t

Related Topics

Hierarchy Database Functions

Occurrence Property Functions

Parent/Child Database Functions


Return to top
 ⠀
X