This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Vobject manual placement

Is it possible to move vobjects by setting some properties?

If it gets out of working area, there is no way to get it back to the working area so...
Hello Ichiro

Size and position of the VObject is determined by its bounds and transformation matrix. In your case you could change VObject.Transform property to shift object into visible area. Here is a simple code snippet which just illustrates how to do it (this code moves currently selected object 30 pixels right and 40 pixels down):
If (_multiLayerViewer.CurrentDesigner.VObjects.Length > 0) Then
	Dim a As Aurigma.GraphicsMill.WinControls.IVObject = _multiLayerViewer.CurrentDesigner.VObjects(0)
	a.Transform.Translate(30, 40)
	a.Update()
End If
Thank you very much, Alex.

I am very new to VB and Graphics Mill, I should have read the manual thoroughly...

Sorry for the trouble and thanks again.