How to use 'mapToWCS' and 'mapWorkOrigin'?

How to use 'mapToWCS' and 'mapWorkOrigin'?

denis_q
Advocate Advocate
774 Views
1 Reply
Message 1 of 2

How to use 'mapToWCS' and 'mapWorkOrigin'?

denis_q
Advocate
Advocate

Both are documented in "PostProcessor Class Reference" - "Member Data Documentation".

But if I set them to false nothing changes.

 

typeof mapToWCS === 'undefined' always returns true

typeof mapWorkOrigin === 'undefined' always returns true

 

thanks

0 Likes
775 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni
The 'mapToWCS' and 'mapWorkOrigin' variables are very strict in how they are defined in the post processor. Here is an excerpt from the Post Processor Training Guide that gives an explanation (sorry for the formatting, but the Insert Code, Link, etc. banner is not showing up for some reason). maptoWCS ------------ Specifies whether the work plane is mapped to the WCS. When disabled the post is responsible for handling the WCS mapping. This variable must be defined using the following syntax and can only be defined in the global section. Any deviation from this format, including adding extra spaces, will cause this command to be ignored. mapToWCS = true; mapToWCS = false; mapWorkOrigin ----------------- Specifies whether the coordinates are mapped to the work plane origin. When disabled the post is responsible for handling the work plane origin. This variable must be defined using the following syntax and can only be defined in the global section. Any deviation from this format, including adding extra spaces, will cause this command to be ignored. mapWorkOrigin = true; mapWorkOrigin = false; The Post Processor Training Guide can be accessed using the following link. http://cam.autodesk.com/posts/posts/guides/Post%20Processor%20Training%20Guide.pdf


Bob Schultz
Sr. Post Processor Developer

0 Likes