ArchTruss.Truss Class Reference

Public Member Functions

def execute (self, obj)
 
def makeRod (self, profile, p1, p2)
 
def makeTruss (self, obj, v0, v1)
 
def onChanged (self, obj, prop)
 
def onDocumentRestored (self, obj)
 
def setProperties (self, obj)
 
- Public Member Functions inherited from ArchComponent.Component
def applyShape (self, obj, shape, placement, allowinvalid=False, allownosolid=False)
 
def clone (self, obj)
 
def computeAreas (self, obj)
 
def getExtrusionData (self, obj)
 
def getHosts (self, obj)
 
def getMovableChildren (self, obj)
 
def getParentHeight (self, obj)
 
def getSiblings (self, obj)
 
def hideSubobjects (self, obj, prop)
 
def isIdentity (self, placement)
 
def isStandardCase (self, obj)
 
def onBeforeChange (self, obj, prop)
 
def processSubShapes (self, obj, base, placement=None)
 
def rebase (self, shape, hint=None)
 
def spread (self, obj, shape, placement=None)
 
- Public Member Functions inherited from ArchIFC.IfcProduct
def getIfcSchema (self)
 
- Public Member Functions inherited from ArchIFC.IfcRoot
def addIfcAttribute (self, obj, attribute)
 
def addIfcAttributes (self, ifcTypeSchema, obj)
 
def addIfcAttributeValueExpressions (self, obj, attribute)
 
def getCanonicalisedIfcTypes (self)
 
def getIfcAttributeSchema (self, ifcTypeSchema, name)
 
def getIfcTypeSchema (self, IfcType)
 
def getObjIfcComplexAttribute (self, obj, attributeName)
 
def migrateDeprecatedAttributes (self, obj)
 
def purgeUnusedIfcAttributesFromPropertiesList (self, ifcTypeSchema, obj)
 
def setObjIfcAttributeValue (self, obj, attributeName, value)
 
def setObjIfcComplexAttributeValue (self, obj, attributeName, value)
 
def setupIfcAttributes (self, obj)
 
def setupIfcComplexAttributes (self, obj)
 

Public Attributes

 Type
 
- Public Attributes inherited from ArchComponent.Component
 flatarea
 
 oldPlacement
 
 Subvolume
 
 Type
 

Member Function Documentation

◆ execute()

def ArchTruss.Truss.execute (   self,
  obj 
)
Method run when the object is recomputed.

If the object is a clone, just copy the shape it's cloned from.

Process subshapes of the object to add additions, and subtract
subtractions from the object's shape.

Parameters
----------
obj: <App::FeaturePython>
    The component object.

Reimplemented from ArchComponent.Component.

References ArchComponent.Component.applyShape(), PathTests.TestPathHelix.TestPathHelix.clone, zipios::BasicEntry.clone(), zipios::DirectoryCollection.clone(), zipios::ZipFile.clone(), zipios::ZipLocalEntry.clone(), zipios::CollectionCollection.clone(), zipios::FileCollection.clone(), zipios::ZipCDirEntry.clone(), zipios::FileEntry.clone(), Gui::ViewProviderIndex.clone(), ArchComponent.Component.clone(), ArchTruss.Truss.makeTruss(), and ArchComponent.Component.processSubShapes().

Referenced by draftobjects.facebinder.Facebinder.addSubobjects(), PathScripts.PathDressupDogbone.ObjectDressup.boneStateList(), ArchSite.Compass.buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup.generateTags(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.PartDesign.Scripts.Spring.MySpring.onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped.onChanged(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder.onChanged(), PathScripts.PathStock.StockFromBase.onChanged(), PathScripts.PathStock.StockCreateBox.onChanged(), PathScripts.PathStock.StockCreateCylinder.onChanged(), FeaturePython.DistanceBolt.onChanged(), draftobjects.draftlink.DraftLink.onDocumentRestored(), and draftobjects.patharray.PathArray.onDocumentRestored().

◆ makeRod()

def ArchTruss.Truss.makeRod (   self,
  profile,
  p1,
  p2 
)
makes a rod by extruding profile between p1 and p2

Referenced by ArchTruss.Truss.makeTruss().

◆ makeTruss()

def ArchTruss.Truss.makeTruss (   self,
  obj,
  v0,
  v1 
)

◆ onChanged()

def ArchTruss.Truss.onChanged (   self,
  obj,
  prop 
)
Method called when the object has a property changed.

If "Placement" has changed, move any children components that have been
set to move with their host, such that they stay in the same location
to this component.

Also call ArchIFC.IfcProduct.onChanged().

Parameters
----------
obj: <App::FeaturePython>
    The component object.
prop: string
    The name of the property that has changed.

Reimplemented from ArchComponent.Component.

References ArchComponent.Component.onChanged().

Referenced by draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), draftobjects.wire.Wire.execute(), ArchAxis.CommandArchGrid.IsActive(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.updateData(), draftviewproviders.view_label.ViewProviderLabel.updateData(), and DraftLayer.ViewProviderLayer.updateData().

◆ onDocumentRestored()

def ArchTruss.Truss.onDocumentRestored (   self,
  obj 
)
Method run when the document is restored. Re-add the Arch component properties.

Parameters
----------
obj: <App::FeaturePython>
    The component object.

Reimplemented from ArchComponent.Component.

References ArchComponent.Component.onDocumentRestored(), ArchComponent.Component.setProperties(), ArchAxis._Axis.setProperties(), ArchBuilding._Building.setProperties(), ArchAxis._ViewProviderAxis.setProperties(), ArchBuildingPart.BuildingPart.setProperties(), ArchBuildingPart.ViewProviderBuildingPart.setProperties(), ArchAxis._AxisSystem.setProperties(), and ArchAxis.ArchGrid.setProperties().

◆ setProperties()

def ArchTruss.Truss.setProperties (   self,
  obj 
)
Give the component its component specific properties, such as material.

You can learn more about properties here:
https://wiki.freecadweb.org/property

Reimplemented from ArchComponent.Component.

Referenced by ArchPanel.CommandPanelSheet.Activated(), ArchSite.Compass.buildCoordinates(), ArchSchedule.CommandArchSchedule.IsActive(), ArchAxis.CommandArchGrid.IsActive(), and DraftLayer.Layer.onDocumentRestored().

Member Data Documentation

◆ Type


The documentation for this class was generated from the following file:
  • src/Mod/Arch/ArchTruss.py