OpenMetaverse Protocol Library Developers API Documentation
AddPrim Method (simulator, prim, groupID, position, scale, rotation, createFlags)
NamespacesOpenMetaverseObjectManagerAddPrim(Simulator, Primitive . . :: . . ConstructionData, UUID, Vector3, Vector3, Quaternion, PrimFlags)
Create (rez) a new prim object in a simulator
Declaration Syntax
C#
public 
void 
AddPrim(
        
Simulator 
simulator,
        
Primitive

.
.
::
.
.
ConstructionData 
prim,
        
UUID 
groupID,
        
Vector3 
position,
        
Vector3 
scale,
        
Quaternion 
rotation,
        
PrimFlags 
createFlags
)
Parameters
simulator ( Simulator)
A reference to the object to place the object in
prim ( Primitive . . :: . . ConstructionData)
Data describing the prim object to rez
groupID ( UUID)
Group ID that this prim will be set to, or UUID.Zero if you do not want the object to be associated with a specific group
position ( Vector3)
An approximation of the position at which to rez the prim
scale ( Vector3)
Scale vector to size this prim
rotation ( Quaternion)
Rotation quaternion to rotate this prim
createFlags ( PrimFlags)
Specify the
Remarks
Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties
See Also

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)