Spider (hwx.inspire)#
- class Spider(*features, **kwds)#
Bases:
FeaturesConnector
Creates bonding connection between two or more parts by features separated in space.
# Name
Type
property
# Name
Description
addSecondaryFeature
(self, feature)Adds secondary spider connection with supplied features.
removeSecondaryFeature
(self, feature)Removes secondary spider connection with supplied features.
Example
from hwx import inspire from hwx.common import math model = inspire.newModel() block1 = model.createSolidBlock(position=math.Matrix44(origin=(-2, 0, 0))) block2 = model.createSolidBlock(position=math.Matrix44(origin=(2, 0, 0))) spider = inspire.Spider(block1.features[3], block2.features[22]) inspire.fitView()
- property parts#
Returns a list of parts from the referenced features.
- addSecondaryFeature(feature)#
Adds secondary spider connection with supplied features.
- Parameters:
feature (Feature) – Specify feature to add as secondary features.
- removeSecondaryFeature(feature)#
Removes secondary spider connection with supplied features.
- Parameters:
feature (Feature) – Specify feature to remove from secondary features.
- property connectionType#
The type of the connection. Valid choices are:
Rigid
Flexible
- property location#
Returns the location of the first primary feature.