MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / getGroupName

Method getGroupName

src/ifc2ca/_deprecated/scriptSalomeBonded.py:44–50  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

42 self.create()
43
44 def getGroupName(self, name):
45 if "|" in name:
46 info = name.split("|")
47 sortName = "".join(c for c in info[0] if c.isupper())
48 return f"{sortName[2:]}_{info[1]}"
49 else:
50 return name
51
52 def makePoint(self, pl):
53 """Function to define a Point from

Callers 1

createMethod · 0.95

Calls 2

splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected