Database.setObjectIDs


setObjectIDs(type, nums)

Force the IDs of all objects of the given type Notes: You must supply an ID for every object of the given type. The IDs will be applied to objects in increasing numerical order (i.e. the first number will be given to the object that currently has the lowest numbered ID and so on). Conveniently, the function getObjects() will provide this order for you.

typestring type of objects to change
numsarray array of IDs
Return valuenone 

Example

arr = db.getObjects("surface", "all") redim myNums(ubound(arr)-1) myNums(0) = 1001 myNums(1) = 1002 db.setObjectIDs("surface", myNums)

See also specifyAfterMeshScript

Back to Database

Back to Overview