Description Modifies the trimming specification for a specified surface.
Syntax SetTrimmingSpec n, spec
Parameters n As Long Node number of the surface.
spec As String The new trimming specification for the FRED entity.
Remarks This subroutine modifies the trimming specification for a specific FRED entity. If there is a problem, the subroutine sets an error and returns without modifying the FRED entity. The subroutine does not check the validity of spec.
The spec string contains a description of how surfaces and/or their local trimming volumes can be applied to the specified surface in order to trim the surface.
The allowed operations are: •Implicit surface name enclosed in quotes. Ex: "Geometry.Element.TrimmingSurf". •NOT operator (!) - The NOT operator is an exclamation point (!). It may be used anywhere in the expression that a NOT operation makes sense. It is particularly useful when placed in front of the initial quote mark of a surface name in order to use the opposite side of the surface. Ex: !"Geometry.Element.TrimmingSurf". •Trimming volume operator (#) - The pound sign (#) may be placed in front of the initial quote mark of a surface name in order to use the surface's trimming volume instead of the actual surface. Ex: #"Geometry.Element.TrimmingSurf". •AND operator (&) - The AND operator is the ampersand sign. •OR operator (|) - The OR operator is the vertical bar. •Parenthesis ().
Ex: ".Elem.Surf1" & !".Elem.Surf2"
Note that the string may contain embedded quotes. This can be achieved using the CHR(34) basic language function.
Ex: CHR(34) & ".Elem.Surf1" & CHR(34)
NOTE: If you are having problems setting a trimming specification (i.e. trimming spec is not showing up in the model) please verify that the "." has been properly appended to the beginning of the surface name when not using the full entity reference form.
See Also
Examples
|