|
|
 |
 |
 |
 |
|
 |
Tecplot Add-on: Geometry to Zone
This user-contributed add-on is unsupported. Please use forums for questions and comments.
(Please let jim know if you have an add-on you'd like to share or link to.)
|
|
 |
|
|
 |
This add-on transforms selected geometries into a Tecplot 1-Dimensional Zone. It operates only on geometries of the type LINE3D or LINE consisting of a single polyline. It disconnects geometries by duplicating the first data point in the geometry and assigning that data point to a variable that is blanked. All other points in the data line are set to -1 * blanking variable value. For example, if you set your blanking variable value to -1, then the first data point in the new zone representing that geometry will have a value of -1, with all other data points from that geometry the blanking variable value will be set to 1.
- Written by: Michael Connelly
- Compatible with: Tecplot 360, Focus, Tecplot 10
- Known Limitations: Ensure you're running the correct version for your version of Tecplot!
- Instructions:
- Right-click download the dll.
- Copy the GeomToZone.dll to your tecplot bin directory. For example, %TEC_360_2009%/bin
- Edit your tecplot.add file and append this line:
$!LoadAddon "GeomToZone"
- Start Tecplot
- A "TecGeo" menu option is added to the Tools menu:
- The options dialog is as follows:
- Notes:
Geometry to Zone Dialog Controls
|
|
Select Geometries:
|
All Geometries: Selecting this radio button selects all valid geometries to turn into a 1-D zone. If in Sketch or 2D Cartesian mode all LINE geometries with grid coordinates and defined by a single polyline are selected. If in 3D Cartesian mode all LINE3D geometries will be selected.
Geomtries with Color: Selecting this radio button activates the color dropdown box, which lists all colors displayed by geometries, including geomtries which are not operated on by this Add-On. Use the drop-down box to select the color of geometries to turn into a 1-D Zone.
|
|
Blanking Variable:
|
Select Existing Variable: Choose an existing variable for blanking. Control will be de-activated if in Sketch Mode or there is not 3rd (Cartesian 2D) or 4th variable (Cartesian 3D) available. Cannot blank on an axis variable.
Create a New Variable (Enter Name): Entering a name in this text box will create a new variable and any selection in the Select Exiting Variable dropdown box will be ignored.
|
|
Blanking Parameters:
|
Enter Blanking Value: Enter a blanking value, cannot be 0, because non-blanked value are set to -1 * this value.
Choose Blanking Constraint Number: Choose which blanking constraint to which the blanking variable is applied.
Set Blanking Criteria: Choose the appropriate blanking criteria to apply to the blanking value.
|
|
Delete Geometries: |
Delete Geometries after Creating Geometry Zone: If this check box is checked all selected geometries will be deleted.
|
|
Action Button: |
Turn LINE(3D) Geometries into 1-D Zone |
Macro Usage
|
|
Example Macro Line Input |
$!ADDONCOMMAND ADDONID='GeomToZone' COMMAND='COLOR: All BLANKVAR: "New Variable" BVALUE: -1 CONSTRAINT: 1 CRITERIA: LessThanOrEqualTo DELETEGEOM: No' Key words are shown in Bold and can be entered in any order followed by an input parameter associated with key word. The colon is part of the key word. A description for each keyword is given below: |
|
COLOR: |
Valid input parameter for key word is either the word "All" for all geometries or one of Tecplot's primary colors (Black, White, Red, CUSTOM8) |
|
BLANKVAR: |
Valid input parameter is either a variable number (cannot be 0) or variable name. If variable name is given Add-On checks against existing variable names, if variable name not found, Add-On creates a new variable to be used for blanking. A new variable name must be given if frame mode is Sketch. If variable name is more than one word, it must be enclosed in double quotes |
|
BVALUE: |
Valid input parameter is floating point number to be used as the blanking value. Cannot be 0. |
|
CONSTRAINT: |
Valid input parameter is an integer greater than 0 and less than 9 |
|
CRITERIA: |
Valid input parameter is one of the following criteria 'LessThanOrEqualTo', 'GreaterThanOrEqualTo', 'LessThan', 'GreaterThan', 'EqualTo', or 'NotEqualTo' |
|
DELETEGEOM: |
Valid input parameter is one of the following Yes, No, True, False |
- File: (right-click and save)
|
 |
|
 |
|
|
 |
 |
|
|
Powered by phpBB © 2001, 2005 phpBB Group
|
 |
 |
 |
 |
|