Vector Object Related Global Methods

From SDK
Jump to navigation Jump to search
Back.jpg

These methods do what? (need info)

CastCadObjectToCadBitmap( CadObject obj)


Casts passed CadObject to a CadBitmap - returns a CadBitmap object to work with

obj - CadObject - Object to be cast to a CadBitmap



CastCadObjectToCadContour( CadObject obj)


Casts passed CadObject to a CadContour - returns a CadContour object to work with

obj - CadObject - Object to be cast to a CadContour



CastCadObjectToCadObjectGroup( CadObject obj)


Casts passed CadObject to a CadObjectGroup - returns a CadObjectGroup object to work with

obj - CadObject - Object to be cast to a CadObjectGroup


CastCadObjectToCadPolyline( CadObject obj)


Casts passed CadObject to a CadPolyline - returns a CadPolyline object to work with

obj - CadObject - Object to be cast to a CadPolyline



CastCadObjectToCadToolpathOutline( CadObject obj)


Casts passed CadObject to a CadToolpathOutline - returns a CadToolpathOutline object to work with

obj - CadObject - Object to be cast to a CadToolpathOutline



CastCadObjectToCadToolpathPreview( CadObject obj)


Casts passed CadObject to a CadToolpathPreview - returns a CadToolpathPreview object to work with

obj - CadObject - Object to be cast to a CadBitmap



CastCadObjectToTxtBlock( CadObject obj)


Casts passed CadObject to a TxtBlock - returns a TxtBlock object

obj - CadObject - Object to be cast to a TxtBlock



CreateCircle( double x, double y, double radius, double tolerance, double z_value)


Create a Contour object for a circle consisting of 4 arcs.

x – double – x coord of centre of circle
y – double – y coord of centre of circle
radius – double – radius of circle
tolerance – double – tolerance of contour – use 0.0 for default
z_value – double – z coord for contour



CreateCopyOfSelectedContours( bool smash_beziers, bool smash_arcs, double smash_tol)


Create a ContourGroup containing a copy of the currently selected contours in the job. T

smash_beziers – bool – if true, any Bezier spans in the selection are replaced with a series of straight-line spans which match the original Bezier within the specified tolerance.
smash_arc – bool – if true, any Arc spans in the selection are replaced with a series of straight-line spans which match the original Arc within the specified tolerance.
I – double – tolerance (max allowed deviation) to use when approximating arcs or beziers with a series of straight lines.


Back.jpg

References

Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 10.0, published August 21, 2019. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information