Problems controlling UCS from Lisp

#1
When trying to redefine the UCS within lisp the change does not work, though the same code worked in earlier version.
I'm currently using/testing a trial of 13.1.462.161266.PE+.VC17.x64.CMS131.

Here is an extract of the code that does not work, taken from my Piping add-on.

Code: Select all

	(progn
		(command "_ucs" "w" "")
		(setq WNRFF1 (entlast))
		(setq REVOLVEL1 (entlast))
		(command "_revolve" WNRFF1 "" "0,0,0" "0,1000,0" "360")
		(setq WNRFF2 (entlast))		
		(command "_erase" WNRFF1 "")
;		(command "_ucs" "ZA" P1 P2)
		(command "_UCS" "3" "" "100,0,0" "0,0,100");;;  THIS IS THE PROBLEM LINE
		(command "-layer" "m" "HOLES" "")
		(command "-layer" "s" "HOLES" "")
		(command "_cylinder" (strcat (rtos (* 0.5 HPCD#)) ",0,0") (* 0.5 HOD#) (rtos LHOD#))
;		(command "-layer" "S" "0" "")
;		(command "-rotate" "L" "" "0,0" (rtos HOLOS) "")
;		(command "-array" "L" "" "P" "0,0" holos# "360" "" "")
;		(command "_subtract" WNRFF2 "" (ssget "_x" '((0 . "3DSOLID")(8 . "HOLES"))) "" "")
;		(setq WNRFF3 (entlast))
;		(command "_UCS" "W" "")
;		(command "-block" FLG1 "0,0,0" WNRFF3 "")
;		(command "_erase" WNRFF3 "")		
	) ;end progn
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: Problems controlling UCS from Lisp

#5
Thank Pat.

Why a trial of 13.1.462.161266.PE+ ?
I am just testing it out, downloaded an update earlier today, so will install that and see if things work any better ????
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
cron