View Full Version : Question about CG command
bcammack
08-29-2008, 04:10 PM
What, on a parameter-by-parameter basis, is the difference between Relative and Absolute mode with the CG command? IOW - how is each parameter interpreted differently in each mode, if at all?
bcammack
09-03-2008, 09:23 AM
Hello? <tap, tap, tap>
Is this thing on?
rhfurniture
09-03-2008, 09:56 AM
Heloooo there....
I use CG all the time embedded in an Autocad script, but only ever in absolute mode. I wrote the script a year or so ago to convert polylines (old type) to sbp, but would need a lot of brain power to figure it out again. I just know it works.
Why relative mode? don't see it would make that much difference as it is all taken from the move start point, and you would just have to specify the end points as relative to start point.
Try it and seeeee
R.
beacon14
09-03-2008, 10:09 AM
I don't think very many of us use the CG command or know how to read it if we see it in a file.
A quick test in preview mode doesn't seem to show any difference in the output whether in relative or absolute mode.
bcammack
09-03-2008, 12:47 PM
That's my concern, David, that I can't convert an sbp program from absolute mode to relative mode because the CG command doesn't change behavior.
Ralph, I want relative mode so I can run this program fragment anywhere on the table without mucking about with the X/Y zero coordinate, etc. I'd prefer to run the thing programmatically than do a fake-out on the machine.
Basically, I have already tried what I would presume to be the proper syntax for relative mode (and various combinations within) versus absolute mode and it does not do what I expect. There are no footnotes in the Command Reference and that infers to me that it's behavior should change like any other movement command between SA and SR modes and yet it does not seem to based on observable behavior. Hence my appeal to either more experienced heads or someone from ShopBot who's completely versed in the language.
Thanks to you both for responding and helping to flesh out my understanding of the command.
rhfurniture
09-03-2008, 01:41 PM
From what I remember the main parameters are:
end point coords, X offset and Y offset from start pt to center, and rotation. In Relative mode, I would expect to give end coords relative to the start. Which of these factors behaves unexpectedly?
R
beacon14
09-03-2008, 07:27 PM
Is it not simpler to run the file in absolute mode selecting "2D offset" from the fill in sheet?
bcammack
09-04-2008, 09:16 AM
Not in the broader context of the project, no.
I'll see what I can do.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.