Method AskOccurrence
AskOccurrence(UserQuestion, bool, bool, bool, bool, bool, ElementId, out ElementId)
Asks the user for a part or an assembly occurrence.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 10, 0, 0)]
UserAnswerType AskOccurrence(UserQuestion inQuestion, bool inAcceptsPositioned, bool inAcceptsInPlace, bool inAcceptsPart, bool inAcceptsAssembly, bool inAcceptsMechanism, ElementId inSuggestion, out ElementId outAnswer)
Parameters
| Type | Name | Description |
|---|---|---|
| UserQuestion | inQuestion | Question asked to the user. |
| bool | inAcceptsPositioned | Accepts positioned occurrence. |
| bool | inAcceptsInPlace | Accepts in-place occurrence. |
| bool | inAcceptsPart | Accepts part occurrence. |
| bool | inAcceptsAssembly | Accepts assembly occurrence. |
| bool | inAcceptsMechanism | Accepts mechanism occurrence. |
| ElementId | inSuggestion | Suggested answer, or Empty if none. |
| ElementId | outAnswer | User answer, or Empty if none. |
Returns
| Type | Description |
|---|---|
| UserAnswerType | Type of user answer. |
Remarks
Only occurrences that are directly in the parts folder of the document may be obtained by this method, not "deep" occurrences that are inside them.
This method is available since v7.10.