Add Mark property to ArchRebar object
As discussed here: https://forum.freecadweb.org/viewtopic.php?f=23&t=44580&p=418377#p418630 And required for reinforcement drawing/dimensioning.
This commit is contained in:
committed by
Yorik van Havre
parent
752f84046c
commit
75ba0b8a77
@@ -198,6 +198,13 @@ class _Rebar(ArchComponent.Component):
|
||||
if not "TotalLength" in pl:
|
||||
obj.addProperty("App::PropertyDistance", "TotalLength", "Rebar", QT_TRANSLATE_NOOP("App::Property","Total length of all rebars"))
|
||||
obj.setEditorMode("TotalLength", 1)
|
||||
if not "Mark" in pl:
|
||||
obj.addProperty(
|
||||
"App::PropertyString",
|
||||
"Mark",
|
||||
"Rebar",
|
||||
QT_TRANSLATE_NOOP("App::Property", "The rebar mark"),
|
||||
)
|
||||
self.Type = "Rebar"
|
||||
|
||||
def onDocumentRestored(self,obj):
|
||||
|
||||
Reference in New Issue
Block a user