Boolean
Inheritance Path
ObjectType Literal Enumere Boolean
Enumerated Values
Value | NLS Value | Comment |
---|---|---|
false
|
false | |
true
|
true |
BooleanInheritance PathObjectType Literal Enumere Boolean Enumerated Values
DateInheritance PathObjectType Literal Date EnumereInheritance PathObjectType Literal Enumere FeatureInheritance PathObjectType Feature Attributes
ExampleThe example below adds a URL at the bottom of a URL list associated with NamedURLs parameters using a ValuePointer. Let VP (ValuePointer) Let URLs(list) // Assign the parameter to Value Pointer variable, by any of the following method. //TestInt is an integer type user parameter // set VP = TestInt // VP->ValuatePointer(TestInt,"","Integer") VP = Parameters->GetAttributeValuePointer("TestInt") if(VP==NULL) exit // URL can be associated with a parameter by using 'NamedURLs' attribute of ValuePointer // First we have to retrieve all the URLs associated with the parameter URLs = VP.NamedURLs // To add an URL to a parameter, we require object of type 'KWANamedURL' Let myURL(KWANamedURL) // We initialize myURL and set its attributes (i.e. Name and URL location) myURL = new("KWANamedURL","myURL",Parameters) myURL.URLName="3ds" myURL.URLLocation="http://www.3ds.com" // Now we add the new URL at the end of the list of URLs URLs.Append(myURL) // We update the list of URLs associated with parameter VP.NamedURLs=URLs IntegerInheritance PathObjectType Literal Real Integer ListInheritance PathObjectType Feature List Let lst (List) lst.Append("car") Message("#", lst[1]) lst[1] = "wheel" Note:
When affecting a list, pay attention to volatile lists copied to persistent ones. If the
volatile list contains a large number of items, the persistent one contains a
large number of items as well, which impacts performance. The following
mathematical expression
3*x+1 ==> (3*x) + 1 can be encoded
as follows: List("+", List("*", 3, "x"), 1 ) LiteralInheritance PathObjectType Literal Attributes
MagnitudeInheritance PathObjectType Literal Real Magnitude NLSMessageInheritance PathObjectType Feature NLSMessage ObjectTypeParameterInheritance PathObjectType Feature Parameter PointerInheritance PathObjectType Feature Pointer Attributes
Positioned3DObjectInheritance PathObjectType Feature Positioned3DObject RealInheritance PathObjectType Literal Real Attributes
RuleContextType used to represent the execution context of a Business Rule. Inheritance PathObjectType Feature RuleContext Attributes
StringInheritance PathObjectType Literal String TypeInheritance PathObjectType Feature Type ValuePointerInheritance PathObjectType Feature Pointer ValuePointer Attributes
ExampleThe example below lets you add 1 mm to all lengths in a Part. let lAllSets, lAllLengths(List) let a(AdvisorParameterSet) let currentLength(ValuePointer) lAllSets = myPart->Query("AdvisorParameterSet","") for a inside lAllSets { lAllLengths = a->ListAttributesValuePointers("LENGTH") for currentLength inside lAllLengths { currentLength.Value = currentLength.Value:Length + 1mm } } VisualizableInheritance PathObjectType Feature Visualizable Attributes
Example
let attributes (List) let pad(GeometricFeature) let faces (List) let face (CATFace) set pad=PartBody\Pad.1 faces = pad->GetSubElements(2) set face = faces[1] face.Transparency=100 Message("Transparency=",face.Transparency) Graphical PropertiesGraphical properties are a set properties that you can apply to a feature. The supported graphical properties are:
Those properties can be:
EKL lets you:
Note:
You cannot directly specify persistent graphical properties. If you want to do so, specify
transient graphical properties using
Visualizable services and
then call KeepGraphicalModifications to transform transient
graphical properties into persistent ones. VolatileInstanceInheritance PathObjectType Feature VolatileInstance |