An RHatchData object lets me set a custom pattern:
Code: Select all
hatchData.setCustomPattern(specialPattern);Code: Select all
specialPattern = new RPattern("myPattern", "My custom pattern");patternLine1 is an RPatternLine object.
Code: Select all
patternLine1 = new RPatternLine();There are getters but no setter methods to change these attributes.
Supposing we must change them in direct.
But this fails silent or critical for these Public Attributes.
I can convert patternLine1 to text with .toString() and then I get:
Code: Select all
RPatternLine( angle:3.15381e-316 base:"RVector(0.000000, 0.000000, 0.000000, 1)" offset:"RVector(0.000000, 0.000000, 0.000000, 1)") base is basePoint as RVector and offset is also an RVector ... Both the default nullVector.
There are yet no dashes to list.
Changing the angle attribute is ignored.
Specifying a vector for basePoint or offset is ignored.
Specifying X & Y of these vector attributes fails critical.
- TypeError: Result of expression 'patternLine.basePoint' [undefined] is not an object.
TypeError: Result of expression 'patternLine.offset' [undefined] is not an object.
How should we define an RPattern object ....
Perhaps I am able to 'steel' line definitions (RPatternLine) from a standard pattern and use scale/rotate ...
Regards,
CVH