Allowing for change of viewport between selections in LISP routine

Allowing for change of viewport between selections in LISP routine

atrotto
Enthusiast Enthusiast
355 Views
4 Replies
Message 1 of 5

Allowing for change of viewport between selections in LISP routine

atrotto
Enthusiast
Enthusiast

Hello all,

 

I'm relatively green with LISPS in general, even greener with ActiveX stuff, just to set expectations. 

 

In my program, I am attempting to grab a dimension from a viewport, and then place the measurement as a updated field in a table that is in paper space. I have the two components working separately, but I cannot figure out how to make a selection in the viewport, and then toggle out of the viewport while the second selection is still active. I tried overriding it with the pspace command between the two selections, but nothing seems to happen. 

 

Thank you in advance for your input!

0 Likes
Accepted solutions (1)
356 Views
4 Replies
Replies (4)
Message 2 of 5

pendean
Community Legend
Community Legend

@atrotto wrote:

...but I cannot figure out how to make a selection in the viewport, and then toggle out of the viewport while the second selection is still active....


You don't: that's not a program ability, never has been.

and FIELD work in either model or paper space.

 

may I ask, why don't you want your table in modelspace then shown as a viewport in paperspace?

0 Likes
Message 3 of 5

atrotto
Enthusiast
Enthusiast

The table is in paper space because it's part of the format. Model space is exclusively used for geometry and annotation of that geometry. What we currently do is "Create field" in the table, and select the dimension as an object. I was trying to make a LISP routine that would do that, without having to interact with the create field interface, to avoid scrolling through the two menus. 

0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant
Accepted solution

Would you post a code or somehow illustrate your issue?

 

Not sure what's the issue... make a selection, save the entity name or list of enames... toggle to the VP. You don't need an active selection anymore.. you already got what you need.

0 Likes
Message 5 of 5

atrotto
Enthusiast
Enthusiast
Realizing now that it really was as simple as that. I had convinced myself that I needed do it all in one fell swoop somehow. Thanks!
0 Likes