Oasys.PRIMER.Attached class
Constants
- Attached.SINGLE
Find attachedoption - find attached through single elements only
- Attached.WHOLE
Find attachedoption - find through whole attached part
Static methods
- classmethod Attached.Beam3rdNodes(setting)
Sets the
find attachedoption for beam 3rd nodes on or off
- Parameters:
setting (boolean) – If true beam 3rd nodes are considered for find attached, if false, they are not
- Returns:
No return value
- Return type:
None
Example
To set the 3rd node option to on:
Oasys.PRIMER.Attached.Beam3rdNodes(True)
- classmethod Attached.BeamPid(setting)
Sets the
find attachedoption for beam pid on or off
- Parameters:
setting (boolean) – If true beam pid’s are considered for find attached, if false, they are not
- Returns:
No return value
- Return type:
None
Example
To set the beam pid option to on:
Oasys.PRIMER.Attached.BeamPid(True)
- classmethod Attached.Deformable(setting)
Sets the deformable option for
find attached
- Parameters:
setting (constant) – Option. Can be
Attached.WHOLE,Attached.SINGLE- Returns:
No return value
- Return type:
None
Example
To set the deformable option to find attached through the whole part:
Oasys.PRIMER.Attached.Deformable(Oasys.PRIMER.Attached.WHOLE)
- classmethod Attached.FlagPart(setting)
Sets an option to flag parts after a
find attachedif any elements within that part are flagged
- Parameters:
setting (boolean) – If true, parts are flagged after a find attached if any elements within that part are flagged, if false, they are not
- Returns:
No return value
- Return type:
None
Example
To set the flag part option to on:
Oasys.PRIMER.Attached.FlagPart(True)
- classmethod Attached.Recursive(setting, iteration_limit=Oasys.gRPC.defaultArg, timeout=Oasys.gRPC.defaultArg)
Sets the
find attachedoption for recursive on or off
- Parameters:
setting (boolean) – If true recursive is on, if false, it is off
iteration_limit (integer) – Optional. Limit eq 0 sets unlimited iterations. Limit gt 0 sets fixed number of iterations
timeout (integer) – Optional. Sets timeout in seconds (default 60s) for recursive attached
- Returns:
No return value
- Return type:
None
Example
To set the recursive option to run unlimited with 30s timeout
Oasys.PRIMER.Attached.Recursive(True, 0, 30)
- classmethod Attached.Rigid(setting)
Sets the rigid option for
find attached
- Parameters:
setting (constant) – Option. Can be
Attached.WHOLE,Attached.SINGLE- Returns:
No return value
- Return type:
None
Example
To set the rigid option to find attached through the whole part:
Oasys.PRIMER.Attached.Rigid(Oasys.PRIMER.Attached.WHOLE)
- classmethod Attached.SetEntity(type, setting)
Sets entity to be on or off to
find attachedthrough
- Parameters:
type (string) – The type of the item to switch on or off (for a list of types see Appendix A of the PRIMER manual). Use “ALL” to switch all entities or “CONSTRAINEDALL” to switch all constrained entities
setting (boolean) – If true you turn the entity switch on, if false you turn it off
- Returns:
No return value
- Return type:
None
Example
To set the SHELL switch to on so that when you run a find attached you fnd attached through shells:
Oasys.PRIMER.Attached.SetEntity("SHELL", True)
- classmethod Attached.TiedContacts(setting)
Sets the
find attachedoption for tied contacts on or off
- Parameters:
setting (boolean) – If true tied contacts are considered for find attached, if false, they are not
- Returns:
No return value
- Return type:
None
Example
To set the tied contacts option to on:
Oasys.PRIMER.Attached.TiedContacts(True)