make compatible with Part typed object
tool make a Part Cut object when object are not Arch typed. the cutVolume is now Red and 75 transparence
This commit is contained in:
parent
d354e21ce5
commit
5f261fb636
|
@ -46,8 +46,16 @@ def cutComponentwithPlane(archObject, cutPlane, sideFace):
|
||||||
if cutVolume:
|
if cutVolume:
|
||||||
obj = FreeCAD.ActiveDocument.addObject("Part::Feature", "CutVolume")
|
obj = FreeCAD.ActiveDocument.addObject("Part::Feature", "CutVolume")
|
||||||
obj.Shape = cutVolume
|
obj.Shape = cutVolume
|
||||||
|
obj.ViewObject.ShapeColor = (1.00,0.00,0.00)
|
||||||
|
obj.ViewObject.Transparency = 75
|
||||||
# add substraction component to Arch object
|
# add substraction component to Arch object
|
||||||
return ArchCommands.removeComponents(obj,archObject.Object)
|
if "Additions" in archObject.Object.PropertiesList:
|
||||||
|
return ArchCommands.removeComponents(obj,archObject.Object)
|
||||||
|
else:
|
||||||
|
cutObj = FreeCAD.ActiveDocument.addObject("Part::Cut", "CutPlane")
|
||||||
|
cutObj.Base = archObject.Object
|
||||||
|
cutObj.Tool = obj
|
||||||
|
return cutObj
|
||||||
|
|
||||||
class _CommandCutPlane:
|
class _CommandCutPlane:
|
||||||
"the Arch CutPlane command definition"
|
"the Arch CutPlane command definition"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user