CopyPaintProperties: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
m (New page: == Operation == <br>The operation will copy a paint object's properties that has been registered in the paint object list and replicate them on to another paint object's properties....)
 
mNo edit summary
Line 1: Line 1:
== Operation  ==
== Operation  ==


<br>The operation will copy a paint object's properties&nbsp;that has been registered in the paint object list and replicate them on to another paint object's properties.  
<br>The operation will copy&nbsp;the graphical properties&nbsp;between paint objects.&nbsp; Graphical properties include position, colours, size, tip text, states, broadcasts options etc.


<br>


== Example  ==


Using this routine operation with the following attributes:
*Both paint objects must be of the same type (lines, RTF note, text etc.)
 
*Both paint objects must be registered paint objects (to be able to reference object)
''r.NewObjectIndex'' = '''CopyPaintObject('''l''._Paint Objects[OriginalObject],l._Model Objects[HostPortal],1''''')'''
 
The Paint Object called ''OriginalObject'' (registered in the _Paint Objects list) is copied. The copy is placed on the ''HostPortal'' portal.&nbsp; The final flag (Non-Zero) indicates that the copied paint object will act as&nbsp;an inherited paint object.&nbsp;&nbsp;If this was a&nbsp;zero (0), the new paint object will&nbsp;NOT act as an 'inherited' object.
 
The Routine Operation will automatically place the created paint object into the _Paint Objects list.&nbsp; The index of the new Paint Object will be returned (r.NewObjectIndex).


<br>
<br>

Revision as of 13:58, 24 February 2009

Operation


The operation will copy the graphical properties between paint objects.  Graphical properties include position, colours, size, tip text, states, broadcasts options etc.


  • Both paint objects must be of the same type (lines, RTF note, text etc.)
  • Both paint objects must be registered paint objects (to be able to reference object)


Related Articles