draftobjects.draftlink.DraftLink Class Reference

Public Member Functions

def attach (self, obj)
 
def buildShape (self, obj, pl, pls)
 
def canLinkProperties (self, _obj)
 
def getViewProviderName (self, _obj)
 
def linkSetup (self, obj)
 
def migrate_attributes (self, obj)
 
def onChanged (self, obj, prop)
 
def onDocumentRestored (self, obj)
 
- Public Member Functions inherited from draftobjects.base.DraftObject
def execute (self, obj)
 

Public Attributes

 use_link
 
- Public Attributes inherited from draftobjects.base.DraftObject
 Type
 

Detailed Description

New class to use the App::Link objects in arrays.

Introduced by realthunder.
This is subclassed by `draftobjects.array.Array`
and by `draftobjects.patharray.PathArray`.

Member Function Documentation

◆ attach()

◆ buildShape()

◆ canLinkProperties()

def draftobjects.draftlink.DraftLink.canLinkProperties (   self,
  _obj 
)
Link properties.

TODO: add more explanation. C++ override???

◆ getViewProviderName()

def draftobjects.draftlink.DraftLink.getViewProviderName (   self,
  _obj 
)

◆ linkSetup()

def draftobjects.draftlink.DraftLink.linkSetup (   self,
  obj 
)

◆ migrate_attributes()

def draftobjects.draftlink.DraftLink.migrate_attributes (   self,
  obj 
)
Migrate old attribute names to new names if they exist.

This is done to comply with Python guidelines or fix small issues
in older code.

References draftobjects.draftlink.DraftLink.use_link, draftguitools.gui_array_simple.Array.use_link, and draftguitools.gui_patharray.PathArray.use_link.

Referenced by draftobjects.draftlink.DraftLink.onDocumentRestored(), and draftobjects.patharray.PathArray.onDocumentRestored().

◆ onChanged()

◆ onDocumentRestored()

def draftobjects.draftlink.DraftLink.onDocumentRestored (   self,
  obj 
)
Execute code when the document in restored.

Reimplemented in draftobjects.patharray.PathArray.

References draftobjects.draftlink.DraftLink.buildShape(), ArchFence._Fence.execute(), App::FeaturePythonImp.execute(), importIFCHelper.ProjectImporter.execute(), ArchPrecast._Precast.execute(), App::FeatureCustomT< FeatureT >.execute(), App::VRMLObject.execute(), App::InventorObject.execute(), App::MeasureDistance.execute(), ArchPrecast._PrecastBeam.execute(), draftobjects.base.DraftObject.execute(), DraftLayer.Layer.execute(), ArchFrame._Frame.execute(), App::PropertyExpressionEngine.execute(), ArchReference.ArchReference.execute(), App::FeatureTest.execute(), App::FeatureTestException.execute(), ArchSchedule._ArchSchedule.execute(), App::Origin.execute(), ArchMaterial._ArchMaterialContainer.execute(), App::FeaturePythonT< FeatureT >.execute(), ArchPipe._ArchPipe.execute(), ArchTruss.Truss.execute(), ArchAxis._Axis.execute(), ArchPrecast._PrecastIbeam.execute(), ArchComponent.Component.execute(), ArchProfile._ProfileC.execute(), ArchFloor._Floor.execute(), ArchCurtainWall.CurtainWall.execute(), ArchProfile._ProfileH.execute(), ArchPrecast._PrecastPillar.execute(), ArchRebar._Rebar.execute(), ArchSpace._Space.execute(), ArchProfile._ProfileR.execute(), ArchEquipment._Equipment.execute(), ArchProfile._ProfileRH.execute(), draftobjects.array.Array.execute(), ArchMaterial._ArchMaterial.execute(), ArchProfile._ProfileU.execute(), ArchPipe._ArchPipeConnector.execute(), DraftLayer.LayerContainer.execute(), ArchBuildingPart.BuildingPart.execute(), ArchStairs._Stairs.execute(), ArchPrecast._PrecastPanel.execute(), ArchPanel._Panel.execute(), ArchPrecast._PrecastSlab.execute(), ArchRoof._Roof.execute(), App::DocumentObject.execute(), ArchStructure._Structure.execute(), ArchPrecast._PrecastStairs.execute(), ArchSite._Site.execute(), ArchWall._Wall.execute(), ArchWindow._Window.execute(), ArchAxis._AxisSystem.execute(), ArchPanel.PanelView.execute(), ArchSectionPlane._SectionPlane.execute(), ArchPanel.PanelCut.execute(), ArchAxis.ArchGrid.execute(), ArchSectionPlane._ArchDrawingView.execute(), ArchStructure._StructuralSystem.execute(), ArchPanel.PanelSheet.execute(), draftobjects.draftlink.DraftLink.linkSetup(), draftobjects.array.Array.linkSetup(), draftobjects.draftlink.DraftLink.migrate_attributes(), draftobjects.draftlink.DraftLink.use_link, draftguitools.gui_array_simple.Array.use_link, and draftguitools.gui_patharray.PathArray.use_link.

Member Data Documentation

◆ use_link


The documentation for this class was generated from the following file:
  • src/Mod/Draft/draftobjects/draftlink.py