hemuni Posted May 29, 2012 Posted May 29, 2012 I'm looking for a way to turn of front- and backclipping from lisp. It seems all the system variables for this are read only. I have a working routine scripting the dview command, but it requires me to call up the dviewblock and i was hoping for a cleaner solution. Does anybody know how to access these settings? Quote
Tharwat Posted May 29, 2012 Posted May 29, 2012 You can use the same command call to turn viewport(s) on and off . Quote
Tharwat Posted May 29, 2012 Posted May 29, 2012 I don't think that I got what you mean , but I think you can use the command call (-vports) in sequence into lisp . Can you explain more deeply ? Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 I want to turn of frontclip and backclip without using the dview command. Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 Clipping is used in the dview command to hide unwanted geometry: Quote
Tharwat Posted May 29, 2012 Posted May 29, 2012 So is that ( front clip ) represent an object e.g Polyline , line , circle ... etc ? Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/files/WS1a9193826455f5ffa23ce210c4a30acaf-4bb1.htm Quote
pBe Posted May 29, 2012 Posted May 29, 2012 i guess the OP meant "RESET" the view Will Dview work for you? guess you need a selection to prevent the "house" from appearing. then you can specify "off" on clip options. Not sure though, its been like ages since i worked on 3D stuff. Something like. (command "_Dview" (ssget) "" "_clip" "_off" "") Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 I am not trying to hide anything. If you don't know the dview command you can read about it here: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/files/WS1a9193826455f5ffa23ce210c4a30acaf-4bb1.htm Quote
David Bethel Posted May 29, 2012 Posted May 29, 2012 The only way that I've found is through (command "_.DVEIW" ....) sequence. You may be able to use (command "_.DVIEW" (entlast) "" ....) and not have the dviewblock appear. The same goes for camera and target. Sorry -David Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 Bentley Prosteel has a function that turns off the clipping, so I'm sure there is another way. Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 i guess the OP meant "RESET" the view Will Dview work for you? guess you need a selection to prevent the "house" from appearing. then you can specify "off" on clip options. Not sure though, its been like ages since i worked on 3D stuff. Something like. (command "_Dview" (ssget) "" "_clip" "_off" "") No this will not work as an empty selection is not allowed. Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 The only way that I've found is through (command "_.DVEIW" ....) sequence. You may be able to use (command "_.DVIEW" (entlast) "" ....) and not have the dviewblock appear. The same goes for camera and target. Sorry -David using entlast is a good workaround, thanks! Quote
pBe Posted May 29, 2012 Posted May 29, 2012 No this will not work as an empty selection is not allowed. Oh, silly me, now why would i think that ssget will not produce a non-empty selection. Yeah (entlast) is a better option Quote
Tharwat Posted May 29, 2012 Posted May 29, 2012 using entlast is a good workaround, thanks! And that would be by the use of command Dview Quote
hemuni Posted May 29, 2012 Author Posted May 29, 2012 And that would be by the use of command Dview Why, would you prefer i used -vports? I'm still looking for a better solution if anybody knows a way? Quote
Lee Mac Posted May 29, 2012 Posted May 29, 2012 Why, would you prefer i used -vports? I'm still looking for a better solution if anybody knows a way? For saved Views, the Clipping can be altered by modifying the 43, 44 & 71 DXF Group Code Values of the relevant View Table Entity; reference: http://docs.autodesk.com/ACD/2011/ENU/filesDXF/WS1a9193826455f5ff18cb41610ec0a2e719-7a49.htm Example to turn front clipping off for a given View (refer VIEWMODE Sys Var): (defun _TurnOffFrontClipping ( view / vmod ) (if (setq view (tblobjname "VIEW" view)) (setq view (entget view) vmod (assoc 71 view) view (entmod (subst (cons 71 (boole 2 (cdr vmod) 2)) vmod view)) ) ) ) Call: (_TurnOffFrontClipping "YourView") However, I do not know that there is a way to access the View Entity associated with the unsaved current Modelspace View Quote
troggarf Posted June 29, 2012 Posted June 29, 2012 Why, would you prefer i used -vports? I'm still looking for a better solution if anybody knows a way? Most people who work in 3D use multiple viewports in model space. So I am sure that the responses that you received are addressing that. (defun c:unclip() (getpoint "\nSelect Viewport To Turn Off Clipping: ") (setvar "highlight" 0) (command "dview" "" "cl" "off" "") );end defun c:unclip Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.