Offset XY

Offset XY

ArjanDijk
Advisor Advisor
538 Views
3 Replies
Message 1 of 4

Offset XY

ArjanDijk
Advisor
Advisor
I'm working on a post for a wood machine that works with different machinefields. These fields have an XY offset. So field A is X800,Y0 for example. Is there an easy way to offset in the post? I know I can scale an X value with:

var xFormat = createFormat({decimals:3, forceDecimal:true, scale:-2});
var xOutput = createVariable({prefix:"X"}, xFormat);

Is there a similar way to offset every X value?

Inventor HSM and Fusion 360 CAM trainer and postprocessor builder in the Netherlands and Belgium.


0 Likes
539 Views
3 Replies
Replies (3)
Message 2 of 4

AchimN
Community Manager
Community Manager

FormatNumber createFormat  ( Map  specifiers ) 


Constructs the format specification for the given values. See createFormat().
Parameters
specifiers The format specifiers.

The supported specifiers are:
1.decimals: Specifies the number of decimals. Defaults to 6.
2.trim: Specifies that ending zero decimals should be trimmed. Defaults to true.
3.trimLeadZero: Specifies that the leading zero should be excluded. Eg. ".123" instead of "0.123". Defaults to false.
4.forceSign: Specifies that the '+'-sign must be included for positive numbers. Defaults to false.
5.forceDecimal: Specifies that the decimal symbol must be included. Defaults to false.
6.zeropad: Specifies that zeros should be padded to the resulting string to fit the given width. Defaults to false.
7.width: Specifies the width of the resulting string. Defaults to 0.
8.separator: Specifies the decimal symbol. Defaults to '.'.
9.cyclicLimit: Specifies the cyclic limit. Defaults to 0 (disabled).
10.cyclicSign: Specifies the cyclic sign. Defaults to 0.
11.scale: Specifies the scale. Defaults to 1.
12.offset: Specifies the offset. Defaults to 0.
13.prefix: Specifies the prefix. Defaults to empty string.
14.suffix: Specifies the suffix. Defaults to empty string.
15.inherit: Specifies the format to inherit.


Achim.N
Principal Technology Consultant
0 Likes
Message 3 of 4

ArjanDijk
Advisor
Advisor
That was easy 🙂 Thanks

Inventor HSM and Fusion 360 CAM trainer and postprocessor builder in the Netherlands and Belgium.


0 Likes
Message 4 of 4

AchimN
Community Manager
Community Manager
np 😉


Achim.N
Principal Technology Consultant
0 Likes