Utility functions for theArch Workbench. More...
Classes | |
class SurveyTaskPanel | |
Functions | |
def addComponents (objectsList, host) | |
def check (objectslist, includehidden=False) | |
def cleanArchSplitter (objects=None) | |
def cloneComponent (obj) | |
def closeHole (shape) | |
def copyProperties (obj1, obj2) | |
def download (url, force=False) | |
def getAllChildren (objectlist) | |
def getCutVolume (cutplane, shapes, clip=False) | |
def getDefaultColor (objectType) | |
def getExtrusionData (shape, sortmethod="area") | |
def getHost (obj, strict=True) | |
def getShapeFromMesh (mesh, fast=True, tolerance=0.001, flat=False, cut=True) | |
def getStringList (objects) | |
def makeComponent (baseobj=None, name="Component", delete=False) | |
def makeCompoundFromSelected (objects=None) | |
def makeFace (wires, method=2, cleanup=False) | |
def makeIfcSpreadsheet (archobj=None) | |
def mergeCells (objectslist) | |
def meshToShape (obj, mark=True, fast=True, tol=0.001, flat=False, cut=True) | |
def printMessage (message) | |
def printWarning (message) | |
def projectToVector (shape, vector) | |
def pruneIncluded (objectslist, strict=False) | |
def rebuildArchShape (objects=None) | |
def removeComponents (objectsList, host=None) | |
def removeCurves (shape, dae=False, tolerance=5) | |
def removeShape (objs, mark=True) | |
def setAsSubcomponent (obj) | |
def splitMesh (obj, mark=True) | |
def string_replace (text, pattern, replacement) | |
def survey (callback=False) | |
def toggleIfcBrepFlag (obj) | |
Detailed Description
Utility functions for theArch Workbench.
This module provides general functions used by Arch tools and utility commands
Function Documentation
◆ addComponents()
def ArchCommands.addComponents | ( | objectsList, | |
host | |||
) |
Referenced by importIFClegacy.read().
◆ check()
def ArchCommands.check | ( | objectslist, | |
includehidden = False |
|||
) |
Referenced by printWarning().
◆ cleanArchSplitter()
def ArchCommands.cleanArchSplitter | ( | objects = None | ) |
◆ cloneComponent()
def ArchCommands.cloneComponent | ( | obj | ) |
References makeComponent().
◆ closeHole()
def ArchCommands.closeHole | ( | shape | ) |
Referenced by printWarning().
◆ copyProperties()
def ArchCommands.copyProperties | ( | obj1, | |
obj2 | |||
) |
◆ download()
def ArchCommands.download | ( | url, | |
force = False |
|||
) |
Referenced by importDXF.errorDXFLib(), and importIFClegacy.getSchema().
◆ getAllChildren()
def ArchCommands.getAllChildren | ( | objectlist | ) |
◆ getCutVolume()
def ArchCommands.getCutVolume | ( | cutplane, | |
shapes, | |||
clip = False |
|||
) |
References DraftVecUtils.project(), and DraftVecUtils.scaleTo().
Referenced by ArchVRM.Renderer.cut(), ArchCutPlane.cutComponentwithPlane(), ArchSectionPlane.getCutShapes(), ArchPipe.makePipeConnector(), and ArchSpace.removeSpaceBoundaries().
◆ getDefaultColor()
def ArchCommands.getDefaultColor | ( | objectType | ) |
Referenced by ArchPanel.CommandPanelSheet.Activated(), ArchWall.areSameWallTypes(), ArchSectionPlane.closeViewer(), ArchCurtainWall.ViewProviderCurtainWall.colorize(), ArchAxis.CommandArchGrid.IsActive(), ArchRebar.makeRebar(), ArchStructure.placeAlongEdge(), ArchSpace.removeSpaceBoundaries(), and setAsSubcomponent().
◆ getExtrusionData()
def ArchCommands.getExtrusionData | ( | shape, | |
sortmethod = "area" |
|||
) |
Referenced by ArchComponent.Component.getExtrusionData().
◆ getHost()
def ArchCommands.getHost | ( | obj, | |
strict = True |
|||
) |
◆ getShapeFromMesh()
def ArchCommands.getShapeFromMesh | ( | mesh, | |
fast = True , |
|||
tolerance = 0.001 , |
|||
flat = False , |
|||
cut = True |
|||
) |
References makeFace().
Referenced by ArchPanel.CommandPanelSheet.Activated(), ArchWall.areSameWallTypes(), meshToShape(), ArchStructure.placeAlongEdge(), and removeCurves().
◆ getStringList()
def ArchCommands.getStringList | ( | objects | ) |
Referenced by ArchStructure.placeAlongEdge().
◆ makeComponent()
def ArchCommands.makeComponent | ( | baseobj = None , |
|
name = "Component" , |
|||
delete = False |
|||
) |
Referenced by cloneComponent().
◆ makeCompoundFromSelected()
def ArchCommands.makeCompoundFromSelected | ( | objects = None | ) |
◆ makeFace()
def ArchCommands.makeFace | ( | wires, | |
method = 2 , |
|||
cleanup = False |
|||
) |
Referenced by ArchPanel.CommandPanelSheet.Activated(), getShapeFromMesh(), and ArchVRM.Renderer.projectFace().
◆ makeIfcSpreadsheet()
def ArchCommands.makeIfcSpreadsheet | ( | archobj = None | ) |
◆ mergeCells()
def ArchCommands.mergeCells | ( | objectslist | ) |
Referenced by printWarning().
◆ meshToShape()
def ArchCommands.meshToShape | ( | obj, | |
mark = True , |
|||
fast = True , |
|||
tol = 0.001 , |
|||
flat = False , |
|||
cut = True |
|||
) |
References getShapeFromMesh().
Referenced by printWarning().
◆ printMessage()
def ArchCommands.printMessage | ( | message | ) |
Referenced by ArchSite.Compass.buildCoordinates(), ArchBuilding.makeBuilding(), and ArchFloor.makeFloor().
◆ printWarning()
def ArchCommands.printWarning | ( | message | ) |
References check(), closeHole(), mergeCells(), meshToShape(), removeShape(), splitMesh(), and toggleIfcBrepFlag().
◆ projectToVector()
def ArchCommands.projectToVector | ( | shape, | |
vector | |||
) |
References DraftVecUtils.project(), and DraftVecUtils.scaleTo().
Referenced by ArchRebar.makeRebar().
◆ pruneIncluded()
def ArchCommands.pruneIncluded | ( | objectslist, | |
strict = False |
|||
) |
◆ rebuildArchShape()
def ArchCommands.rebuildArchShape | ( | objects = None | ) |
◆ removeComponents()
def ArchCommands.removeComponents | ( | objectsList, | |
host = None |
|||
) |
References setAsSubcomponent().
Referenced by ArchCutPlane.cutComponentwithPlane(), and importIFClegacy.read().
◆ removeCurves()
def ArchCommands.removeCurves | ( | shape, | |
dae = False , |
|||
tolerance = 5 |
|||
) |
References getShapeFromMesh(), and importDAE.triangulate().
◆ removeShape()
def ArchCommands.removeShape | ( | objs, | |
mark = True |
|||
) |
References ArchStructure.makeStructure(), and ArchWall.makeWall().
Referenced by printWarning().
◆ setAsSubcomponent()
def ArchCommands.setAsSubcomponent | ( | obj | ) |
References getDefaultColor().
Referenced by removeComponents(), and ArchComponent.removeFromComponent().
◆ splitMesh()
def ArchCommands.splitMesh | ( | obj, | |
mark = True |
|||
) |
Referenced by printWarning().
◆ string_replace()
def ArchCommands.string_replace | ( | text, | |
pattern, | |||
replacement | |||
) |
Referenced by ArchCommands.SurveyTaskPanel.clipArea(), and survey().
◆ survey()
def ArchCommands.survey | ( | callback = False | ) |
References string_replace().
◆ toggleIfcBrepFlag()
def ArchCommands.toggleIfcBrepFlag | ( | obj | ) |
Referenced by printWarning().