Mar-19-2019, 03:38 AM
(Mar-19-2019, 02:26 AM)micseydel Wrote: As Larz said, you should be posting in code tags. You're far less likely to get a reply if people have to go off-site. Also, I haven't looked at the links but the shorter the code the better - if you can reproduce your problem in 5-10 runnable lines of code rather than hundreds, you'll be substantially more likely to get a reply (and faster at that).
Thank you for your reply. I will definitely use BBCodes while posting any question.
from __future__ import print_function f = ifc.open("C:\Users\GURBHEJ SINGH\Desktop\Beam_Material.ifc") f2 = ifc.open("test22.ifc") directions = f.by_type("ifcdirection") for direction in directions: f2.add(direction) beams = f.by_type("IFCBEAM") for beam in beams: f2.add(beam) f2.write("test22.ifc")
Error:Traceback (most recent call last):
File "C:\Users\GURBHEJ SINGH\Downloads\python\Abcdef.py", line 3, in <module>
f = ifc.open("C:\Users\GURBHEJ SINGH\Desktop\Beam_Material.ifc")
NameError: name 'ifc' is not defined
Please help me to solve the issue.Thank you.