Jump to content

Recommended Posts

Posted

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?

Posted

You can use the same command call to turn viewport(s) on and off .

Posted

I am not looking to turn of viewports?

Posted

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 ? :)

Posted

I want to turn of frontclip and backclip without using the dview command.

Posted

Clipping is used in the dview command to hide unwanted geometry:

 

acw05d8u.png

Posted

So is that ( front clip ) represent an object e.g Polyline , line , circle ... etc ?

Posted

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" "")

Posted

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

Posted

Bentley Prosteel has a function that turns off the clipping, so I'm sure there is another way.

Posted
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.

Posted
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!

Posted
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 :thumbsup:

Posted
using entlast is a good workaround, thanks!

 

And that would be by the use of command Dview :D

Posted
And that would be by the use of command Dview :D

 

Why, would you prefer i used -vports? :facepalm:

 

I'm still looking for a better solution if anybody knows a way?

Posted
Why, would you prefer i used -vports? :facepalm:

:lol:

 

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 :unsure:

  • 5 weeks later...
Posted
Why, would you prefer i used -vports? :facepalm:

 

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...