Please enable Javascript to view this site.

GENIUS TOOLS Model Processor

Navigation: List of all tasks > Relation

Delete Feature Relations

Scroll Prev Top Next More

This task deletes lines from relations, which can be specified as single lines or blocks. If you use regular expressions or wildcards, you can delete multiple feature relations.

The cross-task settings can be found in the chapter General task settings.

Model filter

This task can revise the following models: Parts and Assemblies

The task-specific settings are:

mp_Task_DelFeatureRelation

1.Feature Filter

Enter one or more features for which this task applies or does not apply. To build the filter tree, see Filter Tree.

2.Matching Lines

Enter a relation line used to determine whether a relation is deleted above or below. You can use RegEx. The icon RegexButton opens the RegEx Editor.

Import-CSV Imports content from a CSV file to fill the input fields.

CleanAll entries are deleted, regardless of whether the entries were made manually or imported from a CSV file.

3.Delete a block of lines

–Start from line

Enter the start line from which you want to begin deleting the feature relations.

–End at line

Enter the end line where you want the deletion of feature relationships to end. All lines between the start line and the end line will be deleted, including the two lines themselves.

–Options: Automatically detect and match end of If block

The end of an If block is automatically detected. The input field End at line is blocked and any existing entries are ignored.

4.Options

–Comment instead of deleting

If this option is enabled, matching feature relations are commented out rather than deleted.

–Disable Failure Checks

If this option is enabled, error checking is disabled when the specified feature relations are deleted. This can cause the relations list to become invalid.

Example settings

Example with If-Block

            if (TEST=14)
                PARAMETER2 = "HELLO"
            endif

Start at line: *if*(TEST=*

End at line: *endif*

* is used here as a wildcard character. It says that all blocks that contain if with the parameter TEST are deleted up to the endif. The wildcard is used here to ignore any blanks as well as the value the TEST parameter is compared to.

To search explicitly for a line that contains an asterisk, you must use **. A single asterisk is ALWAYS interpreted as a wild card. Otherwise, you may use enhanced Regular Expressions.

Option can also be selected to recognize the end of an if block . The associated endif is recognized and used automatically here. This is useful when several if blocks are nested.

Deactivate the error checking function only if you are sure that the errors in the relations do not influence the execution of the newly added lines. The result of the relations would not be reliable and the data quality after rework would not be reliable.

Tip: You can use Variables.

Created with Help & Manual 8 and styled with Premium Pack Version 4 © by EC Software