- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
@Patchy @cadffm So, today my fix was failing because AutoCAD saw TARGET and CAMERA POints as coincident. I was trying to set them to the VIEWCTR X,Y and give them differing Zs. It appears that their existing Z-values being minuscule/enormous are responsible for this error in AutoCAD. The fix is as follows:
To be very clear, all of these DVIEW things must be done before using CHSPACE whenever my viewport's TARGET is not well behaved , i.e. When TARGET has a minuscule/enormous Z-value like -6.385E+99.
Once TARGET is 0,0,0, BACKZ=0.0, and FRONTZ=0.0 using CHSPACE does NOT jack the Z-values of the objects!
This is what was happening (Text Window command history):
Command: DVIEW
Select objects or <use DVIEWBLOCK>:
Enter option
[CAmera/TArget/Distance/POints/PAn/Zoom/TWist/CLip/Hide/Off/Undo]: PO
Specify target point <1643253.5316, 583856.1333, -4.6094E+99>: (LIST(CAR(GETVAR "VIEWCTR"))(CADR(GETVAR "VIEWCTR"))0.0)
(1.64325e+06 583856.0 0.0)
Specify camera point <1643253.5316, 583856.1333, -4.6094E+99>: (LIST(CAR(GETVAR "VIEWCTR"))(CADR(GETVAR "VIEWCTR"))1.0)
(1.64325e+06 583856.0 1.0)
Camera and Target may not be coincident
Here is what I had to do to make it all work for me:
It was necessary to separate the CLipping part of the command from the POints and TWist parts; then, set the TARGET and CAMERA POints to 0,0,0 and 0,0,1 respectively to avoid the coincident error that AutoCAD is reporting; then, set the TWist angle; finally, ZOOM Center using the saved VIEWCTR point. This works for me... so far. the results are BACKZ=0.0; FRONTZ=0.0; TARGET= #.###, #.###, 0.0 (and VIEWCTR as I need it)![]()
I.e.
(SETQ vwctr (LIST (CAR (GETVAR "VIEWCTR"))(CADR (GETVAR "VIEWCTR")) 0.0))
(COMMAND "._DVIEW" "" "CL" "B" "0.0" "CL" "F" "0.0" "CL" "OFF" "")
(COMMAND "._DVIEW" "" "PO" "0,0,0" "0,0,1" "")
(COMMAND "._DVIEW" "" "TW" vwang "")
(COMMAND "._ZOOM" "C" vwctr "")
P.S. The above code is a part of my tool for setting any VIEWTWIST required in my viewport. It seemed like the most logical place to force these SYSVAR resets.
Product Version: 13.6.1963.0 Civil 3D 2024.4.1 Update Built on: U.202.0.0 AutoCAD 2024.1.6
27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
8.6.52.0 AutoCAD Architecture 2024