Public Member Functions | |
def | execute (self, obj) |
def | init_properties (self, obj) |
def | onChanged (self, obj, prop) |
def | onDocumentRestored (self, obj) |
Additional Inherited Members | |
Public Attributes inherited from draftobjects.draft_annotation.DraftAnnotation | |
Type | |
Detailed Description
The Draft Linear Dimension object
Member Function Documentation
◆ execute()
def draftobjects.dimension.LinearDimension.execute | ( | self, | |
obj | |||
) |
Set start point and end point according to the linked geometry
Reimplemented from draftobjects.dimension.DimensionBase.
References DraftVecUtils.scaleTo().
Referenced by 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(), and FeaturePython.DistanceBolt.onChanged().
◆ init_properties()
def draftobjects.dimension.LinearDimension.init_properties | ( | self, | |
obj | |||
) |
Add Linear Dimension specific properties to the object and set them
◆ onChanged()
def draftobjects.dimension.LinearDimension.onChanged | ( | self, | |
obj, | |||
prop | |||
) |
Do something when a property has changed
Reimplemented from draftobjects.dimension.DimensionBase.
Referenced by draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), ArchAxis.CommandArchGrid.IsActive(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.updateData(), and draftviewproviders.view_label.ViewProviderLabel.updateData().
◆ onDocumentRestored()
def draftobjects.dimension.LinearDimension.onDocumentRestored | ( | self, | |
obj | |||
) |
Run when the document that is using this class is restored. Check if new properties are present after the object is restored in order to migrate older objects.
Reimplemented from draftobjects.dimension.DimensionBase.
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftobjects/dimension.py