Small fix in Arch module
This commit is contained in:
parent
b348626a76
commit
822308cdde
|
@ -215,12 +215,12 @@ def removeShape(objs,mark=True):
|
||||||
print tp
|
print tp
|
||||||
if tp == "Structure":
|
if tp == "Structure":
|
||||||
FreeCAD.ActiveDocument.removeObject(name)
|
FreeCAD.ActiveDocument.removeObject(name)
|
||||||
import Structure
|
import ArchStructure
|
||||||
str = Structure.makeStructure(length=dims[1],width=dims[2],height=dims[3],name=name)
|
str = ArchStructure.makeStructure(length=dims[1],width=dims[2],height=dims[3],name=name)
|
||||||
str.Placement = dims[0]
|
str.Placement = dims[0]
|
||||||
elif tp == "Wall":
|
elif tp == "Wall":
|
||||||
FreeCAD.ActiveDocument.removeObject(name)
|
FreeCAD.ActiveDocument.removeObject(name)
|
||||||
import Wall
|
import ArchWall
|
||||||
length = dims[1]
|
length = dims[1]
|
||||||
width = dims[2]
|
width = dims[2]
|
||||||
v1 = Vector(length/2,0,0)
|
v1 = Vector(length/2,0,0)
|
||||||
|
@ -228,7 +228,7 @@ def removeShape(objs,mark=True):
|
||||||
v1 = dims[0].multVec(v1)
|
v1 = dims[0].multVec(v1)
|
||||||
v2 = dims[0].multVec(v2)
|
v2 = dims[0].multVec(v2)
|
||||||
line = Draft.makeLine(v1,v2)
|
line = Draft.makeLine(v1,v2)
|
||||||
wal = Wall.makeWall(line,width=width,height=dims[3],name=name)
|
wal = ArchWall.makeWall(line,width=width,height=dims[3],name=name)
|
||||||
else:
|
else:
|
||||||
if mark:
|
if mark:
|
||||||
obj.ViewObject.ShapeColor = (1.0,0.0,0.0,1.0)
|
obj.ViewObject.ShapeColor = (1.0,0.0,0.0,1.0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user