NXOpen .NET Reference Guide
1899
|
This class provides the methods to execute shape search and get the searched results. More...
Public Types | |
enum | OpenPartType { NotSetDisplayPart, SetDisplayPartOnlyWhenOpen, AlwaysSetDisplayPart } |
The open part type enum More... | |
enum | SearchByType { Attribute, Body, Part } |
The search type enum More... | |
enum | ShapeSimilarity { Gradient1, Gradient2, Gradient3, Gradient4, Gradient5, Gradient6, Gradient7, Gradient8, Gradient9, Gradient10 } |
The search shape similarity enum More... | |
enum | ShapeSize { P90P110, P80P120, P70P130, P50P200, P25P400 } |
The search shape size enum More... | |
Public Member Functions | |
unsafe void | ExecuteSearch (bool isNew, string searchName, out int nTotalResults, out string errorMessage) |
Execute new search or saved search and output error message if error. More... | |
unsafe string[] | GetInputAttributesFilter () |
The input attributes filter to be searched More... | |
unsafe string[] | GetInputAttributesName () |
The input attributes name to be searched More... | |
unsafe void | GetResults (string searchName, int startResultId, int endResultId) |
Get specified search results from database. More... | |
unsafe void | OpenResultPart (NXOpen.ShapeSearch.ShapeSearchBuilder.OpenPartType openPartType, string searchName, int resultId) |
Open the searched result part. More... | |
unsafe void | SetInputAttributesFilter (string[] inputAttributesFilter) |
The input attributes filter to be searched More... | |
unsafe void | SetInputAttributesName (string[] inputAttributesName) |
The input attributes name to be searched More... | |
Public Member Functions inherited from NXOpen.Builder | |
unsafe NXOpen.NXObject | Commit () |
Commits any edits that have been applied to the builder. More... | |
unsafe void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. More... | |
unsafe NXOpen.NXObject[] | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. More... | |
unsafe NXOpen.NXObject | GetObject () |
Returns the object currently being edited by this builder. More... | |
unsafe void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. More... | |
unsafe bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Public Member Functions inherited from NXOpen.TaggedObject | |
void | PrintTestData (String variableName) |
<exclude> More... | |
void | PrintTestData (String variableName, int lineNumber) |
<exclude> More... | |
override string | ToString () |
Returns a String that represents the current Object. More... | |
Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject | |
IMessageCtrl | AsyncProcessMessage (IMessage msg, IMessageSink replySink) |
Asynchronously processes the given message. More... | |
IMessage | SyncProcessMessage (IMessage msg) |
Synchronously processes the given message. More... | |
Properties | |
unsafe int | CustomShapeSizeLowerLimit [get, set] |
Returns or sets the custom shape size lower limit to be set for search. More... | |
unsafe int | CustomShapeSizeUpperLimit [get, set] |
Returns or sets the custom shape size upper limit to be set for search. More... | |
unsafe NXOpen.SelectNXObjectList | InputBody [get] |
Returns the input body to be searched More... | |
unsafe string | InputPart [get, set] |
Returns or sets the input part to be searched More... | |
unsafe string | ReferenceSetName [get, set] |
Returns or sets the part reference set name to be set for search More... | |
unsafe NXOpen.ShapeSearch.ShapeSearchBuilder.ShapeSimilarity | SearchShapeSimilarity [get, set] |
Returns or sets the shape similarity to be set for search More... | |
unsafe NXOpen.ShapeSearch.ShapeSearchBuilder.ShapeSize | SearchShapeSize [get, set] |
Returns or sets the shape size to be set for search. More... | |
unsafe NXOpen.ShapeSearch.ShapeSearchBuilder.SearchByType | SearchType [get, set] |
Returns or sets the search type More... | |
unsafe bool | UseCustomShapeSize [get, set] |
Returns or sets the use custom shape size to control use shape size option or custom shape size More... | |
Properties inherited from NXOpen.Builder | |
unsafe NXOpen.PreviewBuilder | PreviewBuilder [get] |
Returns the preview builder subobject. More... | |
Properties inherited from NXOpen.TaggedObject | |
Tag | Tag [get] |
Returns the tag of this object. More... | |
Properties inherited from NXOpen.Utilities.NXRemotableObject | |
IMessageSink | NextSink [get] |
Gets the next message sink in the sink chain. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from NXOpen.TaggedObject | |
new void | initialize () |
<exclude> More... | |
This class provides the methods to execute shape search and get the searched results.
The operation that this builder supports has three types: (set by ShapeSearch.ShapeSearchBuilder.SearchType )
Search by attributes.
Search by body combined attributes with shape similarity and shape size condition. Support multiple bodies.
When initialize builder, we will load all saved searches from work directory and add them to search list. You can implement ShapeSearch.ShapeSearchBuilder.ExecuteSearch to run the saved search.
After define the search criteria, function ShapeSearch.ShapeSearchBuilder.ExecuteSearch can search the shape from database and return the searched results count and error message if fails. The search is specified by 'searchName' parameter.
The method ShapeSearch.ShapeSearchBuilder.GetResults can get the specified results from database. The range of results is specified by the parameters 'startResultId' and 'endResultId', the search is specified by 'searchName' parameter.
The method ShapeSearch.ShapeSearchBuilder.OpenResultPart can open the selected result part of the specified search. The result is specified by 'resultId' parameter, the search is specified by 'searchName' parameter.
To create a new instance of this class, use NXOpen.ShapeSearch.SearchManager.CreateShapeSearchBuilder
Created in NX6.0.0
|
inline |
Execute new search or saved search and output error message if error.
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
isNew | True is executing new search, False is executing saved search |
searchName | Search name |
nTotalResults | Search result total number |
errorMessage | Search error message |
|
inline |
The input attributes filter to be searched
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
|
inline |
The input attributes name to be searched
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
|
inline |
Get specified search results from database.
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
searchName | Search name |
startResultId | Start result id |
endResultId | End result id |
|
inline |
Open the searched result part.
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
openPartType | Open part type |
searchName | Search name |
resultId | Result id |
|
inline |
The input attributes filter to be searched
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
inputAttributesFilter | Search attributes filter |
|
inline |
The input attributes name to be searched
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
inputAttributesName | Search attributes Name |
|
getset |
Returns or sets the custom shape size lower limit to be set for search.
It is used only when use custom shape size is true. It must be greater than zero and less than upper limit.
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")
|
getset |
Returns or sets the custom shape size upper limit to be set for search.
It is used only when use custom shape size is true. It must be greater than lower limit.
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")
|
get |
Returns the input body to be searched
Created in NX6.0.0
License requirements: shape_search ("Shape Search")
|
getset |
Returns or sets the input part to be searched
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")
|
getset |
Returns or sets the part reference set name to be set for search
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")
|
getset |
Returns or sets the shape similarity to be set for search
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")
|
getset |
Returns or sets the shape size to be set for search.
It is used only when use custom shape size is false.
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")
|
getset |
Returns or sets the search type
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")
|
getset |
Returns or sets the use custom shape size to control use shape size option or custom shape size
Created in NX6.0.0
License requirements to get this property: shape_search ("Shape Search")
License requirements to set this property: shape_search ("Shape Search")