OpenMetaverse.ObjectManager.AddPrim C# (CSharp) Method

AddPrim() public method

Create (rez) a new prim object in a simulator
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
public AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation ) : void
simulator Simulator A reference to the object to place the object in
prim Primitive 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 System.Vector3 An approximation of the position at which to rez the prim
scale System.Vector3 Scale vector to size this prim
rotation Quaternion Rotation quaternion to rotate this prim
return void
        public void AddPrim(Simulator simulator, Primitive.ConstructionData prim, UUID groupID, Vector3 position,
            Vector3 scale, Quaternion rotation)
        {
            AddPrim(simulator, prim, groupID, position, scale, rotation, PrimFlags.CreateSelected);
        }

Same methods

ObjectManager::AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation, PrimFlags createFlags ) : void