Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp works in model space but no paper space

6 REPLIES 6
Reply
Message 1 of 7
efaillaceW9L2E
547 Views, 6 Replies

Lisp works in model space but no paper space

I have recently created a dimensioning lisp routine that works in model space. Since then, I switched to using layouts and paper space, but now the lisp routine will not work? I am just trying to get what I had working in model space to translate to layouts. 

6 REPLIES 6
Message 2 of 7
Sea-Haven
in reply to: efaillaceW9L2E

Are you saying you want the object in model but dim in paperspace ? Simplest way is do a chspace.

Message 3 of 7

Yes we want to use the lisp in paper space is there something we have add?

Message 4 of 7
Kent1Cooper
in reply to: rdaveyCCXBN


@rdaveyCCXBN wrote:

Yes we want to use the lisp in paper space is there something we have add?


By using it "in paper space" do you mean on a model space object that you are seeing through a paper space Viewport?  Or on an object that is fully in paper space?  [It looks like it should work for the latter, but I haven't tried it.]

 

If the former, it looks like it should work when you are in model space through the Viewport.  The routine involves object selection.  It's possible to Object-Snap to things in model space when you're fully out in paper space, but I don't know of a way to select a model space object from out there.  A routine that operates only on Osnapped locations could work from fully out in paper space, but not one that uses an object selection to pull information from the object.

 

Or am I misunderstanding either what you want to do or what the routine is designed to do?

Kent Cooper, AIA
Message 5 of 7
pendean
in reply to: efaillaceW9L2E

I am going to ask a dumb question: do you know how your LISP actually works? It is designed for you to select a LINE or ARC or PLINE etc. then it creates the appropriate dimension type for that object.

Are you trying to use it while in a layout OUTSIDE of the viewport, as in you cannot select any lines inside the viewport? your LISP is not designed to do that, double-click inside your viewport first.
It also works if I draw lines/arcs/plines in paperspace outside of viewports then use it: the DIMSTYLE settings here allow for it (text size etc.)

Let us know what you mean by the vague "...now the lisp routine will not work..." otherwise.
Message 6 of 7
efaillaceW9L2E
in reply to: pendean

@pendean Yes, I am trying to use it while in layout outside of the viewport. I do all the dimensioning in paper space now, when we used to dimension in model space (when this was made). Is there any changes that can be made so that this can work in layout outside a viewport like an annotation? I understand you could draw a line or such in paper space then use the routine but I that is not what I am looking for. 

Message 7 of 7
pendean
in reply to: efaillaceW9L2E

@efaillaceW9L2E Your LISP is designed for you to use only while inside a viewport, and in modelspace: you actually need to select the objects you are dimensioning.

You will need to totally abandon your LISP if you only want floating dimensions hovering over viewports, stick with core dimensioning commands with running osnaps until someone here offers an alternative.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report