<Action Name="Unused Objects" Uid="e61cc80f-4f0b-4e02-bd6c-f6fcb97b3581" LogicUid="e64f240d-dd59-4175-af2e-ed6d0e7f1e84">
<Parameters>
<Parameter Key="Point 3D" Name="3D Nodes" Type="Bool" Value="true"/>
<Parameter Key="Path 3D" Name="3D Paths" Type="Bool" Value="true"/>
<Parameter Key="Profile 3D" Name="3D Profiles" Type="Bool" Value="true"/>
<Parameter Key="LCS 3D" Name="LCSs" Type="Bool" Value="true"/>
<Parameter Key="Workplane 3D" Name="Workplanes" Type="Bool" Value="true"/>
<Parameter Key="Knot 2D" Name="2D Nodes" Type="Bool" Value="true"/>
<Parameter Key="Draw 2D" Name="Construction Lines" Type="Bool" Value="true"/>
<Parameter Key="Page 2D" Name="Pages" Type="Bool" Value="true"/>
<Parameter Key="Invisible Variable" Name="Invisible Variables" Type="Bool" Value="true"/>
<Parameter Key="Visible Variable" Name="Visible Variables" Type="Bool" Value="true"/>
<Parameter Key="Named 2D" Name="Named 2D Elements" Type="Bool" Value="true"/>
<Parameter Key="Default 2D" Name="2D Constructions" Type="Bool" Value="true"/>
<Parameter Key="Unknown" Name="Others" Type="Bool" Value="true"/>
<Parameter Key="Delete Named 2D" Name="Delete Named 2D Elements" Type="Bool" Value="true"/>
<Parameter Key="Delete On Active Page Only" Name="Only on Active Page" Type="Bool" Value="true"/>
</Parameters>
</Action>
Objects to be checked: Types of objects to be checked are defined by the action parameters listed below.
Customizable parameters:
Types of objects to be checked (true value includes objects of the corresponding type into the check, false - excludes):
•3D Nodes
Data type: Boolean.
Default value: true.
•3D Paths (including routes)
Data type: Boolean.
Default value: true.
•3D Profiles
Data type: Boolean.
Default value: true.
•LCSs
Data type: Boolean.
Default value: true.
•Workplanes (and worksurfaces)
Data type: Boolean.
Default value: true.
•2D Nodes
Data type: Boolean.
Default value: true.
•Construction Lines (Lines, Circles, Ellipses, 2D Paths, Splines (including polylines), Offset Curves, Function Splines)
Data type: Boolean.
Default value: true.
•Pages (workplanes and worksurfaces)
Data type: Boolean.
Default value: true.
•Invisible Variables (the parameter handles the inclusion of unnamed expressions)
Data type: Boolean.
Default value: true.
•Visible Variables
Data type: Boolean.
Default value: true.
•Named 2D Elements
Data type: Boolean.
Default value: true.
•2D Constructions
Data type: Boolean.
Default value: true.
•Others (3D Sections)
Data type: Boolean.
Default value: true.
Additional options:
•Delete Named 2D Elements
Data type: Boolean.
Default value: true.
False value means that named 2D nodes and construction lines are excluded from the check, true value doesn't affect the set of objects to be checked..
•Only on Active Page
Data type: Boolean.
Default value in standard script: true.
Default value in action's logic: false.
True value applies following conditions:
oif a 2D view window is active, 2D objects do not belonging to the active page and all 3D objects are excluded from the check;
oif a 3D view window is active, object are checked regardless of their location.
oif a view window of any other type is active, 2D objects do not belonging to the first page of the drawing and all 3D objects are excluded from the check.
False value does not apply any conditions.
Check criteria:
For variables and expressions check yields error, if the object being checked doesn't have any children.
For 2D and 3D elements check yields error, if all of the following conditions are met (if applicable):
•the object being currently checked doesn't have any children not subjected to the current check on any level of model structure (applicable to objects of all types);
•the External parameter is set to Hide in Assembly for the object being currently checked and for all its children included into the check (applicable to all types of 3D constructs);
•the Use as Source CS option is disabled in parameters of the object being currently checked and in parameters of all its children included into the check (applicable to 3D LCSs);
•the Do not delete in "Purge" command option is disabled in parameters of the object being currently checked and in parameters of all its children included into the check (applicable to workplanes and worksurfaces).
Auto-Fix: Unused elements detected by the check are deleted.
Note: This action includes functionality of the following actions: