Am I going MAD?? or have I just forgotten??

#1
Ok, so I'm now running 12.1 PE+

Part of a lisp file I am working on is intended to rotate a rectangle by 90deg about the 'Y' axis.
Sound simple enough.
Here is the code, ENT_L1 is the object & 'rxl' is 225, with 'ag_l' being 90deg

Code: Select all

	(command "_Rotate3D" ENT_L1 "" (strcat (rtos rxl) ",0,0") (strcat (rtos rxl) ",500,0") ag_l "")
.

The result was not as I expected!
OK, so I'll draw a line to represent the rotation axis:

Code: Select all

	(command "_Line" (strcat (rtos rxl) ",0,0") (strcat (rtos rxl) ",500,0") "")
and this is the result:
line.png
line.png (30.24 KiB) Viewed 10480 times
Now I haven't use the '@' symbol so ALL dimensions/coordinates are 'absolute' not 'relative'.
So why does the line state at @0,0,0?

Command line:
Command: _Line
ENTER to use last point/[Follow]/<Start of line>: 225,0,0
[Angle/Length]/<End point>: 225,500,0
[Angle/Length/Follow/Undo]/<End point>:
rxl = 225
Command: '_PMTHIST
CMS Intellicad 14.1.411.168739.PE+.VC17.x64.CMS141
i9-12900k / 64gb-3200 - NVIDIA GeForce TRX 3060 Ti 8Gb Windows 11 Pro
Steve Nichols

Re: Am I going MAD?? or have I just forgotten??

#2
Just for completness here is an image from Icad 12.0 running the same lisp:
line 2.png
line 2.png (26.04 KiB) Viewed 10477 times
The rotation is as expected, thw white line is as expected & the arc (Pline) is again as expected.
CMS Intellicad 14.1.411.168739.PE+.VC17.x64.CMS141
i9-12900k / 64gb-3200 - NVIDIA GeForce TRX 3060 Ti 8Gb Windows 11 Pro
Steve Nichols

Re: Am I going MAD?? or have I just forgotten??

#5
sln8458 wrote:
Tue Feb 20, 2024 1:24 am
Hi Quan,

Thanks, that works :)
But why???

SteveN
The bottom line is that for release 12.1 the behavior for the OSNAPCOORD system variable was redesigned in accordance with AutoCAD.
https://help.autodesk.com/view/ACD/2023 ... F91667F641

You can not disable snaps using the OSMODE system variable, but set the desired value of the OSNAPCOORD system variable.


Last bumped by Pavel.Pchelnikov on Wed Sep 17, 2025 12:34 pm.