The following are the various functions that are for use on Autodesk Fabrication ITM‘s. In most cases, the syntax can be copied/pasted directly into a file and function properly. They should be edited for your particular use. This allows you to short cut your time by not having to experiment to figure out code syntax.

Please take notice of the following notes…

(a) – Undocumented in prior Autodesk documentation
(b) – The first argument of the function sets the “flow” type. 0=Not Set, 1=Supply, 2=Return, 3=None
(c) – {index} is a numerical based index (starting at 1) referring to a particular item in a collection. e.g. “item.connector[2].value” refers to the 
second connector in the Connector object.

FunctionNotesExampleReturn Value
addcustomdataitem.addcustomdata("Room number")
item.addcustomdata(52)
n/a
bitmapfileitem.bitmapfile("./Charlotte/pipe.itm")image file
candoublewallitem.candoublewall()True/False
canrotary(a)item.canrotary()True/False
dblock.canitem.dblock.can(lock_user)
item.dblock.can(lock_owner)
True/False
dblock.setowneritem.dblock.setowner("[owner]","[reason]")True/False
dblock.setversiontem.dblock.setversion("[version]","[reason]")True/False
endlocation(c)item.endlocation({index})
item.endlocation({index}, "xyz")
item.endlocation({index}, "x")
item.endlocation({index}, "y")
item.endlocation({index}, "z")
item.endlocation({index}, "btm")
item.endlocation({index}, "top")
"x y z"
"x y z"
X
Y
Z
Center Line - (OD/2)
Center Line +(OD/2)
levelitem.level("Floor")
item.level("Soffit")
Level
loaditem.load("./Charlotte/pipe.itm")True/False
refreshcostsitem.refreshcosts()n/a
removeholesitem.removeholesn/a
saveitem.save("./Charlotte/pipe.itm")True/False
setflow(b)item.setflow(0,)
item.setflow(1,250)
item.setflow(2,250)
item.setflow(3,)
True/False
updateitem.update()True/False
writedxfitem.writedxf("./mydxfs/elbow", True)
item.writedxf("./mydxfs/elbow", False)
True/False